-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStride
More file actions
76 lines (62 loc) · 2.8 KB
/
Stride
File metadata and controls
76 lines (62 loc) · 2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
wget -q -O stride.sh https://raw.githubusercontent.com/AKnode/rekapan-node/main/stride/stride.sh && chmod +x stride.sh && sudo /bin/bash stride.sh
source $HOME/.bash_profile
validator info
strided status 2>&1 | jq .ValidatorInfo
strided status 2>&1 | jq .SyncInfo
strided status 2>&1 | jq .NodeInfo
create your wallet
Add New Wallet
strided keys add $WALLET
Recover Existing Wallet
strided keys add $WALLET --recover
save info Wallets
STRIDE_WALLET_ADDRESS=$(strided keys show $WALLET -a)
STRIDE_VALOPER_ADDRESS=$(strided keys show $WALLET --bech val -a)
echo 'export STRIDE_WALLET_ADDRESS='${STRIDE_WALLET_ADDRESS} >> $HOME/.bash_profile
echo 'export STRIDE_VALOPER_ADDRESS='${STRIDE_VALOPER_ADDRESS} >> $HOME/.bash_profile
source $HOME/.bash_profile
Chek wallet balance
strided query bank balances $STRIDE_WALLET_ADDRESS
Create New Validator
strided tx staking create-validator \
--amount 10000000ustrd \
--from $WALLET \
--commission-max-change-rate "0.01" \
--commission-max-rate "0.2" \
--commission-rate "0.07" \
--min-self-delegation "1" \
--pubkey $(strided tendermint show-validator) \
--moniker $NODENAME \
--chain-id $STRIDE_CHAIN_ID
Add liquid stake
strided tx stakeibc liquid-stake 1000 uatom --from $WALLET --chain-id $STRIDE_CHAIN_ID
Redeem stake
strided tx stakeibc redeem-stake 999 GAIA <cosmos_address_you_want_to_redeem_to> --chain-id $STRIDE_CHAIN_ID --from $WALLET
Check if tokens are claimable
If you'd like to see whether your tokens are ready to be claimed, look for your UserRedemptionRecord keyed by <your_stride_account>.
strided q records list-user-redemption-record --output json | jq --arg WALLET_ADDRESS "$STRIDE_WALLET_ADDRESS" '.UserRedemptionRecord | map(select(.sender == $WALLET_ADDRESS))'
Claim tokens
strided tx stakeibc claim-undelegated-tokens GAIA 5 --chain-id $STRIDE_CHAIN_ID --from $WALLET
Edit Existing Validator
strided tx staking edit-validator \
--moniker=$NODENAME \
--identity=<your_keybase_id> \
--website="<your_website>" \
--details="<your_validator_description>" \
--chain-id=$STRIDE_CHAIN_ID \
--from=$WALLET
unjail
strided tx slashing unjail \
--broadcast-mode=block \
--from=$WALLET \
--chain-id=$STRIDE_CHAIN_ID \
--gas=auto
Staking, Delegation and Rewards
strided tx staking delegate $STRIDE_VALOPER_ADDRESS 10000000ustrd --from=$WALLET --chain-id=$STRIDE_CHAIN_ID --gas=auto
strided tx staking redelegate <srcValidatorAddress> <destValidatorAddress> 10000000ustrd --from=$WALLET --chain-id=$STRIDE_CHAIN_ID --gas=auto
strided tx distribution withdraw-all-rewards --from=$WALLET --chain-id=$STRIDE_CHAIN_ID --gas=auto
strided tx distribution withdraw-rewards $STRIDE_VALOPER_ADDRESS --from=$WALLET --commission --chain-id=$STRIDE_CHAIN_ID
Node info
strided status 2>&1 | jq .SyncInfo
strided status 2>&1 | jq .ValidatorInfo
strided status 2>&1 | jq .NodeInfo