cfx_getBlockByHashWithPivotAssumption
Returns block with given hash and pivot chain assumption.
- CURL
curl --request POST \
--url https://main.confluxrpc.com \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"params": [null,null,null],
"method": "cfx_getBlockByHashWithPivotAssumption"
}'
Params
block_hash required
Schema
type : string
Pattern :
^0x[0-9,a-f,A-F]{64}$
pivot_hash required
Schema
type : string
Pattern :
^0x[0-9,a-f,A-F]{64}$
epoch_number required
Schema
type : string
Pattern :
^0x([1-9a-f][0-9a-f]{0,15}|0)$
Result
Schema
type : object
adaptive adaptive
type : booleanbaseFeePerGas baseFeePerGas
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
blame blame
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$
blockNumber blockNumber
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
custom custom
type : arrayitems[x]
Bytestype : stringPattern :^0x[0-9a-f]*$
deferredLogsBloomHash deferredLogsBloomHash
type : stringPattern :^0x[0-9,a-f,A-F]{64}$
deferredReceiptsRoot deferredReceiptsRoot
type : stringPattern :^0x[0-9,a-f,A-F]{64}$
deferredStateRoot deferredStateRoot
type : stringPattern :^0x[0-9,a-f,A-F]{64}$
difficulty difficulty
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
epochNumber epochNumber
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
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}$
height height
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
miner miner
type : stringPattern :^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
nonce nonce
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
parentHash parentHash
type : stringPattern :^0x[0-9,a-f,A-F]{64}$
posReference posReference
type : stringPattern :^0x[0-9,a-f,A-F]{64}$
powQuality powQuality
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
refereeHashes refereeHashes
type : arrayitems[x]
H256type : stringPattern :^0x[0-9,a-f,A-F]{64}$
size size
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
timestamp timestamp
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]
CfxAccessListItemtype : 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}$
chainId chainId
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
contractCreated contractCreated
type : stringPattern :^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
data data
type : stringPattern :^0x[0-9a-f]*$
epochHeight epochHeight
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
from from
type : stringPattern :^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
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}$
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)$
r r
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
s s
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
space space
type : stringPossible values :native
ethereum
status status
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$
storageLimit storageLimit
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
to to
type : stringPattern :^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
transactionIndex transactionIndex
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|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}$