Staking & Voting

Create Bucket for Voting

Usage: ioctl stake2 create AMOUNT_IOTX CANDIDATE_NAME STAKE_DURATION [DATA] [--auto-stake] [-s SIGNER] [-n NONCE] [-l GAS_LIMIT] [-p GASP_RICE] [-P PASSWORD] [-y]
1
➜ ioctl stake2 create 130 robotbp00000 7 --auto-stake -s tmp2
2
Enter password #io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4:
3
​
4
​
5
version: 1 nonce: 420 gasLimit: 10000 gasPrice: 0.000001 IOTX
6
senderAddress: io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4 (tmp)
7
version: 1
8
nonce: 420
9
gasLimit: 10000
10
gasPrice: "1000000000000"
11
stakeCreate: <
12
candidateName: "robotbp00000"
13
stakedAmount: "130000000000000000000"
14
stakedDuration: 7
15
autoStake: true
16
>
17
senderPubKey: 0422346c407294b5e37487395f193faa48dabfc2225ab33fe47b335299f46505b1689f0d96fd53bd19971fe47f310669cf6260dcdc23318454814a4fe904f4d384
18
signature: 64cb75de95732ab1f3bf04fbfa8449d05a4d7a1115f8aad07b369316dbff75c54ba1d3c66ead9ac26e57c9212f73c9009eba11260d5c2f89ed51ff68b56e54b000
19
​
20
Please confirm your action.
21
​
22
​
23
Options: yes
24
Quit for anything else.
25
yes
26
Action has been sent to blockchain.
27
Wait for several seconds and query this action by hash:30aa10f565f425b0d7b34b57cbf4b22a164b8eb391c1c24bcdc012cabc09a513
Copied!

Add more IOTX to a Bucket

Usage: ioctl stake2 add BUCKET_INDEX AMOUNT_IOTX [DATA] [-s SIGNER] [-n NONCE] [-l GAS_LIMIT] [-p GAS_PRICE] [-P PASSWORD] [-y]
1
➜ ioctl stake2 add 56 102 -s tmp2 -y
2
Enter password #io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4:
3
​
4
Action has been sent to blockchain.
5
Wait for several seconds and query this action by hash:a51805dbca3046c62f3dd14366594bdd9aabdbe02aa394712556c801bc206359
Copied!

Renew a Bucket

Usage: ioctl stake2 renew BUCKET_INDEX STAKE_DURATION [DATA] [--auto-stake] [-s SIGNER] [-n NONCE] [-l GAS_LIMIT] [-p GAS_PRICE] [-P PASSWORD] [-y]
1
➜ ioctl stake2 renew 56 7 -s tmp2
2
Enter password #io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4:
3
​
4
​
5
version: 1 nonce: 424 gasLimit: 10000 gasPrice: 0.000001 IOTX
6
senderAddress: io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4 (tmp)
7
version: 1
8
nonce: 424
9
gasLimit: 10000
10
gasPrice: "1000000000000"
11
stakeRestake: <
12
bucketIndex: 56
13
stakedDuration: 7
14
>
15
senderPubKey: 0422346c407294b5e37487395f193faa48dabfc2225ab33fe47b335299f46505b1689f0d96fd53bd19971fe47f310669cf6260dcdc23318454814a4fe904f4d384
16
signature: 1e8683119f9ccb041f53f4da8cdc16681fc1e542825e44a0e576f6783600176a1eb106b1eed500694cc3bff88b19fbd8cfd6c921faabb99440c15dc0272a09d400
17
​
18
Please confirm your action.
19
​
20
​
21
Options: yes
22
Quit for anything else.
23
yes
24
Action has been sent to blockchain.
25
Wait for several seconds and query this action by hash:c6acfec04e0a6a623713f928bdbe94eb573a6d52227241e0595509cea44728ab
Copied!

Change Candidate Of Bucket

Usage: ioctl stake2 change CANDIDATE_NAME BUCKET_INDEX [DATA] [-s SIGNER] [-n NONCE] [-l GAS_LIMIT] [-p GAS_PRICE] [-P PASSWORD] [-y]
1
➜ ioctl stake2 change robotbp00001 56 -s tmp2
2
Enter password #io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4:
3
​
4
​
5
version: 1 nonce: 425 gasLimit: 10000 gasPrice: 0.000001 IOTX
6
senderAddress: io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4 (tmp2)
7
version: 1
8
nonce: 425
9
gasLimit: 10000
10
gasPrice: "1000000000000"
11
stakeChangeCandidate: <
12
bucketIndex: 56
13
candidateName: "robotbp00001"
14
>
15
senderPubKey: 0422346c407294b5e37487395f193faa48dabfc2225ab33fe47b335299f46505b1689f0d96fd53bd19971fe47f310669cf6260dcdc23318454814a4fe904f4d384
16
signature: 03cd6ccc8c7adf739ea34666ef87cde19d35f3a1938d3aba921a713f8d7b26a90f7e07c3557aec67cc81c82ddf2b2e5d316016da4fcda46e4c93920e53a5ca5701
17
​
18
Please confirm your action.
19
​
20
​
21
Options: yes
22
Quit for anything else.
23
yes
24
Action has been sent to blockchain.
25
Wait for several seconds and query this action by hash:2ee5a6bb764c502d9a8a016d71d83e8b610f4bade1bb0207ec97108a2934a1f6
Copied!

Transfer Ownership Of Bucket

Usage: ioctl stake2 transfer (ALIAS|VOTE_ADDRESS) BUCKET_INDEX [DATA] [-s SIGNER] [-n NONCE] [-l GAS_LIMIT] [-p GAS_PRICE] [-P PASSWORD] [-y]
1
➜ ioctl stake2 transfer daddypig 56 -s tmp2
2
Enter password #io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4:
3
​
4
​
5
version: 1 nonce: 426 gasLimit: 10000 gasPrice: 0.000001 IOTX
6
senderAddress: io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4 (tmp)
7
version: 1
8
nonce: 426
9
gasLimit: 10000
10
gasPrice: "1000000000000"
11
stakeTransferOwnership: <
12
bucketIndex: 56
13
voterAddress: "io1gh439pm67d4cwxt882xpylj75klys6esepml60"
14
>
15
senderPubKey: 0422346c407294b5e37487395f193faa48dabfc2225ab33fe47b335299f46505b1689f0d96fd53bd19971fe47f310669cf6260dcdc23318454814a4fe904f4d384
16
signature: 7ff14a55d71307b221675f8c5b21ca0a3390bace47c855cdaa5d8fca00287601714d2076a270e74fcef235571bd2bd97d85e06ee3cc46473ca94c7ad34702cc200
17
​
18
Please confirm your action.
19
​
20
​
21
Options: yes
22
Quit for anything else.
23
yes
24
Action has been sent to blockchain.
25
Wait for several seconds and query this action by hash:f23774c081a0a66c3f3830ca64e1efe669bb0cc7ea7815774294824f9c1b4c15
Copied!

Release a Over-Time Bucket

Usage: ioctl stake2 release BUCKET_INDEX [DATA] [-c ALIAS|CONTRACT_ADDRESS] [-s SIGNER] [-n NONCE] [-l GAS_LIMIT] [-p GASPRICE] [-P PASSWORD] [-y]
1
➜ ioctl stake2 release 1
2
Enter password #ioxxx...xxx:
3
...
4
...
5
Action has been sent to blockchain.
6
Wait for several seconds and query this action by hash:iotexscan.io/action/xxx...xxx
Copied!

Withdraw IOTX From a Released Bucket

Usage: ioctl stake2 withdraw BUCKET_INDEX [DATA] [-c ALIAS|CONTRACT_ADDRESS] [-s SIGNER] [-n NONCE] [-l GAS_LIMIT] [-p GASPRICE] [-P PASSWORD] [-y]
1
➜ ioctl stake2 withdraw 1
2
Enter password #ioxxx...xxx:
3
...
4
...
5
Action has been sent to blockchain.
6
Wait for several seconds and query this action by hash:iotexscan.io/action/xxx...xxx
Copied!

Register Candidate

Usage: ioctl stake2 register NAME (ALIAS|OPERATO_ADDRESS) (ALIAS|REWARD_ADDRESS) (ALIAS|OWNER_ADDRESS) AMOUNT_IOTX STAKE_DURATION [DATA] [--auto-stake] [-s SIGNER] [-n NONCE] [-l GAS_LIMIT] [-p GAS_PRICE] [-P PASSWORD] [-y]
1
➜ ioctl stake2 register pig tmp2 tmp2 tmp2 1000000 7 -s tmp2
2
Enter password #io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4:
3
​
4
​
5
version: 1 nonce: 428 gasLimit: 10000 gasPrice: 0.000001 IOTX
6
senderAddress: io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4 (tmp)
7
version: 1
8
nonce: 428
9
gasLimit: 10000
10
gasPrice: "1000000000000"
11
candidateRegister: <
12
candidate: <
13
name: "pig"
14
operatorAddress: "io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4"
15
rewardAddress: "io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4"
16
>
17
stakedAmount: "1000000000000000000000000"
18
stakedDuration: 7
19
ownerAddress: "io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4"
20
>
21
senderPubKey: 0422346c407294b5e37487395f193faa48dabfc2225ab33fe47b335299f46505b1689f0d96fd53bd19971fe47f310669cf6260dcdc23318454814a4fe904f4d384
22
signature: 3839e559a155e34900e2fc7b9cb45c772c1eac16ce9b2a84d4c033de054c8841062825fe368c984c1a367c1e16c16cfe4518335db346b3ab47277378fc0aa29c00
23
​
24
Please confirm your action.
25
​
26
​
27
Options: yes
28
Quit for anything else.
29
yes
30
Action has been sent to blockchain.
31
Wait for several seconds and query this action by hash:9571ad35b0184ad75eaabe539d57513f37fac74b9f605c172fbc28b760d256df
Copied!

Update Candidate Information

Usage: ioctl stake2 update NAME (ALIAS|OPERATOR_ADDRESS) (ALIAS|REWARD_ADDRESS) [-s SIGNER] [-n NONCE] [-l GAS_LIMIT] [-p GAS_PRICE] [-P PASSWORD] [-y]
1
➜ ioctl stake2 update pig tmp2 tmp2 -s tmp2
2
Enter password #io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4:
3
​
4
​
5
version: 1 nonce: 429 gasLimit: 10000 gasPrice: 0.000001 IOTX
6
senderAddress: io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4 (tmp)
7
version: 1
8
nonce: 429
9
gasLimit: 10000
10
gasPrice: "1000000000000"
11
candidateUpdate: <
12
name: "pig"
13
operatorAddress: "io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4"
14
rewardAddress: "io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4"
15
>
16
senderPubKey: 0422346c407294b5e37487395f193faa48dabfc2225ab33fe47b335299f46505b1689f0d96fd53bd19971fe47f310669cf6260dcdc23318454814a4fe904f4d384
17
signature: e403da0e9c928cbedbbba4ab97d9cc57a1f207a4c72c8e44bbfdf0a90a3ee01e48a2ca1d9e6bc15f6d9b4230d592f1577bb8ad8a1c9529ada986edfec6662c1801
18
​
19
Please confirm your action.
20
​
21
​
22
Options: yes
23
Quit for anything else.
24
yes
25
Action has been sent to blockchain.
26
Wait for several seconds and query this action by hash:c6daaedee325d339e2eba15b76646329c940c0f07ebe9c13cd1f3288ee319a5d
Copied!
Last modified 6mo ago