f(x)Core JSON RPC

Support

JSON-RPC 2.0
HTTP
HTTPS
WS
Routes
Health
Status
NetInfo
Block
Commit
Genesis
Tx
ABCIInfo
ABCIQuery

Info Routes

Health

Node heartbeat

Parameters (0)

Requests

HTTP
JSONRPC
1
curl http://localhost:26657/health
Copied!
1
curl -X POST http://localhost:26657 -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"health\"}"
Copied!

Response

1
{
2
"jsonrpc": "2.0",
3
"id": 2,
4
"result": {}
5
}
Copied!

Status

Get Tendermint status including node info, pubkey, latest block hash, app hash, block height and time.

Parameters

None

Request

HTTP
1
curl http://127.0.0.1:26657/status
Copied!
JSONRPC
1
curl -X POST https://localhost:26657 -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"status\"}"
Copied!

Response

1
{
2
"jsonrpc": "2.0",
3
"id": -1,
4
"result": {
5
"node_info": {
6
"protocol_version": {
7
"p2p": "8",
8
"block": "11",
9
"app": "0"
10
},
11
"id": "b93270b358a72a2db30089f3856475bb1f918d6d",
12
"listen_addr": "tcp://0.0.0.0:26656",
13
"network": "cosmoshub-4",
14
"version": "v0.34.8",
15
"channels": "40202122233038606100",
16
"moniker": "aib-hub-node",
17
"other": {
18
"tx_index": "on",
19
"rpc_address": "tcp://0.0.0.0:26657"
20
}
21
},
22
"sync_info": {
23
"latest_block_hash": "50F03C0EAACA8BCA7F9C14189ACE9C05A9A1BBB5268DB63DC6A3C848D1ECFD27",
24
"latest_app_hash": "2316CFF7644219F4F15BEE456435F280E2B38955EEA6D4617CCB6D7ABF781C22",
25
"latest_block_height": "5622165",
26
"latest_block_time": "2021-03-25T14:00:43.356134226Z",
27
"earliest_block_hash": "1455A0C15AC49BB506992EC85A3CD4D32367E53A087689815E01A524231C3ADF",
28
"earliest_app_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
29
"earliest_block_height": "5200791",
30
"earliest_block_time": "2019-12-11T16:11:34Z",
31
"catching_up": false
32
},
33
"validator_info": {
34
"address": "38FB765D0092470989360ECA1C89CD06C2C1583C",
35
"pub_key": {
36
"type": "tendermint/PubKeyEd25519",
37
"value": "Z+8kntVegi1sQiWLYwFSVLNWqdAUGEy7lskL78gxLZI="
38
},
39
"voting_power": "0"
40
}
41
}
42
}
Copied!

NetInfo

Network information

Parameters

None

Request

HTTP
1
curl http://127.0.0.1:26657/net_info
Copied!
JSONRPC
1
curl -X POST https://localhost:26657 -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"net_info\"}"
Copied!

Response

1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"result": {
5
"listening": true,
6
"listeners": [
7
"Listener(@)"
8
],
9
"n_peers": "1",
10
"peers": [
11
{
12
"node_info": {
13
"protocol_version": {
14
"p2p": "7",
15
"block": "10",
16
"app": "0"
17
},
18
"id": "5576458aef205977e18fd50b274e9b5d9014525a",
19
"listen_addr": "tcp://0.0.0.0:26656",
20
"network": "cosmoshub-2",
21
"version": "0.32.1",
22
"channels": "4020212223303800",
23
"moniker": "moniker-node",
24
"other": {
25
"tx_index": "on",
26
"rpc_address": "tcp://0.0.0.0:26657"
27
}
28
},
29
"is_outbound": true,
30
"connection_status": {
31
"Duration": "168901057956119",
32
"SendMonitor": {
33
"Active": true,
34
"Start": "2019-07-31T14:31:28.66Z",
35
"Duration": "168901060000000",
36
"Idle": "168901040000000",
37
"Bytes": "5",
38
"Samples": "1",
39
"InstRate": "0",
40
"CurRate": "0",
41
"AvgRate": "0",
42
"PeakRate": "0",
43
"BytesRem": "0",
44
"TimeRem": "0",
45
"Progress": 0
46
},
47
"RecvMonitor": {
48
"Active": true,
49
"Start": "2019-07-31T14:31:28.66Z",
50
"Duration": "168901060000000",
51
"Idle": "168901040000000",
52
"Bytes": "5",
53
"Samples": "1",
54
"InstRate": "0",
55
"CurRate": "0",
56
"AvgRate": "0",
57
"PeakRate": "0",
58
"BytesRem": "0",
59
"TimeRem": "0",
60
"Progress": 0
61
},
62
"Channels": [
63
{
64
"ID": 48,
65
"SendQueueCapacity": "1",
66
"SendQueueSize": "0",
67
"Priority": "5",
68
"RecentlySent": "0"
69
}
70
]
71
},
72
"remote_ip": "95.179.155.35"
73
}
74
]
75
}
76
}
Copied!

Blockchain

Get block headers. Returned in descending order. May be limited in quantity.

Parameters

  • minHeight (integer): The lowest block to be returned in the response
  • maxHeight (integer): The highest block to be returned in the response

Request

HTTP
1
curl http://127.0.0.1:26657/blockchain
2
3
curl http://127.0.0.1:26657/blockchain?minHeight=1&maxHeight=2
Copied!
JSONRPC
1
curl -X POST https://localhost:26657 -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"blockchain\",\"params\":{\"minHeight\":\"1\", \"maxHeight\":\"2\"}}"
Copied!

Response

1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"result": {
5
"last_height": "1276718",
6
"block_metas": [
7
{
8
"block_id": {
9
"hash": "112BC173FD838FB68EB43476816CD7B4C6661B6884A9E357B417EE957E1CF8F7",
10
"parts": {
11
"total": 1,
12
"hash": "38D4B26B5B725C4F13571EFE022C030390E4C33C8CF6F88EDD142EA769642DBD"
13
}
14
},
15
"block_size": 1000000,
16
"header": {
17
"version": {
18
"block": "10",
19
"app": "0"
20
},
21
"chain_id": "cosmoshub-2",
22
"height": "12",
23
"time": "2019-04-22T17:01:51.701356223Z",
24
"last_block_id": {
25
"hash": "112BC173FD838FB68EB43476816CD7B4C6661B6884A9E357B417EE957E1CF8F7",
26
"parts": {
27
"total": 1,
28
"hash": "38D4B26B5B725C4F13571EFE022C030390E4C33C8CF6F88EDD142EA769642DBD"
29
}
30
},
31
"last_commit_hash": "21B9BC845AD2CB2C4193CDD17BFC506F1EBE5A7402E84AD96E64171287A34812",
32
"data_hash": "970886F99E77ED0D60DA8FCE0447C2676E59F2F77302B0C4AA10E1D02F18EF73",
33
"validators_hash": "D658BFD100CA8025CFD3BECFE86194322731D387286FBD26E059115FD5F2BCA0",
34
"next_validators_hash": "D658BFD100CA8025CFD3BECFE86194322731D387286FBD26E059115FD5F2BCA0",
35
"consensus_hash": "0F2908883A105C793B74495EB7D6DF2EEA479ED7FC9349206A65CB0F9987A0B8",
36
"app_hash": "223BF64D4A01074DC523A80E76B9BBC786C791FB0A1893AC5B14866356FCFD6C",
37
"last_results_hash": "",
38
"evidence_hash": "",
39
"proposer_address": "D540AB022088612AC74B287D076DBFBC4A377A2E"
40
},
41
"num_txs": "54"
42
}
43
]
44
}
45
}
Copied!

Block

Get block at a specified height.

Parameters

  • height (integer): height of the requested block. If no height is specified the latest block will be used.

Request

HTTP
1
curl http://127.0.0.1:26657/block
2
3
curl http://127.0.0.1:26657/block?height=1
Copied!
JSONRPC
1
curl -X POST https://localhost:26657 -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"block\",\"params\":{\"height\":\"1\"}}"
Copied!

Response

1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"result": {
5
"block_id": {
6
"hash": "112BC173FD838FB68EB43476816CD7B4C6661B6884A9E357B417EE957E1CF8F7",
7
"parts": {
8
"total": 1,
9
"hash": "38D4B26B5B725C4F13571EFE022C030390E4C33C8CF6F88EDD142EA769642DBD"
10
}
11
},
12
"block": {
13
"header": {
14
"version": {
15
"block": "10",
16
"app": "0"
17
},
18
"chain_id": "cosmoshub-2",
19
"height": "12",
20
"time": "2019-04-22T17:01:51.701356223Z",
21
"last_block_id": {
22
"hash": "112BC173FD838FB68EB43476816CD7B4C6661B6884A9E357B417EE957E1CF8F7",
23
"parts": {
24
"total": 1,
25
"hash": "38D4B26B5B725C4F13571EFE022C030390E4C33C8CF6F88EDD142EA769642DBD"
26
}
27
},
28
"last_commit_hash": "21B9BC845AD2CB2C4193CDD17BFC506F1EBE5A7402E84AD96E64171287A34812",
29
"data_hash": "970886F99E77ED0D60DA8FCE0447C2676E59F2F77302B0C4AA10E1D02F18EF73",
30
"validators_hash": "D658BFD100CA8025CFD3BECFE86194322731D387286FBD26E059115FD5F2BCA0",
31
"next_validators_hash": "D658BFD100CA8025CFD3BECFE86194322731D387286FBD26E059115FD5F2BCA0",
32
"consensus_hash": "0F2908883A105C793B74495EB7D6DF2EEA479ED7FC9349206A65CB0F9987A0B8",
33
"app_hash": "223BF64D4A01074DC523A80E76B9BBC786C791FB0A1893AC5B14866356FCFD6C",
34
"last_results_hash": "",
35
"evidence_hash": "",
36
"proposer_address": "D540AB022088612AC74B287D076DBFBC4A377A2E"
37
},
38
"data": [
39
"yQHwYl3uCkKoo2GaChRnd+THLQ2RM87nEZrE19910Z28ABIUWW/t8AtIMwcyU0sT32RcMDI9GF0aEAoFdWF0b20SBzEwMDAwMDASEwoNCgV1YXRvbRIEMzEwMRCd8gEaagom61rphyEDoJPxlcjRoNDtZ9xMdvs+lRzFaHe2dl2P5R2yVCWrsHISQKkqX5H1zXAIJuC57yw0Yb03Fwy75VRip0ZBtLiYsUqkOsPUoQZAhDNP+6LY+RUwz/nVzedkF0S29NZ32QXdGv0="
40
],
41
"evidence": [
42
{
43
"type": "string",
44
"height": 0,
45
"time": 0,
46
"total_voting_power": 0,
47
"validator": {
48
"pub_key": {
49
"type": "tendermint/PubKeyEd25519",
50
"value": "A6DoBUypNtUAyEHWtQ9bFjfNg8Bo9CrnkUGl6k6OHN4="
51
},
52
"voting_power": 0,
53
"address": "string"
54
}
55
}
56
],
57
"last_commit": {
58
"height": 0,
59
"round": 0,
60
"block_id": {
61
"hash": "112BC173FD838FB68EB43476816CD7B4C6661B6884A9E357B417EE957E1CF8F7",
62
"parts": {
63
"total": 1,
64
"hash": "38D4B26B5B725C4F13571EFE022C030390E4C33C8CF6F88EDD142EA769642DBD"
65
}
66
},
67
"signatures": [
68
{
69
"type": 2,
70
"height": "1262085",
71
"round": 0,
72
"block_id": {
73
"hash": "112BC173FD838FB68EB43476816CD7B4C6661B6884A9E357B417EE957E1CF8F7",
74
"parts": {
75
"total": 1,
76
"hash": "38D4B26B5B725C4F13571EFE022C030390E4C33C8CF6F88EDD142EA769642DBD"
77
}
78
},
79
"timestamp": "2019-08-01T11:39:38.867269833Z",
80
"validator_address": "000001E443FD237E4B616E2FA69DF4EE3D49A94F",
81
"validator_index": 0,
82
"signature": "DBchvucTzAUEJnGYpNvMdqLhBAHG4Px8BsOBB3J3mAFCLGeuG7uJqy+nVngKzZdPhPi8RhmE/xcw/M9DOJjEDg=="
83
}
84
]
85
}
86
}
87
}
88
}
Copied!

BlockByHash

Parameters

  • hash (string): Hash of the block to query for.

Request

HTTP
1
curl http://127.0.0.1:26657/block_by_hash?hash=0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED
Copied!
JSONRPC
1
curl -X POST https://localhost:26657 -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"block_by_hash\",\"params\":{\"hash\":\"0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED\"}}"
Copied!

Response

1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"result": {
5
"block_id": {
6
"hash": "112BC173FD838FB68EB43476816CD7B4C6661B6884A9E357B417EE957E1CF8F7",
7
"parts": {
8
"total": 1,
9
"hash": "38D4B26B5B725C4F13571EFE022C030390E4C33C8CF6F88EDD142EA769642DBD"
10
}
11
},
12
"block": {
13
"header": {
14
"version": {
15
"block": "10",
16
"app": "0"
17
},
18
"chain_id": "cosmoshub-2",
19
"height": "12",
20
"time": "2019-04-22T17:01:51.701356223Z",
21
"last_block_id": {
22
"hash": "112BC173FD838FB68EB43476816CD7B4C6661B6884A9E357B417EE957E1CF8F7",
23
"parts": {
24
"total": 1,
25
"hash": "38D4B26B5B725C4F13571EFE022C030390E4C33C8CF6F88EDD142EA769642DBD"
26
}
27
},
28
"last_commit_hash": "21B9BC845AD2CB2C4193CDD17BFC506F1EBE5A7402E84AD96E64171287A34812",
29
"data_hash": "970886F99E77ED0D60DA8FCE0447C2676E59F2F77302B0C4AA10E1D02F18EF73",
30
"validators_hash": "D658BFD100CA8025CFD3BECFE86194322731D387286FBD26E059115FD5F2BCA0",
31
"next_validators_hash": "D658BFD100CA8025CFD3BECFE86194322731D387286FBD26E059115FD5F2BCA0",
32
"consensus_hash": "0F2908883A105C793B74495EB7D6DF2EEA479ED7FC9349206A65CB0F9987A0B8",
33
"app_hash": "223BF64D4A01074DC523A80E76B9BBC786C791FB0A1893AC5B14866356FCFD6C",
34
"last_results_hash": "",
35
"evidence_hash": "",
36
"proposer_address": "D540AB022088612AC74B287D076DBFBC4A377A2E"
37
},
38
"data": [
39
"yQHwYl3uCkKoo2GaChRnd+THLQ2RM87nEZrE19910Z28ABIUWW/t8AtIMwcyU0sT32RcMDI9GF0aEAoFdWF0b20SBzEwMDAwMDASEwoNCgV1YXRvbRIEMzEwMRCd8gEaagom61rphyEDoJPxlcjRoNDtZ9xMdvs+lRzFaHe2dl2P5R2yVCWrsHISQKkqX5H1zXAIJuC57yw0Yb03Fwy75VRip0ZBtLiYsUqkOsPUoQZAhDNP+6LY+RUwz/nVzedkF0S29NZ32QXdGv0="
40
],
41
"evidence": [
42
{
43
"type": "string",
44
"height": 0,
45
"time": 0,
46
"total_voting_power": 0,
47
"validator": {
48
"pub_key": {
49
"type": "tendermint/PubKeyEd25519",
50
"value": "A6DoBUypNtUAyEHWtQ9bFjfNg8Bo9CrnkUGl6k6OHN4="
51
},
52
"voting_power": 0,
53
"address": "string"
54
}
55
}
56
],
57
"last_commit": {
58
"height": 0,
59
"round": 0,
60
"block_id": {
61
"hash": "112BC173FD838FB68EB43476816CD7B4C6661B6884A9E357B417EE957E1CF8F7",
62
"parts": {
63
"total": 1,
64
"hash": "38D4B26B5B725C4F13571EFE022C030390E4C33C8CF6F88EDD142EA769642DBD"
65
}
66
},
67
"signatures": [
68
{
69
"type": 2,
70
"height": "1262085",
71
"round": 0,
72
"block_id": {
73
"hash": "112BC173FD838FB68EB43476816CD7B4C6661B6884A9E357B417EE957E1CF8F7",
74
"parts": {
75
"total": 1,
76
"hash": "38D4B26B5B725C4F13571EFE022C030390E4C33C8CF6F88EDD142EA769642DBD"
77
}
78
},
79
"timestamp": "2019-08-01T11:39:38.867269833Z",
80
"validator_address": "000001E443FD237E4B616E2FA69DF4EE3D49A94F",
81
"validator_index": 0,
82
"signature": "DBchvucTzAUEJnGYpNvMdqLhBAHG4Px8BsOBB3J3mAFCLGeuG7uJqy+nVngKzZdPhPi8RhmE/xcw/M9DOJjEDg=="
83
}
84
]
85
}
86
}
87
}
88
}
Copied!

BlockResults

Parameters

  • height (integer): Height of the block which contains the results. If no height is specified, the latest block height will be used

Request

HTTP
1
curl http://127.0.0.1:26657/block_results
2
3
4
curl http://127.0.0.1:26657/block_results?height=1
Copied!
JSONRPC
1
curl -X POST https://localhost:26657 -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"block_results\",\"params\":{\"height\":\"1\"}}"
Copied!

Response

1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": {
5
"height": "12",
6
"total_gas_used": "100",
7
"txs_results": [
8
{
9
"code": "0",
10
"data": "",
11
"log": "not enough gas",
12
"info": "",
13
"gas_wanted": "100",
14
"gas_used": "100",
15
"events": [
16
{
17
"type": "app",
18
"attributes": [
19
{
20
"key": "YWN0aW9u",
21
"value": "c2VuZA==",
22
"index": false
23
}
24
]
25
}
26
],
27
"codespace": "ibc"
28
}
29
],
30
"begin_block_events": [
31
{
32
"type": "app",
33
"attributes": [
34
{
35
"key": "YWN0aW9u",
36
"value": "c2VuZA==",
37
"index": false
38
}
39
]
40
}
41
],
42
"end_block": [
43
{
44
"type": "app",
45
"attributes": [
46
{
47
"key": "YWN0aW9u",
48
"value": "c2VuZA==",
49
"index": false
50
}
51
]
52
}
53
],
54
"validator_updates": [
55
{
56
"pub_key": {
57
"type": "tendermint/PubKeyEd25519",
58
"value": "9tK9IT+FPdf2qm+5c2qaxi10sWP+3erWTKgftn2PaQM="
59
},
60
"power": "300"
61
}
62
],
63
"consensus_params_updates": {
64
"block": {
65
"max_bytes": "22020096",
66
"max_gas": "1000",
67
"time_iota_ms": "1000"
68
},
69
"evidence": {
70
"max_age": "100000"
71
},
72
"validator": {
73
"pub_key_types": [
74
"ed25519"
75
]
76
}
77
}
78
}
79
}
Copied!

Commit

Parameters

  • height (integer): Height of the block the requested commit pertains to. If no height is set the latest commit will be returned.

Request

HTTP
1
curl http://127.0.0.1:26657/commit
2
3
4
curl http://127.0.0.1:26657/commit?height=1
Copied!
JSONRPC
1
curl -X POST https://localhost:26657 -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"commit\",\"params\":{\"height\":\"1\"}}"
Copied!

Response

1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": {
5
"signed_header": {
6
"header": {
7
"version": {
8
"block": "10",
9
"app": "0"
10
},
11
"chain_id": "cosmoshub-2",
12
"height": "12",
13
"time": "2019-04-22T17:01:51.701356223Z",
14
"last_block_id": {
15
"hash": "112BC173FD838FB68EB43476816CD7B4C6661B6884A9E357B417EE957E1CF8F7",
16
"parts": {
17
"total": 1,
18
"hash": "38D4B26B5B725C4F13571EFE022C030390E4C33C8CF6F88EDD142EA769642DBD"
19
}
20
},
21
"last_commit_hash": "21B9BC845AD2CB2C4193CDD17BFC506F1EBE5A7402E84AD96E64171287A34812",
22
"data_hash": "970886F99E77ED0D60DA8FCE0447C2676E59F2F77302B0C4AA10E1D02F18EF73",
23
"validators_hash": "D658BFD100CA8025CFD3BECFE86194322731D387286FBD26E059115FD5F2BCA0",
24
"next_validators_hash": "D658BFD100CA8025CFD3BECFE86194322731D387286FBD26E059115FD5F2BCA0",
25
"consensus_hash": "0F2908883A105C793B74495EB7D6DF2EEA479ED7FC9349206A65CB0F9987A0B8",
26
"app_hash": "223BF64D4A01074DC523A80E76B9BBC786C791FB0A1893AC5B14866356FCFD6C",
27
"last_results_hash": "",
28
"evidence_hash": "",
29
"proposer_address": "D540AB022088612AC74B287D076DBFBC4A377A2E"
30
},
31
"commit": {
32
"height": "1311801",
33
"round": 0,
34
"block_id": {
35
"hash": "112BC173FD838FB68EB43476816CD7B4C6661B6884A9E357B417EE957E1CF8F7",
36
"parts": {
37
"total": 1,
38
"hash": "38D4B26B5B725C4F13571EFE022C030390E4C33C8CF6F88EDD142EA769642DBD"
39
}
40
},
41
"signatures": [
42
{
43
"block_id_flag": 2,
44
"validator_address": "000001E443FD237E4B616E2FA69DF4EE3D49A94F",
45
"timestamp": "2019-04-22T17:01:58.376629719Z",
46
"signature": "14jaTQXYRt8kbLKEhdHq7AXycrFImiLuZx50uOjs2+Zv+2i7RTG/jnObD07Jo2ubZ8xd7bNBJMqkgtkd0oQHAw=="
47
}
48
]
49
}
50
},
51
"canonical": true
52
}
53
}
Copied!

Validators

Parameters

  • height (integer): Block height at which the validators were present on. If no height is set the latest commit will be returned.
  • page (integer):
  • per_page (integer):

Request

HTTP
1
curl http://127.0.0.1:26657/validators
Copied!
JSONRPC
1
curl -X POST https://localhost:26657 -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"validators\",\"params\":{\"height\":\"1\", \"page\":\"1\", \"per_page\":\"20\"}}"
Copied!

Response

1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": {
5
"block_height": "55",
6
"validators": [
7
{
8
"address": "000001E443FD237E4B616E2FA69DF4EE3D49A94F",
9
"pub_key": {
10
"type": "tendermint/PubKeyEd25519",
11
"value": "9tK9IT+FPdf2qm+5c2qaxi10sWP+3erWTKgftn2PaQM="
12
},
13
"voting_power": "239727",
14
"proposer_priority": "-11896414"
15
}
16
],
17
"count": "1",
18
"total": "25"
19
}
20
}
Copied!

Genesis

Get Genesis of the chain. If the response is large, this operation will return an error: use genesis_chunked instead.

Request

HTTP
1
curl http://127.0.0.1:26657/genesis
Copied!
JSONRPC
1
curl -X POST https://localhost:26657 -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"genesis\"}"
Copied!

Response

1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": {
5
"genesis": {
6
"genesis_time": "2019-04-22T17:00:00Z",
7
"chain_id": "cosmoshub-2",
8
"initial_height": "2",
9
"consensus_params": {
10
"block": {
11
"max_bytes": "22020096",
12
"max_gas": "1000",
13
"time_iota_ms": "1000"
14
},
15
"evidence": {
16
"max_age": "100000"
17
},
18
"validator": {
19
"pub_key_types": [
20
"ed25519"
21
]
22
}
23
},
24
"validators": [
25
{
26
"address": "B00A6323737F321EB0B8D59C6FD497A14B60938A",
27
"pub_key": {
28
"type": "tendermint/PubKeyEd25519",
29
"value": "cOQZvh/h9ZioSeUMZB/1Vy1Xo5x2sjrVjlE/qHnYifM="
30
},
31
"power": "9328525",
32
"name": "Certus One"
33
}
34
],
35
"app_hash": "",
36
"app_state": {}
37
}
38
}
39
}
Copied!

GenesisChunked

Get the genesis document in a chunks to support easily transfering larger documents.

Parameters

  • chunk (integer): the index number of the chunk that you wish to fetch. These IDs are 0 indexed.

Request

HTTP
1
curl http://127.0.0.1:26657/genesis_chunked?chunk=0
Copied!
JSONRPC
1
curl -X POST https://localhost:26657 -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"genesis_chunked\",\"params\":{\"chunk\":0}}"
Copied!

Response

1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": {
5
"chunk": 0,
6
"total": 10,
7
"data": "dGVuZGVybWludAo="
8
}
9
}
Copied!

ConsensusParams

Get the consensus parameters.

Parameters

  • height (integer): Block height at which the consensus params would like to be fetched for.

Request

HTTP
1
curl http://127.0.0.1:26657/consensus_params
Copied!
JSONRPC
1
curl -X POST https://localhost:26657 -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"consensus_params\"}"
Copied!

Response

1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": {
5
"block_height": "1",
6
"consensus_params": {
7
"block": {
8
"max_bytes": "22020096",
9
"max_gas": "1000",
10
"time_iota_ms": "1000"
11
},
12
"evidence": {
13
"max_age": "100000"
14
},
15
"validator": {
16
"pub_key_types": [
17
"ed25519"
18
]
19
}
20
}
21
}
22
}
Copied!

UnconfirmedTxs

Get a list of unconfirmed transactions.

Parameters

  • limit (integer) The amount of txs to respond with.

Request

HTTP
1
curl http://127.0.0.1:26657/unconfirmed_txs
Copied!
JSONRPC
1
curl -X POST https://localhost:26657 -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"unconfirmed_txs\, \"params\":{\"limit\":\"20\"}}"
Copied!

Response

1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": {
5
"n_txs": "82",
6
"total": "82",
7
"total_bytes": "19974",
8
"txs": [
9
"gAPwYl3uCjCMTXENChSMnIkb5ZpYHBKIZqecFEV2tuZr7xIUA75/FmYq9WymsOBJ0XSJ8yV8zmQKMIxNcQ0KFIyciRvlmlgcEohmp5wURXa25mvvEhQbrvwbvlNiT+Yjr86G+YQNx7kRVgowjE1xDQoUjJyJG+WaWBwSiGannBRFdrbma+8SFK2m+1oxgILuQLO55n8mWfnbIzyPCjCMTXENChSMnIkb5ZpYHBKIZqecFEV2tuZr7xIUQNGfkmhTNMis4j+dyMDIWXdIPiYKMIxNcQ0KFIyciRvlmlgcEohmp5wURXa25mvvEhS8sL0D0wwgGCItQwVowak5YB38KRIUCg4KBXVhdG9tEgUxMDA1NBDoxRgaagom61rphyECn8x7emhhKdRCB2io7aS/6Cpuq5NbVqbODmqOT3jWw6kSQKUresk+d+Gw0BhjiggTsu8+1voW+VlDCQ1GRYnMaFOHXhyFv7BCLhFWxLxHSAYT8a5XqoMayosZf9mANKdXArA="
10
]
11
}
12
}
Copied!

NumUnconfirmedTxs

Get data about unconfirmed transactions.

Parameters

None

Request

HTTP
1
curl http://127.0.0.1:26657/num_unconfirmed_txs
Copied!
JSONRPC
1
curl -X POST https://localhost:26657 -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"num_unconfirmed_txs\"}"
Copied!

Response

1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": {
5
"n_txs": "31",
6
"total": "82",
7
"total_bytes": "19974"
8
}
9
}
Copied!

Tx

Parameters

  • hash (string): The hash of the transaction
  • prove (bool): If the response should include proof the transaction was included in a block.

Request

HTTP
1
curl http://127.0.0.1:26657/num_unconfirmed_txs
Copied!
JSONRPC
1
curl -X POST https://localhost:26657 -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"num_unconfirmed_txs\"}"
Copied!

Response

1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": {
5
"hash": "D70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED",
6
"height": "1000",
7
"index":