gRPC API
Blocks API
gRPC API for retrieving blocks and shard chunks from the Snapchain
Used to retrieve blocks and shard chunks from the chain.
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
gRPC API for retrieving blocks and shard chunks from the Snapchain
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| GetBlocks | BlocksRequest | stream Block | Returns a stream of blocks for a given shard |
| GetShardChunks | ShardChunksRequest | ShardChunksResponse | Returns chunks of serialized block data |
| Field | Type | Label | Description |
|---|---|---|---|
| shard_id | uint32 | ID of the shard to get blocks from | |
| start_block_number | uint64 | Block number to start from (inclusive) | |
| stop_block_number | uint64 | optional | Block number to stop at (inclusive) |
| Field | Type | Label | Description |
|---|---|---|---|
| shard_id | uint32 | ID of the shard to get chunks from | |
| start_block_number | uint64 | Block number to start from (inclusive) | |
| stop_block_number | uint64 | optional | Block number to stop at (inclusive) |
| Field | Type | Label | Description |
|---|---|---|---|
| shard_chunks | ShardChunk | repeated | Array of shard chunks |
| Field | Type | Label | Description |
|---|---|---|---|
| header | BlockHeader | Header info for the block | |
| messages | Message | repeated | Array of messages in the block |
Was this page helpful?