Block
Last updated
Last updated
Since: cosmos-sdk 0.45.2
height is the height of the block to query.
A successful response.
txs are the transactions in the block.
pagination defines a pagination for the response.
const response = await fetch('https://band-rest.nownodes.io/cosmos/tx/v1beta1/txs/block/{height}', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"txs": [
{
"body": {
"messages": [
{
"type_url": "text",
"value": "Ynl0ZXM="
}
],
"memo": "text",
"timeout_height": "text",
"unordered": false,
"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": {
"single": {
"mode": "SIGN_MODE_UNSPECIFIED"
},
"multi": {
"bitarray": {
"elems": "Ynl0ZXM="
},
"mode_infos": []
}
},
"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": {
"hash": "Ynl0ZXM="
}
},
"block": {
"header": {
"version": {
"block": "text",
"app": "text"
},
"chain_id": "text",
"height": "text",
"time": "2024-11-10T03:47:35.206Z",
"last_block_id": {
"hash": "Ynl0ZXM=",
"part_set_header": {
"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",
"block_id": {
"hash": "Ynl0ZXM=",
"part_set_header": {
"hash": "Ynl0ZXM="
}
},
"timestamp": "2024-11-10T03:47:35.206Z",
"validator_address": "Ynl0ZXM=",
"signature": "Ynl0ZXM=",
"extension": "Ynl0ZXM=",
"extension_signature": "Ynl0ZXM="
},
"vote_b": {
"type": "SIGNED_MSG_TYPE_UNKNOWN",
"height": "text",
"block_id": {
"hash": "Ynl0ZXM=",
"part_set_header": {
"hash": "Ynl0ZXM="
}
},
"timestamp": "2024-11-10T03:47:35.206Z",
"validator_address": "Ynl0ZXM=",
"signature": "Ynl0ZXM=",
"extension": "Ynl0ZXM=",
"extension_signature": "Ynl0ZXM="
},
"total_voting_power": "text",
"validator_power": "text",
"timestamp": "2024-11-10T03:47:35.206Z"
},
"light_client_attack_evidence": {
"conflicting_block": {
"signed_header": {
"header": {
"version": {
"block": "text",
"app": "text"
},
"chain_id": "text",
"height": "text",
"time": "2024-11-10T03:47:35.206Z",
"last_block_id": {
"hash": "Ynl0ZXM=",
"part_set_header": {
"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",
"block_id": {
"hash": "Ynl0ZXM=",
"part_set_header": {
"hash": "Ynl0ZXM="
}
},
"signatures": [
{
"block_id_flag": "BLOCK_ID_FLAG_UNKNOWN",
"validator_address": "Ynl0ZXM=",
"timestamp": "2024-11-10T03:47:35.206Z",
"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": "2024-11-10T03:47:35.206Z"
}
}
]
},
"last_commit": {
"height": "text",
"block_id": {
"hash": "Ynl0ZXM=",
"part_set_header": {
"hash": "Ynl0ZXM="
}
},
"signatures": [
{
"block_id_flag": "BLOCK_ID_FLAG_UNKNOWN",
"validator_address": "Ynl0ZXM=",
"timestamp": "2024-11-10T03:47:35.206Z",
"signature": "Ynl0ZXM="
}
]
}
},
"pagination": {
"next_key": "Ynl0ZXM=",
"total": "text"
}
}