Get block
avax_get_blockRetrieve Avalanche C-Chain blocks by number, hash, or tag, with optional full transaction details.
Instructions
Fetch a block by number, hash, or tag ('latest'). Returns header fields and transaction hashes (set include_transactions=true for full tx objects).
Network: "mainnet" (C-Chain), "fuji" (testnet C-Chain), a known L1 key (mainnet, c-chain, fuji, dexalot, beam, dfk, dispatch-fuji, echo-fuji), or a full RPC URL.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "avax_get_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block | No | Block number (decimal), 0x-hash, or 'latest' | latest |
| network | No | Network: "mainnet" (C-Chain), "fuji" (testnet C-Chain), a known L1 key (mainnet, c-chain, fuji, dexalot, beam, dfk, dispatch-fuji, echo-fuji), or a full RPC URL. | fuji |
| include_transactions | No |