Wallet CLI
Quick Start
To get started with the Anvil Cardano Wallet CLI.
You can get the latest compiled version here : https://github.com/Cardano-Forge/cardano-wallet-cli/releases
Or Build from Source:
git clone https://github.com/Cardano-Forge/cardano-wallet-cli.git
cd cardano-wallet-cli/
deno compile --allow-read --allow-write --output cardano-wallet src/mod.ts
Objectives
When you only have access to the CLI/Terminal and need a Cardano Wallet
To automate tests and tasks using random wallets
To use Bash and the Anvil API
To create a Minting platform or Any type of platform that requires creation of wallet on the fly
The output allows to import the wallet in a browser extension or mobile app
Usage
Create a wallet with mnemonic and stake key (12 or 24 words)
Default 24 words
./cardano-wallet \
--name=wallet-1 \
--mnemonic
12 words
./cardano-wallet \
--name=wallet-1 \
--mnemonic \
--bits=128
24 words
./cardano-wallet \
--name=wallet-1 \
--mnemonic \
--bits=256
Restore a wallet (12 or 24 words)
12 words
./cardano-wallet \
--name=wallet-1 \
--mnemonic \
--seed="beef swamp swing original fresh acquire virus hub essay welcome nut spray"
24 words
./cardano-wallet \
--name=wallet-1 \
--mnemonic \
--seed="essence taste already amount black shell neutral amused negative chronic mechanic warm famous clerk zero barely random october pipe antenna glue volume silver donor"
Output
It uses Cardano Serialization Lib (CSL) so it can be use with most of the existing tool.
{
"skey": "ed25519e_sk18qn7l5w0pspu2uf6pz5qvn392g23fwpn99vrzjmy6j3fxvjrhdvcm8r44jkvmnv2h5uqx06k5x20gcdlhns0d6xzewfzpgtzk25vxmsw2c3nh",
"skey_hex": "3827efd1cf0c03c5713a08a8064e25521514b8332958314b64d4a2933243bb598d9c75acaccdcd8abd38033f56a194f461bfbce0f6e8c2cb9220a162b2a8c36e",
"pkey": "ed25519_pk1l4k5ydd0nlal4vd3zum2e76wx7hpunz5quq7ntqy3z5fnpk9nm3scy6ad0",
"pkey_hex": "fd6d4235af9ffbfab1b11736acfb4e37ae1e4c540701e9ac0488a89986c59ee3",
"key_hash": "e9c2caf1072e363420c7a4c84b622284f82a3799d8acf6af0c87ee41",
"base_address_preview": "addr_test1qr5u9jh3quhrvdpqc7jvsjmzy2z0s23hn8v2ea40pjr7usfqf0xczeqwhr8k0q556shm2xc5s04cyd36448vz8rnrdtsu6u3gq",
"base_address_preprod": "addr_test1qr5u9jh3quhrvdpqc7jvsjmzy2z0s23hn8v2ea40pjr7usfqf0xczeqwhr8k0q556shm2xc5s04cyd36448vz8rnrdtsu6u3gq",
"base_address_mainnet": "addr1q85u9jh3quhrvdpqc7jvsjmzy2z0s23hn8v2ea40pjr7usfqf0xczeqwhr8k0q556shm2xc5s04cyd36448vz8rnrdtslvp3yl",
"enterprise_address_mainnet": "addr1v85u9jh3quhrvdpqc7jvsjmzy2z0s23hn8v2ea40pjr7usgqjrh84",
"enterprise_address_preview": "addr_test1vr5u9jh3quhrvdpqc7jvsjmzy2z0s23hn8v2ea40pjr7usgm6htgs",
"enterprise_address_preprod": "addr_test1vr5u9jh3quhrvdpqc7jvsjmzy2z0s23hn8v2ea40pjr7usgm6htgs",
"reward_address_mainnet": "stake1uysyhnvpvs8t3nm8s22dgta4rv2g86uzxca26nkpr3e3k4cwpgth2",
"reward_address_preview": "stake_test1uqsyhnvpvs8t3nm8s22dgta4rv2g86uzxca26nkpr3e3k4cftzfnh",
"reward_address_preprod": "stake_test1uqsyhnvpvs8t3nm8s22dgta4rv2g86uzxca26nkpr3e3k4cftzfnh",
"mnemonic": "essence taste already amount black shell neutral amused negative chronic mechanic warm famous clerk zero barely random october pipe antenna glue volume silver donor"
}
Disclaimer
The 2 seed phrases used in this document must not be used in your project.
The mnemonic
, skey
and skey_hex
must stay private at all time.
Last updated
Was this helpful?