eth_getUncleByBlockHashAndIndex
Returns information about a uncle of a block by hash and uncle index position.
- CURL
curl --request POST \
--url https://evm.confluxrpc.com \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"params": [null,null],
"method": "eth_getUncleByBlockHashAndIndex"
}'
Params
blockhash required
Schema
type : string
Pattern :
^0x[0-9,a-f,A-F]{64}$index required
Schema
type : number
Result
Block representation
type : object
author author
type : stringPattern :^0x[0-9,a-f,A-F]{40}$baseFeePerGas baseFeePerGas
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$difficulty difficulty
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$extraData extraData
type : stringPattern :^0x[0-9a-f]*$gasLimit gasLimit
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$gasUsed gasUsed
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$hash hash
type : stringPattern :^0x[0-9,a-f,A-F]{64}$logsBloom logsBloom
type : stringPattern :^0x[0-9,a-f,A-F]{512}$miner miner
type : stringPattern :^0x[0-9,a-f,A-F]{40}$mixHash mixHash
type : stringPattern :^0x[0-9,a-f,A-F]{64}$nonce nonce
type : stringPattern :^0x[0-9,a-f,A-F]{16}$number number
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$parentHash parentHash
type : stringPattern :^0x[0-9,a-f,A-F]{64}$receiptsRoot receiptsRoot
type : stringPattern :^0x[0-9,a-f,A-F]{64}$sha3uncle sha3uncle
type : stringPattern :^0x[0-9,a-f,A-F]{64}$size size
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$stateRoot stateRoot
type : stringPattern :^0x[0-9,a-f,A-F]{64}$timestamp timestamp
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$totalDifficulty totalDifficulty
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$transactions transactions
oneOf- (H256,...)[]
- (Transaction,...)[]
type : arrayitems[x]H256type : stringPattern :^0x[0-9,a-f,A-F]{64}$
type : arrayitems[x]Transactiontype : objectaccessList accessList
type : arrayitems[x]AccessListItemtype : objectaddress address
type : stringPattern :^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$storageKeys storageKeys
type : arrayitems[x]H256type : stringPattern :^0x[0-9,a-f,A-F]{64}$
blockHash blockHash
type : stringPattern :^0x[0-9,a-f,A-F]{64}$blockNumber blockNumber
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$chainId chainId
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$creates creates
type : stringPattern :^0x[0-9,a-f,A-F]{40}$from from
type : stringPattern :^0x[0-9,a-f,A-F]{40}$gas gas
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$gasPrice gasPrice
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$hash hash
type : stringPattern :^0x[0-9,a-f,A-F]{64}$input input
type : stringPattern :^0x[0-9a-f]*$maxFeePerGas maxFeePerGas
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$maxPriorityFeePerGas maxPriorityFeePerGas
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$nonce nonce
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$publicKey publicKey
type : stringPattern :^0x[0-9,a-f,A-F]{128}$r r
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$raw raw
type : stringPattern :^0x[0-9a-f]*$s s
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$standardV standardV
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$status status
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$to to
type : stringPattern :^0x[0-9,a-f,A-F]{40}$transactionIndex transactionIndex
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$transactionType transactionType
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$v v
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$value value
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$yParity yParity
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$
transactionsRoot transactionsRoot
type : stringPattern :^0x[0-9,a-f,A-F]{64}$uncles uncles
type : arrayitems[x]H256type : stringPattern :^0x[0-9,a-f,A-F]{64}$