Query the Blockchain

Query the Blockchain

Usage: ioctl bc info
1
➜ ioctl bc info
2
Blockchain Node: api.iotex.one:443
3
{
4
"height": 11283255,
5
"numActions": 14393325,
6
"tps": 1,
7
"epoch": {
8
"num": 18194,
9
"height": 11282761
10
},
11
"tpsFloat": 0.29090908
12
}
Copied!

Query Block

Usage: ioctl bc block [HEIGHT|HASH]
1
➜ ioctl bc block
2
Blockchain Node: api.iotex.one:443
3
{
4
"hash": "b73d48301aa75ab2f6c6e3350abb4b050852eebd89a333f9b2f412c9011f37ba",
5
"height": 11283260,
6
"timestamp": {
7
"seconds": 1621955365
8
},
9
"numActions": 1,
10
"producerAddress": "io1ddjluttkzljqfgdtcz9eu3r3s832umy7ylx0ts",
11
"transferAmount": "0",
12
"txRoot": "d401ba17a772340f6aa0284357fa65758c9063c755c25721cab86e3b674e096b",
13
"receiptRoot": "8205af86ab185619edf8cb2279774bf5c3b322fb1ad7855719f8f29ac50734a4",
14
"deltaStateDigest": "835b130e5fe7333da7287b4a61011bf575cfef2386c58e2eedf8c100007aeed0",
15
"logsBloom": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
16
"previousBlockHash": "ec1d8f515ffc90cc2c549b6d9ae0ff07d6d9681137f4fe40d78e9d8f10228d8d"
17
}
Copied!
1
➜ ioctl bc block 101
2
Blockchain Node: api.iotex.one:443
3
{
4
"hash": "1930df275ea54c87fcdd3909e0382c26fc14aa970433e6a6302eb393c829634e",
5
"height": 101,
6
"timestamp": {
7
"seconds": 1555899830
8
},
9
"numActions": 1,
10
"producerAddress": "io1vtm2zgn830pn6auc2cvnchgwdaefa9gr4z0s86",
11
"transferAmount": "0",
12
"txRoot": "5a94b4defdc18cf84e6515f9c125052cc1aedf27c6be2a378acd34a47ab2a286",
13
"receiptRoot": "3066ce28bd35faf02e98d2821eb2aa94fff31cca71f93675fea4a58f0963ab66",
14
"deltaStateDigest": "a9f953c5b5e71a2dba36e3caa7b2aeb6c1722f5d8d2bbbe08e9af849e40adc40",
15
"previousBlockHash": "ac661375315b444ad4feff5e96db11eb01d55af2a850f5504180c8bf8a4d39f4"
16
}
Copied!
1
➜ ioctl bc block 1930df275ea54c87fcdd3909e0382c26fc14aa970433e6a6302eb393c829634e 1
2
Blockchain Node: api.iotex.one:443
3
{
4
"hash": "1930df275ea54c87fcdd3909e0382c26fc14aa970433e6a6302eb393c829634e",
5
"height": 101,
6
"timestamp": {
7
"seconds": 1555899830
8
},
9
"numActions": 1,
10
"producerAddress": "io1vtm2zgn830pn6auc2cvnchgwdaefa9gr4z0s86",
11
"transferAmount": "0",
12
"txRoot": "5a94b4defdc18cf84e6515f9c125052cc1aedf27c6be2a378acd34a47ab2a286",
13
"receiptRoot": "3066ce28bd35faf02e98d2821eb2aa94fff31cca71f93675fea4a58f0963ab66",
14
"deltaStateDigest": "a9f953c5b5e71a2dba36e3caa7b2aeb6c1722f5d8d2bbbe08e9af849e40adc40",
15
"previousBlockHash": "ac661375315b444ad4feff5e96db11eb01d55af2a850f5504180c8bf8a4d39f4"
16
}
Copied!

Query Staking Bucket Information

Usage: ioctl bc bucketlist [ALIAS|ADDRESS]
1
➜ ioctl bc bucketlist daddypig
2
Blockchain Node: api.testnet.iotex.one:443
3
{
4
index: 56
5
owner: io1gh439pm67d4cwxt882xpylj75klys6esepml60
6
candidate: io1q2whygmmzphr22fh5703l04jz5kh9thj9dgs99
7
stakedAmount: 232 IOTX
8
stakedDuration: 7 days
9
autoStake: false
10
createTime: 2020-05-21T13:10:10Z
11
stakeStartTime: 2020-05-21T13:28:25Z
12
unstakeStartTime: none
13
}
Copied!

Query Buckets By Candidate

Usage: ioctl bc bucketlist cand [CANDIDATE_NAME] [OFFSET] [LIMIT]
1
➜ ioctl bc bucketlist cand longz 0 10
2
Blockchain Node: api.testnet.iotex.one:443
3
{
4
index: 34
5
owner: io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4
6
candidate: io1t56twy23yjuqscljpjc869hyqw3gpswwj0g228
7
stakedAmount: 100 IOTX
8
stakedDuration: 7 days
9
autoStake: false
10
createTime: 2020-05-11T06:41:20Z
11
stakeStartTime: 2020-05-11T06:41:20Z
12
unstakeStartTime: none
13
}
14
{
15
index: 43
16
owner: io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4
17
candidate: io1l40dc4q95fsjdprhcga5qrpdsj46q3wpzr27n9
18
stakedAmount: 170 IOTX
19
stakedDuration: 14 days
20
autoStake: false
21
createTime: 2020-05-14T02:42:15Z
22
stakeStartTime: 2020-05-14T02:42:15Z
23
unstakeStartTime: none
24
}
Copied!

Query Buckets By Voter

Usage: ioctl bc bucketlist voter [VOTER_ADDRESS] [OFFSET] [LIMIT]
1
➜ ioctl bc bucketlist voter tmp2 0 10
2
Blockchain Node: api.testnet.iotex.one:443
3
{
4
index: 34
5
owner: io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4
6
candidate: io1t56twy23yjuqscljpjc869hyqw3gpswwj0g228
7
stakedAmount: 100 IOTX
8
stakedDuration: 7 days
9
autoStake: false
10
createTime: 2020-05-11T06:41:20Z
11
stakeStartTime: 2020-05-11T06:41:20Z
12
unstakeStartTime: none
13
}
14
{
15
index: 43
16
owner: io120au9ra0nffdle04jx2g5gccn6gq8qd4fy03l4
17
candidate: io1l40dc4q95fsjdprhcga5qrpdsj46q3wpzr27n9
18
stakedAmount: 170 IOTX
19
stakedDuration: 14 days
20
autoStake: false
21
createTime: 2020-05-14T02:42:15Z
22
stakeStartTime: 2020-05-14T02:42:15Z
23
unstakeStartTime: none
24
}
Copied!

Query Bucket By Index

Usage: ioctl bc bucket [BUCKET_INDEX]
1
➜ ioctl bc bucket 56
2
Blockchain Node: api.testnet.iotex.one:443
3
{
4
index: 56
5
owner: io19n5sqmreq4tk7w7xevnwms9ux8h7kuemjrjlf7
6
candidate: io1xrcfzdmujtr9hvmrm58yxvhe5djahdzt30ljs2
7
stakedAmount: 100 IOTX
8
stakedDuration: 0 days
9
autoStake: false
10
createTime: 2020-06-01T18:32:35Z
11
stakeStartTime: 2020-06-01T18:32:35Z
12
unstakeStartTime: none
13
}
Copied!

Query Delegates

Usage: ioctl node delegate [-e epoch-num]
1
➜ ioctl node delegate
2
Epoch: 18194, Start block height: 11282761,Total blocks produced in epoch: 542
3
4
Address Name Rank Alias Status Blocks ProbatedStatus Votes
5
io1jzteq7gc5sh8tfp5auz8wwj97kvdapr9y8wzne binancevote 1 0 414565318.738108275911974163
6
io10reczcaelglh5xmkay65h9vw3e5dp82e8vw0rz metanyx 2 0 209094580.94368987269441618
7
io189zlpedmhs3cg4zhyle2u8f9shkztwd3n3d7zd satoshimusk 3 active 22 141597515.304090309742324742
8
io1tfke5nfwryte6nultpmqefadgm0dsahm2gm63k iotexlab 4 0 104597977.604617043282262392
9
... ... .. ... .. ...
10
io1u4pev9u5as7ujpk29wpsrc95m8kuhec3pmuk72 hashquark 35 active 23 46788920.335452899578834654
11
io1l42qgv8328h8x7pde35w3szh59elhw8nwmcy6j cryptozoo 36 active 22 45750281.527141635145186376
12
Copied!
1
➜ ioctl node delegate -e 18193
2
Epoch: 18193, Start block height: 11282041,Total blocks produced in epoch: 720
3
4
Address Name Rank Alias Status Blocks ProbatedStatus Votes
5
io1jzteq7gc5sh8tfp5auz8wwj97kvdapr9y8wzne binancevote 1 0 414564878.655601430673104648
6
io10reczcaelglh5xmkay65h9vw3e5dp82e8vw0rz metanyx 2 0 209217627.214848890340299665
7
io189zlpedmhs3cg4zhyle2u8f9shkztwd3n3d7zd satoshimusk 3 active 30 141597514.574782833722376484
8
io1tfke5nfwryte6nultpmqefadgm0dsahm2gm63k iotexlab 4 active 30 104544157.060103748426275375
9
... ... .. ... .. ...
10
io1l42qgv8328h8x7pde35w3szh59elhw8nwmcy6j cryptozoo 35 active 30 45750281.495953941578199214
11
io1u4pev9u5as7ujpk29wpsrc95m8kuhec3pmuk72 hashquark 36 0 45337106.848622283990092254
12
Copied!

Query Probation List

Usage: ioctl node probationlist [-e epoch-num]
1
➜ ioctl node probationlist
2
EpochNumber : 4985, IntensityRate : 90%
3
ProbationList : [
4
"io1gh439pm67d4cwxt882xpylj75klys6esepml60"
5
]
6
Copied!
1
➜ ioctl node probationlist -e 4500
2
EpochNumber : 4500, IntensityRate : 90%
3
ProbationList : [
4
"io13n3382cjhaawmqfk4vmvvgllnryw4tf56qdtks",
5
"io1gh439pm67d4cwxt882xpylj75klys6esepml60"
6
]
Copied!

Query Reward

Usage: ioctl node reward unclaimed|pool [ALIAS|DELEGATE_ADDRESS]
1
➜ ioctl node reward unclaimed whale
2
io1t54nfdnpldaxkpm35f2gzh3rx6cakypmp5xfz5: 45819 IOTX
Copied!
1
➜ ioctl node reward pool
2
Total Unclaimed: 26567469.425867808134990226 IOTX
3
Total Available: 720630085.427229243274397982 IOTX
4
Total Balance: 747197554.853097051409388208 IOTX
Copied!
Last modified 4mo ago