WalletConsole utility
The Wallet Core library comes with an interactive command-line utility, for accessing key- and address management functionality of the library.
Quick Start
$ ./build/walletconsole/walletconsole
Wallet-Core Console (c) TrustWallet
Type 'help' for list of commands.
> help
Commands:
. . .
newKey Create new pseudo-random 32-byte key (secret!)
. . .
> coin btc
Set active coin to: bitcoin
> addrDefault
Result: bc1q2kecrqfvzj7l6phet956whxkvathsvsgn7twavStarting
The utility builds together with the library and can be started from: build/walletconsole/walletconsole . See build instructions.
Walletconsole can be also executed 'off the shelf' using the Docker image:
Commands
Here is a snapshot of the commands:
Examples
Here are various sample usages.
Create a new private key, derive a BTC address from it, write it to a file:
Create a new private key, derive the public key from it, derive a BTC address from it:
Check an ALGO address for validity:
Derive private keys using different BIP39 derivation paths, and create address from it:
Derive several NANO addresses (BIP39):
Hex and Base64 encoding example:
Last updated
Was this helpful?