getUncleByBlockNumberAndIndex
Returns information about the 'Uncle' of a block by hash and the Uncle index position.
REQUEST
POST https://rbc-rpc.comHEADERS
Content-Type: application/jsonREQUEST PARAMS
BLOCK PARAMETER[required] - an integer block number, or the string "latest", "earliest" or "pending", see the default block parameterUNCLE INDEX POSITION[required] - a hex of the integer indicating the uncle's index position.
EXAMPLE
## JSON-RPC over HTTPS POST
curl https://rbc-rpc.com \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getUncleByBlockNumberAndIndex","params": ["0x29c","0x0"],"id":1}'
## JSON-RPC over WSS
wscat -c ws://rbc-rpc.com
>{"jsonrpc":"2.0","method":"eth_getUncleByBlockNumberAndIndex","params": ["0x29c","0x0"],"id":1}RESPONSE
RESULT FIELDS
BLOCK - A block object, or null when no block was found
number: the block number. null when its pending block.hash: 32 Bytes - hash of the block. null when its pending block.parentHash: 32 Bytes - hash of the parent block.nonce: 8 Bytes - hash of the generated proof-of-work. null when its pending block.sha3Uncles: 32 Bytes - SHA3 of the uncles data in the block.logsBloom: 256 Bytes - the bloom filter for the logs of the block. null when its pending block.transactionsRoot: 32 Bytes - the root of the transaction trie of the block.stateRoot: 32 Bytes - the root of the final state trie of the block.receiptsRoot: 32 Bytes - the root of the receipts trie of the block.miner: 20 Bytes - the address of the beneficiary to whom the mining rewards were given.difficulty: integer of the difficulty for this block.totalDifficulty: integer of the total difficulty of the chain until this block.extraData: the "extra data" field of this block.size: integer the size of this block in bytes.gasLimit: the maximum gas allowed in this block.gasUsed: the total used gas by all transactions in this block.timestamp: the unix timestamp for when the block was collated.uncles: an Array of uncle hashes.
Note: An uncle doesn't contain individual transactions
BODY
Last updated