Skip to main content
Retrieve block data from individual shards, query cross-shard hyperblocks, and track which accounts changed in a given block.

Shard blocks

MethodPathDescription
GET/block/{shard}/by-nonce/{nonce}Block by height in a specific shard
GET/block/{shard}/by-hash/{hash}Block by hash in a specific shard
Query parameters
ParameterTypeDescription
withTxsbooleanInclude transactions in the response
withLogsbooleanInclude event logs in the response
curl "https://rust-gateway.xoxno.com/block/0/by-nonce/1234567?withTxs=true"
The Gateway queries full-history observers first, then falls back to regular observers. Block responses are TTL-cached.

Altered accounts

MethodPathDescription
GET/block/{shard}/altered-accounts/by-nonce/{nonce}Accounts modified in a block
GET/block/{shard}/altered-accounts/by-hash/{hash}Accounts modified in a block (by hash)
Query parameters
ParameterTypeDescription
tokensstringFilter to specific token identifiers
Use altered accounts to build an indexer that tracks which addresses changed in each block without parsing full transaction data.

Blocks by round

MethodPathDescription
GET/blocks/by-round/{round}Blocks from all shards for a consensus round
Returns one block per shard. The Gateway fans out to all shard observers in parallel.

Hyperblocks

Hyperblocks provide a cross-shard unified view anchored to a metachain block. Each hyperblock contains all transactions from all shards that the metablock notarized.
MethodPathDescription
GET/hyperblock/by-hash/{hash}Hyperblock by metachain block hash
GET/hyperblock/by-nonce/{nonce}Hyperblock by metachain block nonce
Query parameters
ParameterTypeDescription
withLogsbooleanInclude event logs
notarizedAtSourcebooleanInclude notarization-at-source data
withAlteredAccountsbooleanInclude altered accounts per shard
tokensstringFilter altered accounts to specific token identifiers
curl "https://rust-gateway.xoxno.com/hyperblock/by-nonce/1234567?withLogs=true"
Hyperblocks include transactions (withTxs=true is implicit). Use them when you need a complete cross-shard view at a specific metachain height.