curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "eth_getUncleByBlockHashAndIndex",
"id": 1,
"params": [
"0xb3e8c898cfbf4072eaad440e8606e578a33ca4fafc27d7936d83d7392ba3e939",
"0x0"
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": {}
}curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "eth_getUncleByBlockHashAndIndex",
"id": 1,
"params": [
"0xb3e8c898cfbf4072eaad440e8606e578a33ca4fafc27d7936d83d7392ba3e939",
"0x0"
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": {}
}BLOCK HASH - 32-byte hash of the block containing the uncleUNCLE INDEX POSITION - the uncle’s index position. It’s a hexadecimal value representing the uncle’s position in the block’s uncle list.result — A block object with uncle information, or null when no uncle exists at the given index. The block object includes:
number: The block numberhash: Hash of the uncle blockparentHash: Hash of the parent blocknonce: Hash of the generated proof-of-worksha3Uncles: SHA3 of the uncles data in the blocklogsBloom: The bloom filter for the logs of the blocktransactionsRoot: The root of the transaction trie of the blockstateRoot: The root of the final state trie of the blockreceiptsRoot: The root of the receipts trie of the blockminer: The address of the beneficiary to whom the mining rewards were givendifficulty: Integer of the difficulty for this blocktotalDifficulty: Integer of the total difficulty of the chain until this blockextraData: The “extra data” field of this blocksize: Integer the size of this block in bytesgasLimit: The maximum gas allowed in this blockgasUsed: The total used gas by all transactions in this blocktimestamp: The unix timestamp for when the block was collatedeth_getUncleByBlockHashAndIndex method is primarily used in proof-of-work networks for:
Was this page helpful?