Mentioned how to use status to key validator pub key

This commit is contained in:
Zaki Manian 2018-05-14 07:11:59 -04:00 committed by GitHub
parent 54e8ea2092
commit ee408d922e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -213,6 +213,17 @@ This section covers the instructions necessary to stake tokens to become a testn
Your `pubkey` can be used to create a new validator candidate by staking some tokens:
You can find your node pubkey by running
```
gaiacli status
```
and extracting your pubkey from the value field in validator info
```
"validator_info":{"address":"CF217B72C54FBB27D012D616B2B2114A9F8EFAF0","pub_key":{"type":"AC26791624DE60","value":"CDF/8aD8Lt+ikR3LyCg9c7DwWBA51NH+MUkH7tzxrfY="},"voting_power":0}}
```
```
gaiacli declare-candidacy --amount=500steak --pubkey=<your_node_pubkey> --address-candidate=<your_address> --moniker=satoshi --chain-id=<name_of_the_testnet_chain> --sequence=1 --name=<key_name>
```