Skip to content

Instantly share code, notes, and snippets.

@zivkovicmilos
Created April 10, 2023 09:08
Show Gist options
  • Save zivkovicmilos/d7b98103f0611ac3b26202a29cee02c4 to your computer and use it in GitHub Desktop.
Save zivkovicmilos/d7b98103f0611ac3b26202a29cee02c4 to your computer and use it in GitHub Desktop.
Tendermint 2 JSON-RPC Postman Collection
{
"info": {
"_postman_id": "08bf3304-544f-47a3-b365-90e63bcd1fe4",
"name": "Tendermint2 JSON-RPC",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "common",
"item": [
{
"name": "health",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"health\",\n \"params\": [],\n \"id\": 1\n}"
},
"url": {
"raw": "127.0.0.1:26657",
"host": [
"127",
"0",
"0",
"1"
],
"port": "26657"
},
"description": "Returns information about a block by block number.\n\n**Parameters**\n\n`QUANTITY|TAG` - integer of a block number, or the string `\"latest\"`\n\n`Boolean` - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.\n\n```\nparams: [\n '0x1b4', // 436\n true\n]\n```\n\n**Returns**\n\nSee `eth_getBlockByHash`"
},
"response": []
},
{
"name": "status",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"status\",\n \"params\": [],\n \"id\": 1\n}"
},
"url": {
"raw": "127.0.0.1:26657",
"host": [
"127",
"0",
"0",
"1"
],
"port": "26657"
},
"description": "Returns information about a block by block number.\n\n**Parameters**\n\n`QUANTITY|TAG` - integer of a block number, or the string `\"latest\"`\n\n`Boolean` - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.\n\n```\nparams: [\n '0x1b4', // 436\n true\n]\n```\n\n**Returns**\n\nSee `eth_getBlockByHash`"
},
"response": []
}
]
},
{
"name": "consensus",
"item": [
{
"name": "net_info",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"net_info\",\n \"params\": [],\n \"id\": 1\n}"
},
"url": {
"raw": "127.0.0.1:26657",
"host": [
"127",
"0",
"0",
"1"
],
"port": "26657"
},
"description": "Returns information about a block by block number.\n\n**Parameters**\n\n`QUANTITY|TAG` - integer of a block number, or the string `\"latest\"`\n\n`Boolean` - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.\n\n```\nparams: [\n '0x1b4', // 436\n true\n]\n```\n\n**Returns**\n\nSee `eth_getBlockByHash`"
},
"response": []
},
{
"name": "genesis",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"genesis\",\n \"params\": [],\n \"id\": 1\n}"
},
"url": {
"raw": "127.0.0.1:26657",
"host": [
"127",
"0",
"0",
"1"
],
"port": "26657"
},
"description": "Returns information about a block by block number.\n\n**Parameters**\n\n`QUANTITY|TAG` - integer of a block number, or the string `\"latest\"`\n\n`Boolean` - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.\n\n```\nparams: [\n '0x1b4', // 436\n true\n]\n```\n\n**Returns**\n\nSee `eth_getBlockByHash`"
},
"response": []
},
{
"name": "consensus_params",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"consensus_params\",\n \"params\": [\n \"1\"\n ],\n \"id\": 1\n}"
},
"url": {
"raw": "127.0.0.1:26657",
"host": [
"127",
"0",
"0",
"1"
],
"port": "26657"
},
"description": "Returns information about a block by block number.\n\n**Parameters**\n\n`QUANTITY|TAG` - integer of a block number, or the string `\"latest\"`\n\n`Boolean` - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.\n\n```\nparams: [\n '0x1b4', // 436\n true\n]\n```\n\n**Returns**\n\nSee `eth_getBlockByHash`"
},
"response": []
},
{
"name": "consensus_state",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"consensus_state\",\n \"params\": [],\n \"id\": 1\n}"
},
"url": {
"raw": "127.0.0.1:26657",
"host": [
"127",
"0",
"0",
"1"
],
"port": "26657"
},
"description": "Returns information about a block by block number.\n\n**Parameters**\n\n`QUANTITY|TAG` - integer of a block number, or the string `\"latest\"`\n\n`Boolean` - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.\n\n```\nparams: [\n '0x1b4', // 436\n true\n]\n```\n\n**Returns**\n\nSee `eth_getBlockByHash`"
},
"response": []
},
{
"name": "dump_consensus_state",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"dump_consensus_state\",\n \"params\": [],\n \"id\": 1\n}"
},
"url": {
"raw": "127.0.0.1:26657",
"host": [
"127",
"0",
"0",
"1"
],
"port": "26657"
},
"description": "Returns information about a block by block number.\n\n**Parameters**\n\n`QUANTITY|TAG` - integer of a block number, or the string `\"latest\"`\n\n`Boolean` - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.\n\n```\nparams: [\n '0x1b4', // 436\n true\n]\n```\n\n**Returns**\n\nSee `eth_getBlockByHash`"
},
"response": []
},
{
"name": "commit",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"commit\",\n \"params\": [\n \"1\"\n ],\n \"id\": 1\n}"
},
"url": {
"raw": "127.0.0.1:26657",
"host": [
"127",
"0",
"0",
"1"
],
"port": "26657"
},
"description": "Returns information about a block by block number.\n\n**Parameters**\n\n`QUANTITY|TAG` - integer of a block number, or the string `\"latest\"`\n\n`Boolean` - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.\n\n```\nparams: [\n '0x1b4', // 436\n true\n]\n```\n\n**Returns**\n\nSee `eth_getBlockByHash`"
},
"response": []
},
{
"name": "validators",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"validators\",\n \"params\": [\n \"1\"\n ],\n \"id\": 1\n}"
},
"url": {
"raw": "127.0.0.1:26657",
"host": [
"127",
"0",
"0",
"1"
],
"port": "26657"
},
"description": "Returns information about a block by block number.\n\n**Parameters**\n\n`QUANTITY|TAG` - integer of a block number, or the string `\"latest\"`\n\n`Boolean` - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.\n\n```\nparams: [\n '0x1b4', // 436\n true\n]\n```\n\n**Returns**\n\nSee `eth_getBlockByHash`"
},
"response": []
}
]
},
{
"name": "block",
"item": [
{
"name": "block",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"block\",\n \"params\": [\n \"1\"\n ],\n \"id\": 1\n}"
},
"url": {
"raw": "127.0.0.1:26657",
"host": [
"127",
"0",
"0",
"1"
],
"port": "26657"
},
"description": "Returns information about a block by block number.\n\n**Parameters**\n\n`QUANTITY|TAG` - integer of a block number, or the string `\"latest\"`\n\n`Boolean` - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.\n\n```\nparams: [\n '0x1b4', // 436\n true\n]\n```\n\n**Returns**\n\nSee `eth_getBlockByHash`"
},
"response": []
},
{
"name": "block_results",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"block\",\n \"params\": [\n \"1\"\n ],\n \"id\": 1\n}"
},
"url": {
"raw": "127.0.0.1:26657",
"host": [
"127",
"0",
"0",
"1"
],
"port": "26657"
},
"description": "Returns information about a block by block number.\n\n**Parameters**\n\n`QUANTITY|TAG` - integer of a block number, or the string `\"latest\"`\n\n`Boolean` - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.\n\n```\nparams: [\n '0x1b4', // 436\n true\n]\n```\n\n**Returns**\n\nSee `eth_getBlockByHash`"
},
"response": []
},
{
"name": "blockchain",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"blockchain\",\n \"params\": [\n \"1\",\n \"2\"\n ],\n \"id\": 1\n}"
},
"url": {
"raw": "127.0.0.1:26657",
"host": [
"127",
"0",
"0",
"1"
],
"port": "26657"
},
"description": "Returns information about a block by block number.\n\n**Parameters**\n\n`QUANTITY|TAG` - integer of a block number, or the string `\"latest\"`\n\n`Boolean` - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.\n\n```\nparams: [\n '0x1b4', // 436\n true\n]\n```\n\n**Returns**\n\nSee `eth_getBlockByHash`"
},
"response": []
}
]
},
{
"name": "transactions",
"item": [
{
"name": "num_unconfirmed_txs",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"num_unconfirmed_txs\",\n \"params\": [],\n \"id\": 1\n}"
},
"url": {
"raw": "127.0.0.1:26657",
"host": [
"127",
"0",
"0",
"1"
],
"port": "26657"
},
"description": "Returns information about a block by block number.\n\n**Parameters**\n\n`QUANTITY|TAG` - integer of a block number, or the string `\"latest\"`\n\n`Boolean` - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.\n\n```\nparams: [\n '0x1b4', // 436\n true\n]\n```\n\n**Returns**\n\nSee `eth_getBlockByHash`"
},
"response": []
},
{
"name": "unconfirmed_txs",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"unconfirmed_txs\",\n \"params\": [\n \"10\"\n ],\n \"id\": 1\n}"
},
"url": {
"raw": "127.0.0.1:26657",
"host": [
"127",
"0",
"0",
"1"
],
"port": "26657"
},
"description": "Returns information about a block by block number.\n\n**Parameters**\n\n`QUANTITY|TAG` - integer of a block number, or the string `\"latest\"`\n\n`Boolean` - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.\n\n```\nparams: [\n '0x1b4', // 436\n true\n]\n```\n\n**Returns**\n\nSee `eth_getBlockByHash`"
},
"response": []
},
{
"name": "broadcast_tx_async",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"broadcast_tx_async\",\n \"params\": [\n \"QmFzZSA2NCBTaWduZWQgVHJhbnNhY3Rpb24gRXhhbXBsZUJhc2UgNjQgU2lnbmVkIFRyYW5zYWN0aW9uIEV4YW1wbGVCYXNlIDY0IFNpZ25lZCBUcmFuc2FjdGlvbiBFeGFtcGxlQmFzZSA2NCBTaWduZWQgVHJhbnNhY3Rpb24gRXhhbXBsZUJhc2UgNjQgU2lnbmVkIFRyYW5zYWN0aW9uIEV4YW1wbGVCYXNlIDY0IFNpZ25lZCBUcmFuc2FjdGlvbiBFeGFtcGxlQmFzZSA2NCBTaWduZWQgVHJhbnNhY3Rpb24gRXhhbXBsZQ====\"\n ],\n \"id\": 1\n}"
},
"url": {
"raw": "127.0.0.1:26657",
"host": [
"127",
"0",
"0",
"1"
],
"port": "26657"
},
"description": "Returns information about a block by block number.\n\n**Parameters**\n\n`QUANTITY|TAG` - integer of a block number, or the string `\"latest\"`\n\n`Boolean` - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.\n\n```\nparams: [\n '0x1b4', // 436\n true\n]\n```\n\n**Returns**\n\nSee `eth_getBlockByHash`"
},
"response": []
},
{
"name": "broadcast_tx_sync",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"broadcast_tx_sync\",\n \"params\": [\n \"QmFzZSA2NCBTaWduZWQgVHJhbnNhY3Rpb24gRXhhbXBsZUJhc2UgNjQgU2lnbmVkIFRyYW5zYWN0aW9uIEV4YW1wbGVCYXNlIDY0IFNpZ25lZCBUcmFuc2FjdGlvbiBFeGFtcGxlQmFzZSA2NCBTaWduZWQgVHJhbnNhY3Rpb24gRXhhbXBsZUJhc2UgNjQgU2lnbmVkIFRyYW5zYWN0aW9uIEV4YW1wbGVCYXNlIDY0IFNpZ25lZCBUcmFuc2FjdGlvbiBFeGFtcGxlQmFzZSA2NCBTaWduZWQgVHJhbnNhY3Rpb24gRXhhbXBsZQ====\"\n ],\n \"id\": 1\n}"
},
"url": {
"raw": "127.0.0.1:26657",
"host": [
"127",
"0",
"0",
"1"
],
"port": "26657"
},
"description": "Returns information about a block by block number.\n\n**Parameters**\n\n`QUANTITY|TAG` - integer of a block number, or the string `\"latest\"`\n\n`Boolean` - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.\n\n```\nparams: [\n '0x1b4', // 436\n true\n]\n```\n\n**Returns**\n\nSee `eth_getBlockByHash`"
},
"response": []
},
{
"name": "broadcast_tx_commit",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"broadcast_tx_commit\",\n \"params\": [\n \"QmFzZSA2NCBTaWduZWQgVHJhbnNhY3Rpb24gRXhhbXBsZUJhc2UgNjQgU2lnbmVkIFRyYW5zYWN0aW9uIEV4YW1wbGVCYXNlIDY0IFNpZ25lZCBUcmFuc2FjdGlvbiBFeGFtcGxlQmFzZSA2NCBTaWduZWQgVHJhbnNhY3Rpb24gRXhhbXBsZUJhc2UgNjQgU2lnbmVkIFRyYW5zYWN0aW9uIEV4YW1wbGVCYXNlIDY0IFNpZ25lZCBUcmFuc2FjdGlvbiBFeGFtcGxlQmFzZSA2NCBTaWduZWQgVHJhbnNhY3Rpb24gRXhhbXBsZQ====\"\n ],\n \"id\": 1\n}"
},
"url": {
"raw": "127.0.0.1:26657",
"host": [
"127",
"0",
"0",
"1"
],
"port": "26657"
},
"description": "Returns information about a block by block number.\n\n**Parameters**\n\n`QUANTITY|TAG` - integer of a block number, or the string `\"latest\"`\n\n`Boolean` - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.\n\n```\nparams: [\n '0x1b4', // 436\n true\n]\n```\n\n**Returns**\n\nSee `eth_getBlockByHash`"
},
"response": []
}
]
},
{
"name": "abci",
"item": [
{
"name": "abci_info",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"abci_info\",\n \"params\": [],\n \"id\": 1\n}"
},
"url": {
"raw": "127.0.0.1:26657",
"host": [
"127",
"0",
"0",
"1"
],
"port": "26657"
},
"description": "Returns information about a block by block number.\n\n**Parameters**\n\n`QUANTITY|TAG` - integer of a block number, or the string `\"latest\"`\n\n`Boolean` - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.\n\n```\nparams: [\n '0x1b4', // 436\n true\n]\n```\n\n**Returns**\n\nSee `eth_getBlockByHash`"
},
"response": []
},
{
"name": "abci_query",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"abci_query\",\n \"params\": [\n \"auth/accounts/g1u7y667z64x2h7vc6fmpcprgey4ck233jaww9zq\",\n \"\",\n \"0\",\n false\n ],\n \"id\": 1\n}"
},
"url": {
"raw": "127.0.0.1:26657",
"host": [
"127",
"0",
"0",
"1"
],
"port": "26657"
},
"description": "Returns information about a block by block number.\n\n**Parameters**\n\n`QUANTITY|TAG` - integer of a block number, or the string `\"latest\"`\n\n`Boolean` - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.\n\n```\nparams: [\n '0x1b4', // 436\n true\n]\n```\n\n**Returns**\n\nSee `eth_getBlockByHash`"
},
"response": []
}
]
}
]
}
@zivkovicmilos
Copy link
Author

To use this Postman RPC collection, simply download and import it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment