# What a wallet is?

From wikipedia:

A cryptocurrency wallet is a device, physical medium, program or a service which stores the public and private keys and can be used to track ownership, receive or spend cryptocurrencies.

In our case the wallet will be used to sign (with the keys contained in it) the transactions that will then be sended to the Commercio.network blockchain.

# Create a Wallet

Before doing anything with the tools offered by Commercio.network SDK you must create a wallet as follow:

 val chainInfo = NetworkInfo(
    bech32Hrp = "did:com:",
    lcdUrl = "http://localhost:1317"
 )

 val userMnemonic = listOf(
    "will",
    "hard",
    "topic",
    "spray",
    "beyond",
    "ostrich",
    "moral",
    "morning",
    "gas",
    "loyal",
    "couch",
    "horn",
    "boss",
    "across",
    "age",
    "post",
    "october",
    "blur",
    "piece",
    "wheel",
    "film",
    "notable",
    "word",
    "man"
 )

 val userWallet = Wallet.derive(
    mnemonic = userMnemonic,
    networkInfo = chainInfo
 )

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37