eth_getBlockByHash
Gets a block for a given hash
- 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": ["0x1768f524493543ac12785a8dd50e5a5b2c5b1ebaaef4f6202a5832783fad13bc",false],
"method": "eth_getBlockByHash"
}'
Params
blockHash required
Schema
type : string
Pattern :
^0x[0-9,a-f,A-F]{64}$
includeTransactions required
Schema
type : boolean
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