-
Notifications
You must be signed in to change notification settings - Fork 41
/
Task CLI Sdk
55 lines (33 loc) · 2.29 KB
/
Task CLI Sdk
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
# Guide For Task CLI Testing
before doing the task must run validator first
TASK CLI Sdk
Task CLI: Sdk transaction
**empowerx tx authz grant**
```empowerd tx authz grant new_wallet send --spend-limit=1000umpwr --from wallet_validator -y```
**empowerx tx authz revoke**
```empowerd tx authz revoke new_wallet /cosmos.bank.v1beta1.MsgSend --from wallet_validator
```
**empowerx tx bank send**
```empowerd tx bank send wallet YOUR_TO_WALLET_ADDRESS 1000000umpwr --from wallet --chain-id circulus-1 --gas-prices 0.1umpwr --gas-adjustment 1.5 --gas auto -y```
**empowerx tx bank multi-send**
```empowerd tx bank multi-send wallet wallet-1 wallet-2 1000umpwr --from wallet --chain-id circulus-1 --gas-prices 0.1umpwr --gas-adjustment 1.5 --gas auto -y```
**empowerx tx staking delegate**
```empowerd tx staking delegate YOUR_TO_VALOPER_ADDRESS 1000000umpwr --from wallet --chain-id circulus-1 --gas-prices 0.1umpwr --gas-adjustment 1.5 --gas auto -y```
**empowerx tx staking redelegate**
```empowerd tx staking redelegate $(empowerd keys show wallet --bech val -a) YOUR_TO_VALOPER_ADDRESS 1000000umpwr --from wallet --chain-id circulus-1 --gas-prices 0.1umpwr --gas-adjustment 1.5 --gas auto -y```
**empowerx tx staking unbond**
```empowerd tx staking unbond $(empowerd keys show wallet --bech val -a) 1000000umpwr --from wallet --chain-id circulus-1 --gas-prices 0.1umpwr --gas-adjustment 1.5 --gas auto -y```
**empowerx tx cancel-unbound**
```empowerd tx staking cancel-unbond valoperaddress 100umpwr blockpasundelegate --from wallet -y```
**empowerd tx distribution withdraw-all-rewards**
```empowerd tx distribution withdraw-all-rewards --from wallet --chain-id circulus-1 --gas-prices 0.1umpwr --gas-adjustment 1.5 --gas auto -y```
**empowerd tx distribution withdraw-rewards**
```empowerd tx distribution withdraw-rewards $(empowerd keys show wallet --bech val -a) --commission --from wallet --chain-id circulus-1 --gas-prices 0.1umpwr --gas-adjustment 1.5 --gas auto -y```
**empowerx tx auth exect**
Untuk task ini bikin wallet kedua di command line atau bisa import dari keplr
**first command **
```empowerd tx bank send wallet_address_pertama wallet_address_kedua 1000umpwr --generate-only > tx.json```
**second command**
```empowerd tx authz exec tx.json --from wallet --fees 200umpwr```
Copy Hash Second Command
Done