Granite Upgrade Activates in09d:00h:01m:36s

avm.getBlock

Returns the block with the given id.

POST
/ext/bc/X#avm.getBlock

JSON-RPC request

jsonrpcstring
methodstring
params
idinteger

Response Body

application/json

application/json

curl -X POST "https://api.avax.network/ext/bc/X#avm.getBlock" \  -H "Content-Type: application/json" \  -d '{    "jsonrpc": "2.0",    "method": "avm.getBlock",    "params": {      "blockID": "tXJ4xwmR8soHE6DzRNMQPtiwQvuYsHn6eLLBzo2moDqBquqy6"    },    "id": 1  }'
{
  "jsonrpc": "2.0",
  "result": {
    "block": "string",
    "encoding": "hex"
  },
  "id": 1
}
{
  "jsonrpc": "2.0",
  "error": {
    "code": 0,
    "message": "string",
    "data": null
  },
  "id": 1
}

Is this guide helpful?