post https://{network}.unifra.io/v1/
Returns the requested block if the provided pivot hash is correct, returns an error otherwise.
Parameters
- DATA, block hash
- DATA, assumed pivot hash
- QUANTITY, integer epoch number
Returns
Example
Request
curl -X POST \
--data '{"jsonrpc":"2.0","method": "cfx_getBlockByHashWithPivotAssumption",
"params": [
"0x23a6e84d9a24dffc8436e72b0e240688d23e29b8cda0b301ff20baab1573c9fd",
"0x23a6e84d9a24dffc8436e72b0e240688d23e29b8cda0b301ff20baab1573c9fd",
"0x10c3e6e"
],
"id":1}' \
-H "Content-Type: application/json" \
https://cfx-core.unifra.io/v1/ad2eb3c7a9404cc6a35a6641eaf70577
Result
{
"jsonrpc": "2.0",
"result": {
"adaptive": false,
"blame": "0x0",
"blockNumber": "0x28117e5",
"custom": [
"0x01"
],
"deferredLogsBloomHash": "0xd397b3b043d87fcd6fad1291ff0bfd16401c274896d8c63a923727f077b8e0b5",
"deferredReceiptsRoot": "0x1c9e4c6913e56253dd840ed8fb7823b46e5a75b1522212b3464e323787850dfb",
"deferredStateRoot": "0x8f726764e0f86c6a79246a4ed5fb0686e457ed5af4a1f971d8e0063873cebfa3",
"difficulty": "0xb06f836a76",
"epochNumber": "0x10c3e6e",
"gasLimit": "0x1c9c380",
"gasUsed": "0x1ce62",
"hash": "0x23a6e84d9a24dffc8436e72b0e240688d23e29b8cda0b301ff20baab1573c9fd",
"height": "0x10c3e6e",
"miner": "CFX:TYPE.USER:AAMCR303A3P32J0UU3AVUKHMB0MREVJPSU7HEP08JJ",
"nonce": "0x2684000005cdb6d5",
"parentHash": "0x3d9eb6622da15cf990a5b994bda07109b87006c2d9304a084cafb1629701f29b",
"posReference": null,
"powQuality": "0xb2fde57e24",
"refereeHashes": [
"0xa8060293b9691181e4d1e909be316d6b9d40f18df230e781650befb0e9109fa2"
],
"size": "0x1f6",
"timestamp": "0x60cef8dc",
"transactions": [
{
"blockHash": "0x23a6e84d9a24dffc8436e72b0e240688d23e29b8cda0b301ff20baab1573c9fd",
"chainId": "0x405",
"contractCreated": null,
"data": "0x9bd9bbc60000000000000000000000008e45db7d866eb1a54992b24d2a8f45d53998100c0000000000000000000000000000000000000000000000000b1a2bc2ec50000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000101130e9d3b904b18586db51cc2db1559d47610e0000000000000000000000001ea847f89a3dd63e66e29b7b8b60540d84c78d0600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000429d069189e000000000000000000000000000000000000000000000000000006f05b59d3b20000",
"epochHeight": "0x10c3e51",
"from": "CFX:TYPE.USER:AATMUV92XJ87PTXG6MR11C5AMUG2KV6RA21G7PBBRP",
"gas": "0x26882",
"gasPrice": "0x1",
"hash": "0xa2ae4700d3ca272c773628a6bf8c2a7fc794a2d3b27e675107df0f6b1a6cbad7",
"nonce": "0x7",
"r": "0xf0daa3ceb35f38be4a22309f003ae0cbfbfe62473300140a64d3131c64efbe45",
"s": "0x12f7b8248effa5a49eae92b3c1b055e7dcd58f54fb1347958d9acef88490e53",
"status": "0x0",
"storageLimit": "0x80",
"to": "CFX:TYPE.CONTRACT:ACHC8NXJ7R451C223M18W2DWJNMHKD6RXAWRVKVSY2",
"transactionIndex": "0x0",
"v": "0x0",
"value": "0x0"
}
],
"transactionsRoot": "0x6a8520d409d06c9ae425309a54b64ab4893007c022aa4fec19a5b5cfc95dda89"
},
"id": 0
}