GetBlockByHeight
GetBlockByHeight queries block for given height.
Path Parameters
- 200
- default
A successful response.
Schema
- Array [
- SIGNED_MSG_TYPE_PREVOTE: Votes
- SIGNED_MSG_TYPE_PROPOSAL: Proposals
- SIGNED_MSG_TYPE_PREVOTE: Votes
- SIGNED_MSG_TYPE_PROPOSAL: Proposals
- Array [
- ]
- Array [
- ]
- Array [
- ]
- ]
- Array [
- ]
- Array [
- SIGNED_MSG_TYPE_PREVOTE: Votes
- SIGNED_MSG_TYPE_PROPOSAL: Proposals
- SIGNED_MSG_TYPE_PREVOTE: Votes
- SIGNED_MSG_TYPE_PROPOSAL: Proposals
- Array [
- ]
- Array [
- ]
- Array [
- ]
- ]
- Array [
- ]
block_id object
part_set_header object
block object
header object
Header defines the structure of a block header.
version object
Consensus captures the consensus rules for processing a block in the blockchain, including all blockchain data structures and the rules of the application's state transition machine.
last_block_id object
part_set_header object
data object
Txs that will be applied by state @ block.Height+1. NOTE: not all txs here are valid. We're just agreeing on the order first. This means that block.AppHash does not include these txs.
evidence object
evidence object[]
duplicate_vote_evidence object
DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes.
vote_a object
Vote represents a prevote, precommit, or commit vote from validators for consensus.
Possible values: [SIGNED_MSG_TYPE_UNKNOWN
, SIGNED_MSG_TYPE_PREVOTE
, SIGNED_MSG_TYPE_PRECOMMIT
, SIGNED_MSG_TYPE_PROPOSAL
]
Default value: SIGNED_MSG_TYPE_UNKNOWN
SignedMsgType is a type of signed message in the consensus.
block_id object
part_set_header object
vote_b object
Vote represents a prevote, precommit, or commit vote from validators for consensus.
Possible values: [SIGNED_MSG_TYPE_UNKNOWN
, SIGNED_MSG_TYPE_PREVOTE
, SIGNED_MSG_TYPE_PRECOMMIT
, SIGNED_MSG_TYPE_PROPOSAL
]
Default value: SIGNED_MSG_TYPE_UNKNOWN
SignedMsgType is a type of signed message in the consensus.
block_id object
part_set_header object
light_client_attack_evidence object
LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client.
conflicting_block object
signed_header object
header object
Header defines the structure of a block header.
version object
Consensus captures the consensus rules for processing a block in the blockchain, including all blockchain data structures and the rules of the application's state transition machine.
last_block_id object
part_set_header object
commit object
Commit contains the evidence that a block was committed by a set of validators.
block_id object
part_set_header object
signatures object[]
Possible values: [BLOCK_ID_FLAG_UNKNOWN
, BLOCK_ID_FLAG_ABSENT
, BLOCK_ID_FLAG_COMMIT
, BLOCK_ID_FLAG_NIL
]
Default value: BLOCK_ID_FLAG_UNKNOWN
validator_set object
validators object[]
pub_key object
proposer object
pub_key object
byzantine_validators object[]
pub_key object
last_commit object
Commit contains the evidence that a block was committed by a set of validators.
block_id object
part_set_header object
signatures object[]
Possible values: [BLOCK_ID_FLAG_UNKNOWN
, BLOCK_ID_FLAG_ABSENT
, BLOCK_ID_FLAG_COMMIT
, BLOCK_ID_FLAG_NIL
]
Default value: BLOCK_ID_FLAG_UNKNOWN
sdk_block object
Block is tendermint type Block, with the Header proposer address field converted to hex string.
header object
Header defines the structure of a Tendermint block header.
version object
Consensus captures the consensus rules for processing a block in the blockchain, including all blockchain data structures and the rules of the application's state transition machine.
last_block_id object
part_set_header object
proposer_address is the original block proposer address, formatted as a hex string.
In Tendermint, this type is bytes
, but in the SDK, we convert it to a hex string
for better UX.
data object
Txs that will be applied by state @ block.Height+1. NOTE: not all txs here are valid. We're just agreeing on the order first. This means that block.AppHash does not include these txs.
evidence object
evidence object[]
duplicate_vote_evidence object
DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes.
vote_a object
Vote represents a prevote, precommit, or commit vote from validators for consensus.
Possible values: [SIGNED_MSG_TYPE_UNKNOWN
, SIGNED_MSG_TYPE_PREVOTE
, SIGNED_MSG_TYPE_PRECOMMIT
, SIGNED_MSG_TYPE_PROPOSAL
]
Default value: SIGNED_MSG_TYPE_UNKNOWN
SignedMsgType is a type of signed message in the consensus.
block_id object
part_set_header object
vote_b object
Vote represents a prevote, precommit, or commit vote from validators for consensus.
Possible values: [SIGNED_MSG_TYPE_UNKNOWN
, SIGNED_MSG_TYPE_PREVOTE
, SIGNED_MSG_TYPE_PRECOMMIT
, SIGNED_MSG_TYPE_PROPOSAL
]
Default value: SIGNED_MSG_TYPE_UNKNOWN
SignedMsgType is a type of signed message in the consensus.
block_id object
part_set_header object
light_client_attack_evidence object
LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client.
conflicting_block object
signed_header object
header object
Header defines the structure of a block header.
version object
Consensus captures the consensus rules for processing a block in the blockchain, including all blockchain data structures and the rules of the application's state transition machine.
last_block_id object
part_set_header object
commit object
Commit contains the evidence that a block was committed by a set of validators.
block_id object
part_set_header object
signatures object[]
Possible values: [BLOCK_ID_FLAG_UNKNOWN
, BLOCK_ID_FLAG_ABSENT
, BLOCK_ID_FLAG_COMMIT
, BLOCK_ID_FLAG_NIL
]
Default value: BLOCK_ID_FLAG_UNKNOWN
validator_set object
validators object[]
pub_key object
proposer object
pub_key object
byzantine_validators object[]
pub_key object
last_commit object
Commit contains the evidence that a block was committed by a set of validators.
block_id object
part_set_header object
signatures object[]
Possible values: [BLOCK_ID_FLAG_UNKNOWN
, BLOCK_ID_FLAG_ABSENT
, BLOCK_ID_FLAG_COMMIT
, BLOCK_ID_FLAG_NIL
]
Default value: BLOCK_ID_FLAG_UNKNOWN
{
"block_id": {
"hash": "string",
"part_set_header": {
"total": 0,
"hash": "string"
}
},
"block": {
"header": {
"version": {
"block": "string",
"app": "string"
},
"chain_id": "string",
"height": "string",
"time": "2023-12-18T20:49:10.176Z",
"last_block_id": {
"hash": "string",
"part_set_header": {
"total": 0,
"hash": "string"
}
},
"last_commit_hash": "string",
"data_hash": "string",
"validators_hash": "string",
"next_validators_hash": "string",
"consensus_hash": "string",
"app_hash": "string",
"last_results_hash": "string",
"evidence_hash": "string",
"proposer_address": "string"
},
"data": {
"txs": [
"string"
]
},
"evidence": {
"evidence": [
{
"duplicate_vote_evidence": {
"vote_a": {
"type": "SIGNED_MSG_TYPE_UNKNOWN",
"height": "string",
"round": 0,
"block_id": {
"hash": "string",
"part_set_header": {
"total": 0,
"hash": "string"
}
},
"timestamp": "2023-12-18T20:49:10.177Z",
"validator_address": "string",
"validator_index": 0,
"signature": "string"
},
"vote_b": {
"type": "SIGNED_MSG_TYPE_UNKNOWN",
"height": "string",
"round": 0,
"block_id": {
"hash": "string",
"part_set_header": {
"total": 0,
"hash": "string"
}
},
"timestamp": "2023-12-18T20:49:10.177Z",
"validator_address": "string",
"validator_index": 0,
"signature": "string"
},
"total_voting_power": "string",
"validator_power": "string",
"timestamp": "2023-12-18T20:49:10.177Z"
},
"light_client_attack_evidence": {
"conflicting_block": {
"signed_header": {
"header": {
"version": {
"block": "string",
"app": "string"
},
"chain_id": "string",
"height": "string",
"time": "2023-12-18T20:49:10.177Z",
"last_block_id": {
"hash": "string",
"part_set_header": {
"total": 0,
"hash": "string"
}
},
"last_commit_hash": "string",
"data_hash": "string",
"validators_hash": "string",
"next_validators_hash": "string",
"consensus_hash": "string",
"app_hash": "string",
"last_results_hash": "string",
"evidence_hash": "string",
"proposer_address": "string"
},
"commit": {
"height": "string",
"round": 0,
"block_id": {
"hash": "string",
"part_set_header": {
"total": 0,
"hash": "string"
}
},
"signatures": [
{
"block_id_flag": "BLOCK_ID_FLAG_UNKNOWN",
"validator_address": "string",
"timestamp": "2023-12-18T20:49:10.177Z",
"signature": "string"
}
]
}
},
"validator_set": {
"validators": [
{
"address": "string",
"pub_key": {
"ed25519": "string",
"secp256k1": "string"
},
"voting_power": "string",
"proposer_priority": "string"
}
],
"proposer": {
"address": "string",
"pub_key": {
"ed25519": "string",
"secp256k1": "string"
},
"voting_power": "string",
"proposer_priority": "string"
},
"total_voting_power": "string"
}
},
"common_height": "string",
"byzantine_validators": [
{
"address": "string",
"pub_key": {
"ed25519": "string",
"secp256k1": "string"
},
"voting_power": "string",
"proposer_priority": "string"
}
],
"total_voting_power": "string",
"timestamp": "2023-12-18T20:49:10.177Z"
}
}
]
},
"last_commit": {
"height": "string",
"round": 0,
"block_id": {
"hash": "string",
"part_set_header": {
"total": 0,
"hash": "string"
}
},
"signatures": [
{
"block_id_flag": "BLOCK_ID_FLAG_UNKNOWN",
"validator_address": "string",
"timestamp": "2023-12-18T20:49:10.177Z",
"signature": "string"
}
]
}
},
"sdk_block": {
"header": {
"version": {
"block": "string",
"app": "string"
},
"chain_id": "string",
"height": "string",
"time": "2023-12-18T20:49:10.177Z",
"last_block_id": {
"hash": "string",
"part_set_header": {
"total": 0,
"hash": "string"
}
},
"last_commit_hash": "string",
"data_hash": "string",
"validators_hash": "string",
"next_validators_hash": "string",
"consensus_hash": "string",
"app_hash": "string",
"last_results_hash": "string",
"evidence_hash": "string",
"proposer_address": "string"
},
"data": {
"txs": [
"string"
]
},
"evidence": {
"evidence": [
{
"duplicate_vote_evidence": {
"vote_a": {
"type": "SIGNED_MSG_TYPE_UNKNOWN",
"height": "string",
"round": 0,
"block_id": {
"hash": "string",
"part_set_header": {
"total": 0,
"hash": "string"
}
},
"timestamp": "2023-12-18T20:49:10.178Z",
"validator_address": "string",
"validator_index": 0,
"signature": "string"
},
"vote_b": {
"type": "SIGNED_MSG_TYPE_UNKNOWN",
"height": "string",
"round": 0,
"block_id": {
"hash": "string",
"part_set_header": {
"total": 0,
"hash": "string"
}
},
"timestamp": "2023-12-18T20:49:10.178Z",
"validator_address": "string",
"validator_index": 0,
"signature": "string"
},
"total_voting_power": "string",
"validator_power": "string",
"timestamp": "2023-12-18T20:49:10.178Z"
},
"light_client_attack_evidence": {
"conflicting_block": {
"signed_header": {
"header": {
"version": {
"block": "string",
"app": "string"
},
"chain_id": "string",
"height": "string",
"time": "2023-12-18T20:49:10.178Z",
"last_block_id": {
"hash": "string",
"part_set_header": {
"total": 0,
"hash": "string"
}
},
"last_commit_hash": "string",
"data_hash": "string",
"validators_hash": "string",
"next_validators_hash": "string",
"consensus_hash": "string",
"app_hash": "string",
"last_results_hash": "string",
"evidence_hash": "string",
"proposer_address": "string"
},
"commit": {
"height": "string",
"round": 0,
"block_id": {
"hash": "string",
"part_set_header": {
"total": 0,
"hash": "string"
}
},
"signatures": [
{
"block_id_flag": "BLOCK_ID_FLAG_UNKNOWN",
"validator_address": "string",
"timestamp": "2023-12-18T20:49:10.178Z",
"signature": "string"
}
]
}
},
"validator_set": {
"validators": [
{
"address": "string",
"pub_key": {
"ed25519": "string",
"secp256k1": "string"
},
"voting_power": "string",
"proposer_priority": "string"
}
],
"proposer": {
"address": "string",
"pub_key": {
"ed25519": "string",
"secp256k1": "string"
},
"voting_power": "string",
"proposer_priority": "string"
},
"total_voting_power": "string"
}
},
"common_height": "string",
"byzantine_validators": [
{
"address": "string",
"pub_key": {
"ed25519": "string",
"secp256k1": "string"
},
"voting_power": "string",
"proposer_priority": "string"
}
],
"total_voting_power": "string",
"timestamp": "2023-12-18T20:49:10.178Z"
}
}
]
},
"last_commit": {
"height": "string",
"round": 0,
"block_id": {
"hash": "string",
"part_set_header": {
"total": 0,
"hash": "string"
}
},
"signatures": [
{
"block_id_flag": "BLOCK_ID_FLAG_UNKNOWN",
"validator_address": "string",
"timestamp": "2023-12-18T20:49:10.178Z",
"signature": "string"
}
]
}
}
}
An unexpected error response.
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
Must be a valid serialized protocol buffer of the above specified type.
{
"error": "string",
"code": 0,
"message": "string",
"details": [
{
"type_url": "string",
"value": "string"
}
]
}