Skip to content

Commit a183abf

Browse files
committed
scripts v2.8
1 parent bac769e commit a183abf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

deploy/readme.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,16 @@ pushchaind query bank balances $NODE_OWNER_WALLET --chain-id $CHAIN_NAME --keyr
248248
# 2 register validator with stake
249249
# pn1.dev.push.org - is the existing public node with api
250250
pushchaind tx staking create-validator register-validator.json --chain-id $CHAIN_NAME --fees 500000npush --from $NODE_OWNER_WALLET_NAME --node=tcp://pn1.dev.push.org:26657
251+
# check that tx was successful
252+
# check that code=0 and raw_log=""
253+
export TX_ID= # from above
254+
pushchaind query tx $TX_ID --chain-id $CHAIN_NAME --output json | jq '{code, raw_log}'
255+
# check that validator got bonded tokens
256+
# the output should contain
257+
# moniker: YOUR VALIDATOR NAME
258+
# status: BOND_STATUS_BONDED
259+
# replace pn2 with validator name:
260+
pushchaind query staking validators --output json | jq '.validators[] | select(.description.moniker=="pn2")'
251261
```
252262
New node
253263
```sh

0 commit comments

Comments
 (0)