0g-chain/docs/education/user_actions/quick_guide.md

76 lines
1.6 KiB
Markdown
Raw Normal View History

2021-11-17 02:03:53 +00:00
<!--
order: 1
-->
# Quick Reference
2021-11-10 19:44:02 +00:00
### Get a list of all keys
```
kava keys list
2021-11-10 19:44:02 +00:00
```
### Query Account
2021-11-10 19:44:02 +00:00
```
kava q account <kava-addr>
2021-11-10 19:44:02 +00:00
```
### View Staking Delegations
```
kava q staking delegations <kava-addr>
2021-11-10 19:44:02 +00:00
```
### Claim staking rewards
```
kava tx distribution withdraw-all-rewards --gas 650000 --gas-prices 0.01ukava --from <kava-addr or key name>
2021-11-10 19:44:02 +00:00
```
### Querying outstanding staking rewards
```
kava q distribution rewards <kava-addr>
2021-11-10 19:44:02 +00:00
```
### Claim staking from individual validator
```
kava tx distribution withdraw-rewards <kava-validator-addre (starts with kavavaloper)> --gas 650000 --gas-prices 0.01ukava --from <kava-addr or key name>
2021-11-10 19:44:02 +00:00
```
### Claiming KAVA Delegator rewards (yielding HARD and SWP)
```
kava tx incentive claim-delegator --multiplier hard=large,swp=large --from <kava-addr or key name> --gas 800000 --gas-prices 0.01ukava
2021-11-10 19:44:02 +00:00
```
### Querying outstanding HARD rewards
```
kava q incentive rewards --type delegator --owner <kava-address>
2021-11-10 19:44:02 +00:00
```
### View HARD Incentives
```
kava q incentive rewards --type hard --owner <kava-address>
2021-11-10 19:44:02 +00:00
```
### Claim HARD Incentives
```
kava tx incentive claim-hard --multiplier hard=large --multiplier ukava=large --from <kava-addr or key name> --gas 800000 --gas-prices 0.01ukava
2021-11-10 19:44:02 +00:00
```
### Send Coins
```
kava tx bank send <from> <to> <amount (100ukava for example)> --memo [memo] --gas-prices 0.01ukava
2021-11-10 19:44:02 +00:00
```
### Query Transaction Status Using TX Hash
```
kava q tx <tx_hash>
2021-11-10 19:44:02 +00:00
```
### Query Transactions Using events
```
kava q txs --events message.actions=swap_deposit
```
2021-11-10 19:44:02 +00:00
### Adding a Key to Ledger
```
kava keys add <key-name> --account <account-index> --legacy-hd-path --ledger
2021-11-10 19:44:02 +00:00
```