eth_getUncleByBlockNumberAndIndex

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

Parameters

  1. Quantity or tag - choose 1 of the following options:

    • A hexadecimal block number.

    • "earliest" - the earliest/genesis block.

    • "latest" - the latest mined block.

    • "safe" - the latest safe head block.

    • "finalized" - the latest finalized block.

    • "pending" - the pending state/transactions.

  2. Index position of the uncle in hex code.

Sample Request

curl https://lb.nodies.app/v1/<INSERT URL> \
   -H "x-api-key: <API-KEY>" \
   -X POST \
   -H "Content-Type: application/json" \
   -d '{ 
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_getUncleByBlockNumberAndIndex",
  "params": [
    "0x9E15b0",
    "0x0"
  ]
}'

Sample Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "blockHash": "0xa0fe068c4d6d05ddc0b4d118f28ba8d0052067d5a4284bc7edf29e258049fb3d",
    "blockNumber": "0x11827b3",
    "contractAddress": null,
    "cumulativeGasUsed": "0xc12735",
    "effectiveGasPrice": "0x13966cefe",
    "from": "0x5124fcc2b3f99f571ad67d075643c743f38f1c34",
    "gasUsed": "0x5208",
    "logs": [],
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "status": "0x1",
    "to": "0x49b20fc5d7f94b65c49329b4e0018ffe18536b8c",
    "transactionHash": "0xc8a8e5a69f9a1fa5f4ed9ced579d508882f2c5a059277dd77aa43ef02be4f841",
    "transactionIndex": "0x76",
    "type": "0x2"
  }
}

Last updated