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 adaptivetype : boolean
- baseFeePerGas baseFeePerGastype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- blame blametype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,15}|0)$
- blockNumber blockNumbertype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- custom customtype : array- items[x]Bytestype : stringPattern :- ^0x[0-9a-f]*$
 
- deferredLogsBloomHash deferredLogsBloomHashtype : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
- deferredReceiptsRoot deferredReceiptsRoottype : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
- deferredStateRoot deferredStateRoottype : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
- difficulty difficultytype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- epochNumber epochNumbertype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- gasLimit gasLimittype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- gasUsed gasUsedtype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- hash hashtype : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
- height heighttype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- miner minertype : stringPattern :- ^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
- nonce noncetype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- parentHash parentHashtype : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
- posReference posReferencetype : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
- powQuality powQualitytype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- refereeHashes refereeHashestype : array- items[x]H256type : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
 
- size sizetype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- timestamp timestamptype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- transactions transactionsoneOf- (H256,...)[]
- (Transaction,...)[]
 type : array- items[x]H256type : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
 type : array- items[x]Transactiontype : object- accessList accessListtype : array- items[x]CfxAccessListItemtype : object- address addresstype : stringPattern :- ^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
- storageKeys storageKeystype : array- items[x]H256type : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
 
 
 
- blockHash blockHashtype : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
- chainId chainIdtype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- contractCreated contractCreatedtype : stringPattern :- ^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
- data datatype : stringPattern :- ^0x[0-9a-f]*$
- epochHeight epochHeighttype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- from fromtype : stringPattern :- ^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
- gas gastype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- gasPrice gasPricetype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- hash hashtype : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
- maxFeePerGas maxFeePerGastype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- maxPriorityFeePerGas maxPriorityFeePerGastype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- nonce noncetype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- r rtype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- s stype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- space spacetype : stringPossible values :- native
- ethereum
 
- status statustype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,15}|0)$
- storageLimit storageLimittype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- to totype : stringPattern :- ^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
- transactionIndex transactionIndextype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,15}|0)$
- transactionType transactionTypetype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,15}|0)$
- v vtype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- value valuetype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- yParity yParitytype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,15}|0)$
 
 
- transactionsRoot transactionsRoottype : stringPattern :- ^0x[0-9,a-f,A-F]{64}$