eth_getUncleByBlockNumberAndIndex

Returns information about an uncle of a block by number and uncle index position.

Parameters

  • QUANTITY|TAG - a block number, or the string "earliest", "latest" or "pending", as in the default block parameter.

  • QUANTITY - the uncle's index position.

params: [
   '0x29c', // 668
   '0x0' // 0
]

Returns

See eth_getBlockByHash

**NOTE: **The return does not contain a list of transactions in the uncle block, to get this, make another request to eth_getBlockByHash or eth_getBlockByNumber

Example

Request

curl https://rpc-mainnet.u2u.xyz \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getUncleByBlockNumberAndIndex","params":["0x29c", "0x0"],"id":0}'

Result

Last updated