Saltar al contenido principal

eth_getUncleByBlockHashAndIndex

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

Params

(2)

1. blockhash (required)

string
Match pattern:
^0x[0-9,a-f,A-F]{64}$

2. index (required)

number

Result

(uncle)
Block representation or null
author
string
Match pattern:
^0x[0-9,a-f,A-F]{40}$
baseFeePerGas
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
difficulty
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
extraData
string
Match pattern:
^0x[0-9a-f]*$
gasLimit
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
gasUsed
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
hash
string
Match pattern:
^0x[0-9,a-f,A-F]{64}$
logsBloom
string
Match pattern:
^0x[0-9,a-f,A-F]{512}$
miner
string
Match pattern:
^0x[0-9,a-f,A-F]{40}$
mixHash
string
Match pattern:
^0x[0-9,a-f,A-F]{64}$
nonce
string
Match pattern:
^0x[0-9,a-f,A-F]{16}$
number
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
parentHash
string
Match pattern:
^0x[0-9,a-f,A-F]{64}$
receiptsRoot
string
Match pattern:
^0x[0-9,a-f,A-F]{64}$
sha3uncle
string
Match pattern:
^0x[0-9,a-f,A-F]{64}$
size
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
stateRoot
string
Match pattern:
^0x[0-9,a-f,A-F]{64}$
timestamp
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
totalDifficulty
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
transactions
transactionsRoot
string
Match pattern:
^0x[0-9,a-f,A-F]{64}$
uncles
array[string]

Endpoint

Params

blockhash

index


Request

curl -X POST --data \
'{
"method": "eth_getUncleByBlockHashAndIndex",
"params": [
null,
null
],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
https://evmtestnet.confluxrpc.com