block_search

Search for blocks by BeginBlock and EndBlock events

Search for blocks by BeginBlock and EndBlock events.

See /subscribe for the query syntax.

Parameters

  • No parameters are needed.
curl https://cosmos-mainnet-archive.allthatnode.com:26657/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--header "Content-Type: application/json" \
--data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "block_search",
  "params": {
    "query": "block.height=16369419",
    "prove": true,
    "page": "1",
    "per_page": "10",
    "order_by": "asc",
    "match_events": true
  }
}'

Returns

  • OBJECT - List of paginated blocks matching the search criteria.
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "blocks": [
            {
                "block_id": {
                    "hash": "622D72B19564ADEC2E8995B57D6B6C7F00B416C9E42B90602F45F5322313DEFD",
                    "parts": {
                        "total": 1,
                        "hash": "9FBDA5B1DB405C16A5C375B767FAF1EDEB4D74177F0E6DDB1731D308D8827E6E"
                    }
                },
                "block": {
                    "header": {
                        "version": {
                            "block": "11"
                        },
                        "chain_id": "cosmoshub-4",
                        "height": "16369419",
                        "time": "2023-07-31T11:23:26.077012068Z",
                        "last_block_id": {
                            "hash": "2A106753C672C0C5975B4F4998639EA796044C73ABDD03B8849855DB06E29504",
                            "parts": {
                                "total": 1,
                                "hash": "A020B5B6262D5904C4975C64EA1CF55A8CF101CD182B79C3D4053100F3480174"
                            }
                        },
                        "last_commit_hash": "D74EE9108BAAA3BBB0C9BFD71EADD42862BEF1263ADA8841EB2308B3DABA3060",
                        "data_hash": "FDBDFCCB4DD09BC09EC84380B84B89E29FF2C69E81AC944F1F83338917C05A31",
                        "validators_hash": "58C4503AF8F2C3515A3D6DDAEAD2CD4F03D996932CA33B32930B9B65F2CBB371",
                        "next_validators_hash": "1E0383A9F684B025A7196E8D14A4FB1534B740FA1B722F5CC5D9E4410BF325F8",
                        "consensus_hash": "80364965B7C2CC9DE961C0998B47A7F93F1970077EB882E0ED1C3822408888C7",
                        "app_hash": "F62D26DCD2C2D57B10880CE33D63C52532EB461630A0A0025EB07B8E85982B04",
                        "last_results_hash": "397DFC6F5B00B4EE4C07B6C0EC524E10506FDD0AA8DE734C0FDEC3412D92826A",
                        "evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
                        "proposer_address": "2199EAE894CA391FA82F01C2C614BFEB103D056C"
                    },
                    "data": {
                        "txs": [
                            "Cq4BCp4BCiMvY29zbW9zLnN0YWtpbmcudjFiZXRhMS5Nc2dEZWxlZ2F0ZRJ3Ci1jb3Ntb3MxODA0ZnBoODg0a2d4Z2Q1cmo3YXpubW1rcm1ucng5YTBtd3dwcWwSNGNvc21vc3ZhbG9wZXIxd3J4MHg5bTl5a2RodzlzZzA0djd1bGptZTUzd3VqMDNhYTVkNGYaEAoFdWF0b20SBzE4NTAwMDASC0xlZGdlciBMaXZlEmcKUApGCh8vY29zbW9zLmNyeXB0by5zZWNwMjU2azEuUHViS2V5EiMKIQKI0OYmJGDOmGLfZ0U+YrseJGxgpxmd/VuwVUJ2I9PdNxIECgIIfxgFEhMKDQoFdWF0b20SBDY4MTkQ0tIQGkA7EjKXw7Z8p298tTj+tFK6P0aqErj29AU+8RaqHpgVy20LMnJh0z8/j8jiDRNVZ+qjpr3Y9N6zgRjRZxsLOuMb"
                        ]
                    },
                    "evidence": {
                        "evidence": []
                    },
                    "last_commit": {
                        "height": "16369418",
                        "round": 0,
                        "block_id": {
                            "hash": "2A106753C672C0C5975B4F4998639EA796044C73ABDD03B8849855DB06E29504",
                            "parts": {
                                "total": 1,
                                "hash": "A020B5B6262D5904C4975C64EA1CF55A8CF101CD182B79C3D4053100F3480174"
                            }
                        },
                        "signatures": [
                            {
                                "block_id_flag": 2,
                                "validator_address": "D68EEC0D2E8248F1EC64CDB585EDB61ECA432BD8",
                                "timestamp": "2023-07-31T11:23:26.018560024Z",
                                "signature": "bvlyZRTfsbnP+6UgRk4eZ+b8E5LLiNgbhw7apuKo7EKL8vzm6ZpfX5btH+skwsqF1JBlCuxRxiGPZJc9FYA2Dw=="
                            },
                            {
                                "block_id_flag": 2,
                                "validator_address": "D2D458F9209ECB8CA2AAB1D99E06611B812A8797",
                                "timestamp": "2023-07-31T11:23:26.10605407Z",
                                "signature": "whLaia/Zbmaw6eaqmWCYpo2oIrqwvd3Fi4cK0YAGfBGXJ/5SMESAafSCHmv8TTXx71b6UaNbjTarNTDfdYT+BQ=="
                            },
                            {
                                "block_id_flag": 2,
                                "validator_address": "75CF712C0B8BBBE179FB3C1E647797110C56DC88",
                                "timestamp": "2023-07-31T11:23:26.130792719Z",
                                "signature": "kPSujgxxRMu+GKYjhZHae31eHhDT2BeNjlqRLIz0+eu93rGkJzsog2StrmCFrYOnRqBApdKZiGrnIMgS7yJzAw=="
                            },
                            {
                                "block_id_flag": 2,
                                "validator_address": "9EE94DBB86F72337192BF291B0E767FD2729F00A",
                                "timestamp": "2023-07-31T11:23:26.074956001Z",
                                "signature": "UEt9ur68rEZMK1EYM1B7p1PDlhsgnENorWzhf5RouMBLh1jBHqQD6WQivEFDafBiZUbHwtdjPap71NfrjYPpDQ=="
                            },
                            {
                                "block_id_flag": 2,
                                "validator_address": "39EAD95102132963B257E366FC98521E74DFC690",
                                "timestamp": "2023-07-31T11:23:26.138327269Z",
                                "signature": "sn8dZF4kvQVcIDhFpfLXU8ztxSDEnODS0nSgRws0d8WpQJC5EQqObDyu9kaWDYitot9pGOo/adRqL5ReH4dOAg=="
                            },
                            {
                                "block_id_flag": 2,
                                "validator_address": "4AF69D6A5436C30E3584C1628433DE55E758BCCA",
                                "timestamp": "2023-07-31T11:23:26.115478637Z",
                                "signature": "ri0uj4cD5kZudkPsdJeQ+ADe4ZzeBeb4iJabKsoZEmi2uLXpnaAVTaW++Q3gH7MtfW38bGw6uc/8rME7ckP3Dg=="
                            }
                        ]
                    }
                }
            }
        ],
        "total_count": "1"
    }
}%                                                                      

Try Yourself

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