get_block
Retrieve VeChain block information using block ID, number, or keywords like best, justified, or finalized. Returns structured data or RLP-encoded blocks with optional transaction expansion.
Instructions
Retrieve information about a VeChain block by its revision (block ID, number, or keywords: best | justified | finalized).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revision | No | Block revision: hex ID, block number, or keywords: best | justified | finalized | best |
| expanded | No | Return transactions expanded (objects) instead of just IDs (default: false) | |
| raw | No | Return RLP-encoded block instead of structured JSON (default: false) |
Input Schema (JSON Schema)
{
"properties": {
"expanded": {
"description": "Return transactions expanded (objects) instead of just IDs (default: false)",
"type": "boolean"
},
"raw": {
"description": "Return RLP-encoded block instead of structured JSON (default: false)",
"type": "boolean"
},
"revision": {
"anyOf": [
{
"enum": [
"best",
"justified",
"finalized"
],
"type": "string"
},
{
"minimum": 0,
"type": "integer"
},
{
"description": "Block ID (hex) or block number as string",
"minLength": 1,
"type": "string"
}
],
"default": "best",
"description": "Block revision: hex ID, block number, or keywords: best | justified | finalized"
}
},
"type": "object"
}