Skip to main content
Version: latest

Generate Keypairs

Create the 3 keypairs

On your local computer, create the 3 keypairs that you will need to run your validator:

mkdir ~/keypairs

bbachain-keygen new -o ~/keypairs/identity.json

bbachain-keygen new -o ~/keypairs/vote-account.json

bbachain-keygen new -o ~/keypairs/withdrawer.json

IMPORTANT ~/keypairs/withdrawer.json should be treated as highly sensitive information. The withdrawer keypair should always be stored securely and should not be stored on the validator machine.

Create a Vote Account

Before you can create your vote-account, you need to deposit some BBA into that identity keypair in order create a transaction (in this case, making your vote account):

bbachain airdrop 2 ~/keypairs/identity.json

Now, create a vote account:

bbachain create-vote-account --fee-payer ~/keypairs/identity.json \
~/keypairs/vote-account.json \
~/keypairs/identity.json \
~/keypairs/withdrawer.json