/block_results

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:

height - int, height to return. If no height is provided, it will fetch information regarding the latest block.

Example:

// Request
curl -X GET -H 'Content-Type: application/json'  https://zetachain.blockpi.network/rpc/v1/<your-api-key>/block_by_hash?hash=0x55728BEBE614C989F40720FDCD3A565115407BDCA0D0BBEEE6A51350E8BB412F

// Result
{
    "jsonrpc": "2.0",
    "id": -1,
    "result": {
        "height": "2115710",
        "txs_results": [
            {
                "code": 0,
                "data": "CjsKOS96ZXRhY2hhaW4uemV0YWNvcmUuY3Jvc3NjaGFpbi5Nc2dWb3RlT25PYnNlcnZlZEluYm91bmRUeA==",
                "log": "[{\"events\":[{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"SendVoter\"}]}]}]",
                "info": "",