block_results

Get block results at a specified height.

Get block_results. When the discard_abci_responses storage flag is enabled, this endpoint will return an error.

If the height field is set to a non-default value, upon success, the Cache-Control header will be set with the default maximum age.

Parameters

  • OBJECT - parameters
    • height: INTEGER - Block number
curl https://cosmos-mainnet-archive.allthatnode.com:26657/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--header "Content-Type: application/json" \
--data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "block_results",
  "params": {
    "height": "16369419"
  }
}'

Returns

  • OBJECT - Block results.
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "height": "16369419",
        "txs_results": [
            {
                "code": 0,
                "data": "CiUKIy9jb3Ntb3Muc3Rha2luZy52MWJldGExLk1zZ0RlbGVnYXRl",
                "log": "[{\"events\":[{\"type\":\"coin_received\",\"attributes\":[{\"key\":\"receiver\",\"value\":\"cosmos1804fph884kgxgd5rj7aznmmkrmnrx9a0mwwpql\"},{\"key\":\"amount\",\"value\":\"3uatom\"},{\"key\":\"receiver\",\"value\":\"cosmos1fl48vsnmsdzcv85q5d2q4z5ajdha8yu34mf0eh\"},{\"key\":\"amount\",\"value\":\"1850000uatom\"}]},{\"type\":\"coin_spent\",\"attributes\":[{\"key\":\"spender\",\"value\":\"cosmos1jv65s3grqf6v6jl3dp4t6c9t9rk99cd88lyufl\"},{\"key\":\"amount\",\"value\":\"3uatom\"},{\"key\":\"spender\",\"value\":\"cosmos1804fph884kgxgd5rj7aznmmkrmnrx9a0mwwpql\"},{\"key\":\"amount\",\"value\":\"1850000uatom\"}]},{\"type\":\"delegate\",\"attributes\":[{\"key\":\"validator\",\"value\":\"cosmosvaloper1wrx0x9m9ykdhw9sg04v7uljme53wuj03aa5d4f\"},{\"key\":\"amount\",\"value\":\"1850000uatom\"},{\"key\":\"new_shares\",\"value\":\"1851110.318304667683218979\"}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/cosmos.staking.v1beta1.MsgDelegate\"},{\"key\":\"sender\",\"value\":\"cosmos1jv65s3grqf6v6jl3dp4t6c9t9rk99cd88lyufl\"},{\"key\":\"module\",\"value\":\"staking\"},{\"key\":\"sender\",\"value\":\"cosmos1804fph884kgxgd5rj7aznmmkrmnrx9a0mwwpql\"}]},{\"type\":\"transfer\",\"attributes\":[{\"key\":\"recipient\",\"value\":\"cosmos1804fph884kgxgd5rj7aznmmkrmnrx9a0mwwpql\"},{\"key\":\"sender\",\"value\":\"cosmos1jv65s3grqf6v6jl3dp4t6c9t9rk99cd88lyufl\"},{\"key\":\"amount\",\"value\":\"3uatom\"}]},{\"type\":\"withdraw_rewards\",\"attributes\":[{\"key\":\"amount\",\"value\":\"3uatom\"},{\"key\":\"validator\",\"value\":\"cosmosvaloper1wrx0x9m9ykdhw9sg04v7uljme53wuj03aa5d4f\"}]}]}]",
                "info": "",
                "gas_wanted": "272722",
                "gas_used": "227506",
                "events": [
                    {
                        "type": "coin_spent",
                        "attributes": [
                            {
                                "key": "c3BlbmRlcg==",
                                "value": "Y29zbW9zMTgwNGZwaDg4NGtneGdkNXJqN2F6bm1ta3JtbnJ4OWEwbXd3cHFs",
                                "index": true
                            },
                            {
                                "key": "YW1vdW50",
                                "value": "NjgxOXVhdG9t",
                                "index": true
                            }
                        ]
                    },
                    {
                        "type": "coin_received",
                        "attributes": [
                            {
                                "key": "cmVjZWl2ZXI=",
                                "value": "Y29zbW9zMTd4cGZ2YWttMmFtZzk2MnlsczZmODR6M2tlbGw4YzVsc2VycXRh",
                                "index": true
                            },
                            {
                                "key": "YW1vdW50",
                                "value": "NjgxOXVhdG9t",
                                "index": true
                            }
                        ]
                    },
                    {
                        "type": "transfer",
                        "attributes": [
                            {
                                "key": "cmVjaXBpZW50",
                                "value": "Y29zbW9zMTd4cGZ2YWttMmFtZzk2MnlsczZmODR6M2tlbGw4YzVsc2VycXRh",
                                "index": true
                            },
                            {
                                "key": "c2VuZGVy",
                                "value": "Y29zbW9zMTgwNGZwaDg4NGtneGdkNXJqN2F6bm1ta3JtbnJ4OWEwbXd3cHFs",
                                "index": true
                            },
                            {
                                "key": "YW1vdW50",
                                "value": "NjgxOXVhdG9t",
                                "index": true
                            }
                        ]
                    },
                    {
                        "type": "message",
                        "attributes": [
                            {
                                "key": "bW9kdWxl",
                                "value": "c3Rha2luZw==",
                                "index": true
                            },
                            {
                                "key": "c2VuZGVy",
                                "value": "Y29zbW9zMTgwNGZwaDg4NGtneGdkNXJqN2F6bm1ta3JtbnJ4OWEwbXd3cHFs",
                                "index": true
                            }
                        ]
                    }
                ],
                "codespace": ""
            }
        ],
        "begin_block_events": [
            {
                "type": "coin_received",
                "attributes": [
                    {
                        "key": "cmVjZWl2ZXI=",
                        "value": "Y29zbW9zMW0zaDMwd2x2c2Y4bGxydXh0cHVrZHZzeTBrbTJrdW04ZzM4Yzhx",
                        "index": true
                    },
                    {
                        "key": "YW1vdW50",
                        "value": "MTIwNTQ3Njl1YXRvbQ==",
                        "index": true
                    }
                ]
            },
            {
                "type": "coinbase",
                "attributes": [
                    {
                        "key": "bWludGVy",
                        "value": "Y29zbW9zMW0zaDMwd2x2c2Y4bGxydXh0cHVrZHZzeTBrbTJrdW04ZzM4Yzhx",
                        "index": true
                    },
                    {
                        "key": "YW1vdW50",
                        "value": "MTIwNTQ3Njl1YXRvbQ==",
                        "index": true
                    }
                ]
            },

            {
                "type": "rewards",
                "attributes": [
                    {
                        "key": "YW1vdW50",
                        "value": "NTAyMDYuNTYxNzY3MDcwMjcwMjc1OTEydWF0b20=",
                        "index": true
                    },
                    {
                        "key": "dmFsaWRhdG9y",
                        "value": "Y29zbW9zdmFsb3BlcjFrMmQ5ZWQ5dmdmdWsybTU4YTJkODBxOXU2cWxqa2g0dmZhcWpmcQ==",
                        "index": true
                    }
                ]
            },
            {
                "type": "commission",
                "attributes": [
                    {
                        "key": "YW1vdW50",
                        "value": "NDQ3Ljc4Njg2Mjk3NzcwMTY0MTg2N3VhdG9t",
                        "index": true
                    },
                    {
                        "key": "dmFsaWRhdG9y",
                        "value": "Y29zbW9zdmFsb3BlcjFncHg1MnI5aDN6ZXVsNDVhbXZjeTJweXNndmN3ZGR4cmd4NmNudg==",
                        "index": true
                    }
                ]
            },
            {
                "type": "rewards",
                "attributes": [
                    {
                        "key": "YW1vdW50",
                        "value": "NDQ3NzguNjg2Mjk3NzcwMTY0MTg2NjY0dWF0b20=",
                        "index": true
                    },
                    {
                        "key": "dmFsaWRhdG9y",
                        "value": "Y29zbW9zdmFsb3BlcjFncHg1MnI5aDN6ZXVsNDVhbXZjeTJweXNndmN3ZGR4cmd4NmNudg==",
                        "index": true
                    }
                ]
            }
        ],
        "end_block_events": [
            {
                "type": "message",
                "attributes": [
                    {
                        "key": "bW9kdWxl",
                        "value": "aWJjX2NoYW5uZWw=",
                        "index": true
                    }
                ]
            },
            {
                "type": "send_packet",
                "attributes": [
                    {
                        "key": "cGFja2V0X2RhdGE=",
                        "value": "eyJ2YWxpZGF0b3JfdXBkYXRlcyI6W3sicHViX2tleSI6eyJlZDI1NTE5IjoiRkxWeFdraEVpUzUyb2V6SzB4TUZRQ0pPUTlyT2p4TnAzdTk5NFhXWStHaz0ifSwicG93ZXIiOiIzNTEyNDgifV0sInZhbHNldF91cGRhdGVfaWQiOiIxODk4OTE5Iiwic2xhc2hfYWNrcyI6W119",
                        "index": true
                    },
                    {
                        "key": "cGFja2V0X2RhdGFfaGV4",
                        "value": "N2IyMjc2NjE2YzY5NjQ2MTc0NmY3MjVmNzU3MDY0NjE3NDY1NzMyMjNhNWI3YjIyNzA3NTYyNWY2YjY1NzkyMjNhN2IyMjY1NjQzMjM1MzUzMTM5MjIzYTIyNDY0YzU2Nzg1NzZiNjg0NTY5NTMzNTMyNmY2NTdhNGIzMDc4NGQ0NjUxNDM0YTRmNTEzOTcyNGY2YTc4NGU3MDMzNzUzOTM5MzQ1ODU3NTkyYjQ3NmIzZDIyN2QyYzIyNzA2Zjc3NjU3MjIyM2EyMjMzMzUzMTMyMzQzODIyN2Q1ZDJjMjI3NjYxNmM3MzY1NzQ1Zjc1NzA2NDYxNzQ2NTVmNjk2NDIyM2EyMjMxMzgzOTM4MzkzMTM5MjIyYzIyNzM2YzYxNzM2ODVmNjE2MzZiNzMyMjNhNWI1ZDdk",
                        "index": true
                    },
                    {
                        "key": "cGFja2V0X2Nvbm5lY3Rpb24=",
                        "value": "Y29ubmVjdGlvbi04NzY=",
                        "index": true
                    }
                ]
            },
            {
                "type": "message",
                "attributes": [
                    {
                        "key": "bW9kdWxl",
                        "value": "aWJjX2NoYW5uZWw=",
                        "index": true
                    }
                ]
            }
        ],
        "validator_updates": [
            {
                "pub_key": {
                    "Sum": {
                        "type": "tendermint.crypto.PublicKey_Ed25519",
                        "value": {
                            "ed25519": "HiJx5FTqpD8Uy4s22yFnm16RNGu5jCzjLA5OED8NQPg="
                        }
                    }
                },
                "power": "351248"
            }
        ],
        "consensus_param_updates": {
            "block": {
                "max_bytes": "200000",
                "max_gas": "40000000"
            },
            "evidence": {
                "max_age_num_blocks": "1000000",
                "max_age_duration": "172800000000000",
                "max_bytes": "50000"
            },
            "validator": {
                "pub_key_types": [
                    "ed25519"
                ]
            }
        }
    }
}

Try Yourself

Language
Click Try It! to start a request and see the response here!