Saltar al contenido principal

cfx_getBlockByHashWithPivotAssumption

Returns block with given hash and pivot chain assumption.

Params

(3)

1. block_hash (required)

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

2. pivot_hash (required)

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

3. epoch_number (required)

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

Result

(cfx_getBlockByHashWithPivotAssumption_result)
adaptive
boolean
baseFeePerGas
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
blame
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
blockNumber
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
custom
array[string]
deferredLogsBloomHash
string
Match pattern:
^0x[0-9,a-f,A-F]{64}$
deferredReceiptsRoot
string
Match pattern:
^0x[0-9,a-f,A-F]{64}$
deferredStateRoot
string
Match pattern:
^0x[0-9,a-f,A-F]{64}$
difficulty
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
epochNumber
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
gasLimit
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
gasUsed
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
hash
string
Match pattern:
^0x[0-9,a-f,A-F]{64}$
height
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
miner
string
Match pattern:
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
nonce
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}$
posReference
string or null
Match pattern:
^0x[0-9,a-f,A-F]{64}$
powQuality
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
refereeHashes
array[string]
size
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
timestamp
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}$

Endpoint

Params

block_hash

pivot_hash

epoch_number


Request

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