Granite Upgrade Activates in09d:00h:01m:39s
Blocks

platform.getBlock

Calls the platform.getBlock method

POST
/ext/bc/P#platform.getBlock

JSON-RPC request

jsonrpcstring
methodstring
paramsobject

Method parameters

idinteger

Response Body

application/json

application/json

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

Is this guide helpful?