Block

GetBlockWithTxs fetches a block with decoded txs.

get

Since: cosmos-sdk 0.45.2

Path parameters
heightanyRequired

height is the height of the block to query.

Query parameters
pagination.keyanyOptional

key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.

pagination.offsetanyOptional

offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.

pagination.limitanyOptional

limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.

pagination.count_totalanyOptional

count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.

pagination.reverseanyOptional

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses
application/json
objectOptional

GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method.

Since: cosmos-sdk 0.45.2

get
GET /cosmos/tx/v1beta1/txs/block/{height} HTTP/1.1
Host: band-rest.nownodes.io
Accept: */*
{
  "txs": [
    {
      "body": {
        "messages": [
          {
            "type_url": "text",
            "value": "Ynl0ZXM="
          }
        ],
        "memo": "text",
        "timeout_height": "text",
        "unordered": true,
        "extension_options": [
          {
            "type_url": "text",
            "value": "Ynl0ZXM="
          }
        ],
        "non_critical_extension_options": [
          {
            "type_url": "text",
            "value": "Ynl0ZXM="
          }
        ]
      },
      "auth_info": {
        "signer_infos": [
          {
            "public_key": {
              "type_url": "text",
              "value": "Ynl0ZXM="
            },
            "mode_info": "[Circular Reference]",
            "sequence": "text"
          }
        ],
        "fee": {
          "amount": [
            {
              "denom": "text",
              "amount": "text"
            }
          ],
          "gas_limit": "text",
          "payer": "text",
          "granter": "text"
        },
        "tip": {
          "amount": [
            {
              "denom": "text",
              "amount": "text"
            }
          ],
          "tipper": "text"
        }
      },
      "signatures": [
        "Ynl0ZXM="
      ]
    }
  ],
  "block_id": {
    "hash": "Ynl0ZXM=",
    "part_set_header": {
      "total": 1,
      "hash": "Ynl0ZXM="
    }
  },
  "block": {
    "header": {
      "version": {
        "block": "text",
        "app": "text"
      },
      "chain_id": "text",
      "height": "text",
      "time": "2025-04-23T18:01:48.805Z",
      "last_block_id": {
        "hash": "Ynl0ZXM=",
        "part_set_header": {
          "total": 1,
          "hash": "Ynl0ZXM="
        }
      },
      "last_commit_hash": "Ynl0ZXM=",
      "data_hash": "Ynl0ZXM=",
      "validators_hash": "Ynl0ZXM=",
      "next_validators_hash": "Ynl0ZXM=",
      "consensus_hash": "Ynl0ZXM=",
      "app_hash": "Ynl0ZXM=",
      "last_results_hash": "Ynl0ZXM=",
      "evidence_hash": "Ynl0ZXM=",
      "proposer_address": "Ynl0ZXM="
    },
    "data": {
      "txs": [
        "Ynl0ZXM="
      ]
    },
    "evidence": {
      "evidence": [
        {
          "duplicate_vote_evidence": {
            "vote_a": {
              "type": "SIGNED_MSG_TYPE_UNKNOWN",
              "height": "text",
              "round": 1,
              "block_id": {
                "hash": "Ynl0ZXM=",
                "part_set_header": {
                  "total": 1,
                  "hash": "Ynl0ZXM="
                }
              },
              "timestamp": "2025-04-23T18:01:48.805Z",
              "validator_address": "Ynl0ZXM=",
              "validator_index": 1,
              "signature": "Ynl0ZXM=",
              "extension": "Ynl0ZXM=",
              "extension_signature": "Ynl0ZXM="
            },
            "vote_b": {
              "type": "SIGNED_MSG_TYPE_UNKNOWN",
              "height": "text",
              "round": 1,
              "block_id": {
                "hash": "Ynl0ZXM=",
                "part_set_header": {
                  "total": 1,
                  "hash": "Ynl0ZXM="
                }
              },
              "timestamp": "2025-04-23T18:01:48.805Z",
              "validator_address": "Ynl0ZXM=",
              "validator_index": 1,
              "signature": "Ynl0ZXM=",
              "extension": "Ynl0ZXM=",
              "extension_signature": "Ynl0ZXM="
            },
            "total_voting_power": "text",
            "validator_power": "text",
            "timestamp": "2025-04-23T18:01:48.805Z"
          },
          "light_client_attack_evidence": {
            "conflicting_block": {
              "signed_header": {
                "header": {
                  "version": {
                    "block": "text",
                    "app": "text"
                  },
                  "chain_id": "text",
                  "height": "text",
                  "time": "2025-04-23T18:01:48.805Z",
                  "last_block_id": {
                    "hash": "Ynl0ZXM=",
                    "part_set_header": {
                      "total": 1,
                      "hash": "Ynl0ZXM="
                    }
                  },
                  "last_commit_hash": "Ynl0ZXM=",
                  "data_hash": "Ynl0ZXM=",
                  "validators_hash": "Ynl0ZXM=",
                  "next_validators_hash": "Ynl0ZXM=",
                  "consensus_hash": "Ynl0ZXM=",
                  "app_hash": "Ynl0ZXM=",
                  "last_results_hash": "Ynl0ZXM=",
                  "evidence_hash": "Ynl0ZXM=",
                  "proposer_address": "Ynl0ZXM="
                },
                "commit": {
                  "height": "text",
                  "round": 1,
                  "block_id": {
                    "hash": "Ynl0ZXM=",
                    "part_set_header": {
                      "total": 1,
                      "hash": "Ynl0ZXM="
                    }
                  },
                  "signatures": [
                    {
                      "block_id_flag": "BLOCK_ID_FLAG_UNKNOWN",
                      "validator_address": "Ynl0ZXM=",
                      "timestamp": "2025-04-23T18:01:48.805Z",
                      "signature": "Ynl0ZXM="
                    }
                  ]
                }
              },
              "validator_set": {
                "validators": [
                  {
                    "address": "Ynl0ZXM=",
                    "pub_key": {
                      "ed25519": "Ynl0ZXM=",
                      "secp256k1": "Ynl0ZXM="
                    },
                    "voting_power": "text",
                    "proposer_priority": "text"
                  }
                ],
                "proposer": {
                  "address": "Ynl0ZXM=",
                  "pub_key": {
                    "ed25519": "Ynl0ZXM=",
                    "secp256k1": "Ynl0ZXM="
                  },
                  "voting_power": "text",
                  "proposer_priority": "text"
                },
                "total_voting_power": "text"
              }
            },
            "common_height": "text",
            "byzantine_validators": [
              {
                "address": "Ynl0ZXM=",
                "pub_key": {
                  "ed25519": "Ynl0ZXM=",
                  "secp256k1": "Ynl0ZXM="
                },
                "voting_power": "text",
                "proposer_priority": "text"
              }
            ],
            "total_voting_power": "text",
            "timestamp": "2025-04-23T18:01:48.805Z"
          }
        }
      ]
    },
    "last_commit": {
      "height": "text",
      "round": 1,
      "block_id": {
        "hash": "Ynl0ZXM=",
        "part_set_header": {
          "total": 1,
          "hash": "Ynl0ZXM="
        }
      },
      "signatures": [
        {
          "block_id_flag": "BLOCK_ID_FLAG_UNKNOWN",
          "validator_address": "Ynl0ZXM=",
          "timestamp": "2025-04-23T18:01:48.805Z",
          "signature": "Ynl0ZXM="
        }
      ]
    }
  },
  "pagination": {
    "next_key": "Ynl0ZXM=",
    "total": "text"
  }
}

Last updated