🟪 Polygon

Polygon API Documentation

eth_getUncleCountByBlockHash RPC method


uncles - The number of uncles in the block encoded as hexadecimal.


block hash - String - The hash of the block to get uncles for


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


💡 Confusing?

Ask our experienced blockchain developers in Telegram

  • 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_getUncleCountByBlockHash","params":["0xd8b8105a94eb5bb41e66e8ddc19c748588320fdf53c1f475ede959688f403b48"],"id":1}'


   "jsonrpc": "2.0",
   "id": 1,
   "result": "0x0"

🔌 To use you must be connected to a blockchain node.

JSON-RPC Polygon API Documentation by CHAINNODES is based on Erigon node client. Contact us if you are interested in specific methods that are only available on geth, besu, Nethermind or reth