Get Quai Block
get_blockFetch block data from any Quai Network chain by number, hash, or tag. Specify the shard (e.g., cyprus1) to read the correct chain.
Instructions
Fetch a block from a specific Quai Network chain. Quai is a hierarchy of Prime, Region, and Zone chains, so a block number alone is not globally unique -- you must also say which chain to read from (e.g. "cyprus1" for a zone, "cyprus" for its region, or "prime"). Accepts a block number (decimal or 0x-hex), a block hash (0x + 64 hex chars), or a tag ("latest", "earliest", "pending"). If you only have an address and need its zone, call resolve_zone first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"shard": "<shard>",
"block": "<block>"
},
"name": "get_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block | Yes | Block number (decimal or 0x-hex), block hash (0x...), or tag: "latest", "earliest", "pending". | |
| shard | Yes | The chain to query. One of: prime, cyprus, paxos, hydra, cyprus1, cyprus2, cyprus3, paxos1, paxos2, paxos3, hydra1, hydra2, hydra3. | |
| network | No | Which Quai network to query: "mainnet" or "testnet" (the Orchard testnet). Defaults to mainnet. | mainnet |
| includeTransactions | No | If true, include full transaction objects in the block instead of just their hashes. |