Blocks
Retrieve block headers, transaction lists, and consensus metadata for any block on XYZ Chain.Get Latest Block
Returns the most recently finalized block.Response
Response
Key Fields
| Field | Description |
|---|---|
block.header.chain_id | Chain identifier (xyz-1 for mainnet) |
block.header.height | Block number as a string |
block.header.time | Block timestamp in RFC 3339 format |
block.header.proposer_address | Hex-encoded address of the validator that proposed this block |
block.data.txs | Array of base64-encoded transactions included in this block |
block.last_commit.signatures | Validator signatures from the previous block’s commit |
Get Block by Height
Retrieve a specific block by its height.Errors
| Case | Response |
|---|---|
| Height not yet reached | 400 — block height is ahead of the chain |
| Height = 0 | 400 — invalid height |
| Negative height | 400 — invalid argument |