ankr · Example Payload

Ankr Eth Rpc Call Example

Ankr Eth Rpc Call Example is an example object payload from ankr, with 3 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponsenotes

Example Payload

Raw ↑
{
  "request": {
    "method": "POST",
    "url": "https://rpc.ankr.com/eth",
    "headers": {
      "Content-Type": "application/json"
    },
    "body": {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "eth_blockNumber",
      "params": []
    }
  },
  "response": {
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x14d2c8a"
  },
  "notes": "Public Plan endpoint — no API key. For Premium throughput call https://rpc.ankr.com/eth/{API_KEY}."
}