Get Account Nonce
This example assumes you have read and followed the instructions in the Prerequisites and Setup sections.
To get more a particular staking account's, e.g. oasis1qrvsa8ukfw3p6kw2vcs0fk9t59mceqq7fyttwqgx, nonce, run:
1
oasis-node stake account nonce \
2
-a $ADDR \
3
--stake.account.address oasis1qrvsa8ukfw3p6kw2vcs0fk9t59mceqq7fyttwqgx
Copied!

Get Your Entity's Nonce

This example assumes you have the jq tool installed on your system.
If you want to get your entity's nonce, you can use the following combination of commands:
1
ENTITY_DIR=<PATH-TO-YOUR-ENTITY>
2
ADDRESS=$(oasis-node stake pubkey2address --public_key \
3
$(cat $ENTITY_DIR/entity.json | jq .id -r))
4
NONCE=$(oasis-node stake account nonce --stake.account.address $ADDRESS -a $ADDR)
Copied!
where <PATH-TO-YOUR-ENTITY> is the path to your entity's descriptor, e.g. /serverdir/node/entity/.
Last modified 3mo ago
Copy link