🟪 Polygon
eth_blockNumber

Polygon API Documentation


eth_blockNumber RPC Method

Returns

The eth_blockNumber method returns the number of the most recent block on the Polygon network.

Parameters

None.

Need RPC API keys?

Get 12.5M archival requests for free today.

Request

POST https://<network>.chainnodes.org/YOUR-API-KEY

Example

  • HTTPS POST Request with a JSON RPC call in the body
  • Replace YOUR-API-KEY with the API key from your CHAINNODES.ORG Dashboard
  • You can use a different supported network by replacing polygon-mainnet
curl https://polygon-mainnet.chainnodes.org/YOUR-API-KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'

Body

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x98b7db"
}

💡 Confusing?

Ask our experienced blockchain developers in Telegram