Managing wallets
You can use wallets for many important things, for instance:
- Checking your balance;
- Transferring coins to a destination address or contract;
- Signing messages and transactions;
- Paying for network fees when sending transactions or deploying smart contracts.
The SDK gives you many different ways to create and access wallets. Let's explore these different approaches in the following sub-chapters.
Note: Keep in mind that you should never share your private/secret key. And in the case of wallets that were derived from a mnemonic phrase, never share your mnemonic phrase. If you're planning on storing the wallet on disk, do not store the plain private/secret key and do not store the plain mnemonic phrase. Instead, use
Wallet::encrypt
to encrypt its content first before saving it to disk.