Saltar al contenido principal

eth_getUncleByBlockNumberAndIndex

returns an uncle block or null

Params

(2)

1. uncleBlockNumber (required)

(one of)
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$

2. index (required)

number

Result

(uncleResult)
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

uncleBlockNumber

index


Request

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