Skip to main content

eth_getUncleByBlockNumberAndIndex RPC Method

Returns information about a uncle of a block by number and the uncle's index position. Since there are no uncles in Klaytn, it always returns null.

Updated on
Aug 7, 2024

eth_getUncleByBlockNumberAndIndex RPC Method

Parameters

blockNumber
string
REQUIRED
The block number as a string in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators
UncleIndex
string
REQUIRED
The uncle's index position

Returns

object
object
A block object, or null when no block was found:
baseFeePerGas
string
(Optional) A string of the base fee encoded in hexadecimal format. Please note that this response field will not be included in a block requested before the EIP-1559 upgrade
difficulty
string
The integer of the difficulty for this block encoded as a hexadecimal
extraData
string
The “extra data” field of this block
gasLimit
string
The maximum gas allowed in this block encoded as a hexadecimal
gasUsed
string
The total used gas by all transactions in this block encoded as a hexadecimal
hash
string
The block hash of the requested block. null if pending
logsBloom
string
The bloom filter for the logs of the block. null if pending
miner
string
The address of the beneficiary to whom the mining rewards were given
mixHash
string
A string of a 256-bit hash encoded as a hexadecimal
nonce
string
The hash of the generated proof-of-work. null if pending
number
string
The block number of the requested block encoded as a hexadecimal. null if pending
parentHash
string
The hash of the parent block
receiptsRoot
string
The root of the receipts trie of the block
sha3Uncles
string
The SHA3 of the uncles data in the block
size
string
The size of this block in bytes as an Integer value encoded as hexadecimal
stateRoot
string
The root of the final state trie of the block
timestamp
string
The unix timestamp for when the block was collated
totalDifficulty
string
The integer of the total difficulty of the chain until this block encoded as a hexadecimal
transactionsRoot
string
The root of the transaction trie of the block
Request
1
curl https://docs-demo.kaia-kairos.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"eth_getUncleByBlockNumberAndIndex","params":["0xe8", "0x1"],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free