eth_getUncleByBlockNumberAndIndex

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

This method will use 20 Compute Units.

Note: There is no concept of uncle (aka ommer) blocks in Conflux. The eth_getUncleByBlockHashAndIndex and eth_getUncleByBlockNumberAndIndex methods will always return null.


Reference: Here

Parameters

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

  2. QUANTITY - the uncle's index position.

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

curl https://mainnet.conflux.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_getUncleByBlockNumberAndIndex","params":["0x29c", "0x0"],"id":1}'

Last updated