Skip to main content

Accounts and Wallet

Prepare an account using the CLI. First add a wallet to your keyring

While you may use your seed phrase to import an existing wallet, we'll make a new one in this scenario. Run the following command:

hedged keys add <key_name> [flags]

Specify <key_name> as the name of the account. It references the account number used to derive the key pair from the mnemonic. When you want to send a transaction, you will use this name to identify your account.

To specify the path (0, 1, 2, ...) you want to use to generate your account, you can append the optional --account flag. By default, account 0 is generated.

The command generates a 24-word mnemonic and saves the private and public keys for account 0 simultaneously. You are prompted to specify a passphrase that is used to encrypt the private key of account 0 on disk. Each time you want to send a transaction, this password is required. If you lose the password, you can always recover the private key by using the mnemonic phrase.

danger

To prevent theft or loss of funds, ensure that you keep multiple copies of your mnemonic and store it in a secure place and that only you know how to access it. If someone is able to gain access to your mnemonic, they are able to gain access to your private keys and control the accounts associated with them.

Generate More Accounts from the Same Mnemonic

To generate more accounts from the same mnemonic, run:

hedged keys add <key_name> --recover --account 1

You are prompted to specify a passphrase and your mnemonic. To generate a different account, change the account number.

danger

Do not use the same passphrase for multiple keys. Do not lose or share your mnemonic with anyone.

Recover your Key

In some cases, you might need to recover your key. If you have the mnemonic that was used to generate your private key, you can recover it and re-register your key. Issuing the following command will prompt you to enter your 24-word mnemonic.

hedged keys add <key_name> --recover

To ensure your wallet was saved to your keyring, look for the key_name is in your keys list:

hedged keys list

Congratulations on successfully setting up your account and wallet with Hedge! To kickstart your validator journey, follow these steps to collect funds from our Faucet.

Copy your Validator Public Key

Copy the validator public key generated during the wallet setup process. You can find it by running the following command:

hedged tendermint show-validator --home ./hedge/berberis-1

Paste the copied validator public key in the designated field during the Faucet fund request.

Confirmation and Fund Receipt

Once you've submitted your validator public key and completed any necessary steps, wait for confirmation. This process may take a few moments. Once confirmed, you should receive testnet funds directly into your account.

Now you're all set to kickstart your validator journey on the Hedge platform! If you have any further questions or need additional assistance, feel free to contact our Discord channel.