get_block
Retrieve block details from the 0G blockchain by block number or hash. Select mainnet or testnet to query.
Instructions
Get block information by number or hash
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": {
"blockIdentifier": "<blockIdentifier>"
},
"name": "get_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Network to query (default: testnet) | testnet |
| blockIdentifier | Yes | Block number or hash |