cfx_getBlockByEpochNumber
Returns block with given epoch number.
- 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": ["latest_mined",false],
  "method": "cfx_getBlockByEpochNumber"
}'
Params
epoch_number required
Represents rpc api epoch number param.
oneOf
- U64
- string
type : string
Pattern : 
^0x([1-9a-f][0-9a-f]{0,15}|0)$type : string
Possible values : 
- earliest
- latest_checkpoint
- latest_finalized
- latest_confirmed
- latest_state
- latest_mined
include_txs required
Schema
type : boolean
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}$
Examples
- cfx_getBlockByEpochNumber
- cfx_getBlockByEpochNumber
- cfx_getBlockByEpochNumber
- cfx_getBlockByEpochNumber
- cfx_getBlockByEpochNumber
- cfx_getBlockByEpochNumber
- cfx_getBlockByEpochNumber
- cfx_getBlockByEpochNumber
- cfx_getBlockByEpochNumber
Request
curl -X POST --data \
'{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "cfx_getBlockByEpochNumber",
    "params": [
        "latest_mined"
    ]
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
{
  "adaptive": false,
  "baseFeePerGas": "0x3b9aca00",
  "blame": "0x0",
  "blockNumber": "0x5546676",
  "custom": [
    "0x01"
  ],
  "deferredLogsBloomHash": "0xd397b3b043d87fcd6fad1291ff0bfd16401c274896d8c63a923727f077b8e0b5",
  "deferredReceiptsRoot": "0x09f8709ea9f344a810811a373b30861568f5686e649d6177fd92ea2db7477508",
  "deferredStateRoot": "0x9207d655134e154139fbbbc21a604df20006e9bc823a4d5aa98a4f908eff8cae",
  "difficulty": "0x30398df",
  "epochNumber": "0x4351312",
  "gasLimit": "0x1c9c380",
  "gasUsed": "0x0",
  "hash": "0xa7ae72a6d198e2f4bb53cc39216239bab7e7e54f77ff14a858ac2a367db20b27",
  "height": "0x4351312",
  "miner": "CFXTEST:TYPE.USER:AANG4D91REJDBPGMGTMSPDYEFXKUBJ2BBYWRWM9J3Z",
  "nonce": "0x50fbbc4eed19a17f",
  "parentHash": "0xc3e749973910ba91c25298c82bbefcd6a1f81058bcb4d5199fdb668c5bedb8b2",
  "posReference": "0x15d1f8229af27823a143410127f88bcbd8fb686a35c9a216c545dff74b5b13f6",
  "powQuality": "0x5071249",
  "refereeHashes": [
    "0xb2f6aae3385d277fb22a98748d1ebedd7d44759a2dc91a22a0a2af8f3cca5a58"
  ],
  "size": "0x0",
  "timestamp": "0x624e609a",
  "transactions": [],
  "transactionsRoot": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
}
Request
curl -X POST --data \
'{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "cfx_getBlockByEpochNumber",
    "params": [
        "latest_mined",
        true
    ]
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
{
  "adaptive": false,
  "baseFeePerGas": "0x3b9aca00",
  "blame": "0x0",
  "blockNumber": "0x5546676",
  "custom": [
    "0x01"
  ],
  "deferredLogsBloomHash": "0xd397b3b043d87fcd6fad1291ff0bfd16401c274896d8c63a923727f077b8e0b5",
  "deferredReceiptsRoot": "0x09f8709ea9f344a810811a373b30861568f5686e649d6177fd92ea2db7477508",
  "deferredStateRoot": "0x9207d655134e154139fbbbc21a604df20006e9bc823a4d5aa98a4f908eff8cae",
  "difficulty": "0x30398df",
  "epochNumber": "0x4351312",
  "gasLimit": "0x1c9c380",
  "gasUsed": "0x0",
  "hash": "0xa7ae72a6d198e2f4bb53cc39216239bab7e7e54f77ff14a858ac2a367db20b27",
  "height": "0x4351312",
  "miner": "CFXTEST:TYPE.USER:AANG4D91REJDBPGMGTMSPDYEFXKUBJ2BBYWRWM9J3Z",
  "nonce": "0x50fbbc4eed19a17f",
  "parentHash": "0xc3e749973910ba91c25298c82bbefcd6a1f81058bcb4d5199fdb668c5bedb8b2",
  "posReference": "0x15d1f8229af27823a143410127f88bcbd8fb686a35c9a216c545dff74b5b13f6",
  "powQuality": "0x5071249",
  "refereeHashes": [
    "0xb2f6aae3385d277fb22a98748d1ebedd7d44759a2dc91a22a0a2af8f3cca5a58"
  ],
  "size": "0x0",
  "timestamp": "0x624e609a",
  "transactions": [],
  "transactionsRoot": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
}
Request
curl -X POST --data \
'{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "cfx_getBlockByEpochNumber",
    "params": [
        "latest_state"
    ]
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
{
  "adaptive": false,
  "baseFeePerGas": "0x3b9aca00",
  "blame": "0x0",
  "blockNumber": "0x554666f",
  "custom": [
    "0x01"
  ],
  "deferredLogsBloomHash": "0x95ec89519d95ac7c7fac2c4c98da676d58a3d7c6f715eb99a6b79b4ae9681115",
  "deferredReceiptsRoot": "0x734591ae645d5f240907b139f841e67e6c3573883dab1886d225a67f114d56f0",
  "deferredStateRoot": "0x771256e2b1d5904a3d48cf42ca47eeae40cca7dc2e0e56945ebc4da11c8b8807",
  "difficulty": "0x30398df",
  "epochNumber": "0x435130e",
  "gasLimit": "0x1c9c380",
  "gasUsed": "0x0",
  "hash": "0xf1dc13c43748bb6497efa7286415028ab6a109d153f74733c5a990ea6fc2f3d3",
  "height": "0x435130e",
  "miner": "CFXTEST:TYPE.USER:AASKVGXCFEJ371G4ECEPX9AN78NGRKE5AY9F8JTBGG",
  "nonce": "0x264bc52150ce93c5",
  "parentHash": "0x861c0df7709d2539a5d441994883e4328116f1a588c2bf49e6ce3357b4b02610",
  "posReference": "0x15d1f8229af27823a143410127f88bcbd8fb686a35c9a216c545dff74b5b13f6",
  "powQuality": "0xd850065",
  "refereeHashes": [],
  "size": "0x0",
  "timestamp": "0x624e6097",
  "transactions": [],
  "transactionsRoot": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
}
Request
curl -X POST --data \
'{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "cfx_getBlockByEpochNumber",
    "params": [
        "latest_state",
        true
    ]
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
{
  "adaptive": false,
  "baseFeePerGas": "0x3b9aca00",
  "blame": "0x0",
  "blockNumber": "0x554666f",
  "custom": [
    "0x01"
  ],
  "deferredLogsBloomHash": "0x95ec89519d95ac7c7fac2c4c98da676d58a3d7c6f715eb99a6b79b4ae9681115",
  "deferredReceiptsRoot": "0x734591ae645d5f240907b139f841e67e6c3573883dab1886d225a67f114d56f0",
  "deferredStateRoot": "0x771256e2b1d5904a3d48cf42ca47eeae40cca7dc2e0e56945ebc4da11c8b8807",
  "difficulty": "0x30398df",
  "epochNumber": "0x435130e",
  "gasLimit": "0x1c9c380",
  "gasUsed": "0x0",
  "hash": "0xf1dc13c43748bb6497efa7286415028ab6a109d153f74733c5a990ea6fc2f3d3",
  "height": "0x435130e",
  "miner": "CFXTEST:TYPE.USER:AASKVGXCFEJ371G4ECEPX9AN78NGRKE5AY9F8JTBGG",
  "nonce": "0x264bc52150ce93c5",
  "parentHash": "0x861c0df7709d2539a5d441994883e4328116f1a588c2bf49e6ce3357b4b02610",
  "posReference": "0x15d1f8229af27823a143410127f88bcbd8fb686a35c9a216c545dff74b5b13f6",
  "powQuality": "0xd850065",
  "refereeHashes": [],
  "size": "0x0",
  "timestamp": "0x624e6097",
  "transactions": [],
  "transactionsRoot": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
}
Request
curl -X POST --data \
'{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "cfx_getBlockByEpochNumber",
    "params": [
        "0x0"
    ]
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
{
  "adaptive": false,
  "baseFeePerGas": "0x3b9aca00",
  "blame": "0x0",
  "blockNumber": "0x0",
  "custom": [],
  "deferredLogsBloomHash": "0xd397b3b043d87fcd6fad1291ff0bfd16401c274896d8c63a923727f077b8e0b5",
  "deferredReceiptsRoot": "0x09f8709ea9f344a810811a373b30861568f5686e649d6177fd92ea2db7477508",
  "deferredStateRoot": "0x054fc20df63975d1e2d8ecf16e9ff05af4e07ed2c08f4351b63705e6dbea45e4",
  "difficulty": "0x0",
  "epochNumber": "0x0",
  "gasLimit": "0x1c9c380",
  "gasUsed": null,
  "hash": "0x3fb9d350f95424c3c27fcf248d9a6f633a83c2a75c11ef887ea41540c85e7804",
  "height": "0x0",
  "miner": "CFXTEST:TYPE.USER:AAPYWAAAAAAAAAAAAAAAAAAAAAAAAAAUAEUTRS455H",
  "nonce": "0x0",
  "parentHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
  "posReference": null,
  "powQuality": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
  "refereeHashes": [],
  "size": "0x5ac4",
  "timestamp": "0x0",
  "transactions": [
    "0x920b424d2749976d4a3c3d6fa8ee3737eb2de62d9163c3f10fe2ca4e883524b9",
    "0xc15b3d55335b6f0eda2ec8699902f18e0ae7283b36d79199241d868156dd68e5",
    "0xda8fd6dbd1812dd0d67c8c1d2328666b0416011bc1e936eb3cafc0b4bd767c36",
    "0x261b30b6c5329c562da773564b6ef0e153981990f18a0ee94d087bf02ec17377",
    "0x5666efdd98185249696a5d47b6390f2d38795cf9612eb786505ba626d49a43a8",
    "0x4e93173b112bd1c6ed03e5502467c0cf513dc425b59fe07f09669e5f6167d154",
    "0x1f57de048519303c6ece8d9dfc38d531558d8715103945d5db66bb0cfb881b05",
    "0x691007a83c57ccf7c248d4db72332ace9c9f72e64c023eb9afaf3227335e397b"
  ],
  "transactionsRoot": "0x9b2685bd3aa9be146797496f7efa9053c6e247d67ffdfab6a5c977a2859dd2fd"
}
Request
curl -X POST --data \
'{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "cfx_getBlockByEpochNumber",
    "params": [
        "0x0",
        true
    ]
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
{
  "adaptive": false,
  "baseFeePerGas": "0x3b9aca00",
  "blame": "0x0",
  "blockNumber": "0x0",
  "custom": [],
  "deferredLogsBloomHash": "0xd397b3b043d87fcd6fad1291ff0bfd16401c274896d8c63a923727f077b8e0b5",
  "deferredReceiptsRoot": "0x09f8709ea9f344a810811a373b30861568f5686e649d6177fd92ea2db7477508",
  "deferredStateRoot": "0x054fc20df63975d1e2d8ecf16e9ff05af4e07ed2c08f4351b63705e6dbea45e4",
  "difficulty": "0x0",
  "epochNumber": "0x0",
  "gasLimit": "0x1c9c380",
  "gasUsed": null,
  "hash": "0x3fb9d350f95424c3c27fcf248d9a6f633a83c2a75c11ef887ea41540c85e7804",
  "height": "0x0",
  "miner": "CFXTEST:TYPE.USER:AAPYWAAAAAAAAAAAAAAAAAAAAAAAAAAUAEUTRS455H",
  "nonce": "0x0",
  "parentHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
  "posReference": null,
  "powQuality": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
  "refereeHashes": [],
  "size": "0x5ac4",
  "timestamp": "0x0",
  "transactions": [
    {
      "accessList": [],
      "blockHash": "0xffdf46d2c1381a0c6ce663ab1a8e84b9668a33b383aca327786f78ee98caa833",
      "chainId": "0x22b8",
      "contractCreated": null,
      "data": "0x",
      "epochHeight": "0x27902",
      "from": "CFXTEST:TYPE.USER:AAPYWAAAAAAAAAAAAAAAAAAAAAAAAAAUAEUTRS455H",
      "gas": "0x5208",
      "gasPrice": "0x4f790d55",
      "hash": "0x5d7efbbce49cb1740b2befc91a1131b86d336b1ea9058a9291da5ed3b510eadf",
      "maxFeePerGas": "0x4f790d55",
      "maxPriorityFeePerGas": "0x0",
      "nonce": "0x0",
      "r": "0xb4ee4c27376de9d1c3619b966a73e06b17169252215a94755b94924b88fec8df",
      "s": "0xf45e212cf24b20518522716dc4b6070f3848407fc1a9d7512e2bba246515b46",
      "status": "0x0",
      "storageLimit": "0x0",
      "to": "CFXTEST:TYPE.USER:AAPYWAAAAAAAAAAAAAAAAAAAAAAAAAAUAEUTRS455H",
      "transactionIndex": "0x0",
      "type": "0x2",
      "v": "0x1",
      "value": "0xde0b6b3a7640000",
      "yParity": "0x1"
    },
    {
      "accessList": [],
      "blockHash": "0x08659936ca25de4ac0e50555918941f45dbb9de8d867aa2ae5289a829ee0ad0c",
      "chainId": "0x22b8",
      "contractCreated": null,
      "data": "0x",
      "epochHeight": "0x27bc2",
      "from": "CFXTEST:TYPE.USER:AAPYWAAAAAAAAAAAAAAAAAAAAAAAAAAUAEUTRS455H",
      "gas": "0x5208",
      "gasPrice": "0x4f790d55",
      "hash": "0x1b6a88dc91c1870f05242ee2121c36a9a16a736b510634f1c664bcd2cc02909b",
      "maxFeePerGas": "0x4f790d55",
      "maxPriorityFeePerGas": "0x0",
      "nonce": "0x1",
      "r": "0x9d08a7f2189e8be844eb0fc0e695c84eac29f40653a9dab11360497793390e22",
      "s": "0x1f712887d60b595eb73b71973dc3e17fd5978d5401532f6e15746d57ac834fb0",
      "status": "0x0",
      "storageLimit": "0x0",
      "to": "CFXTEST:TYPE.USER:AAPYWAAAAAAAAAAAAAAAAAAAAAAAAAAUAEUTRS455H",
      "transactionIndex": "0x0",
      "type": "0x2",
      "v": "0x1",
      "value": "0xde0b6b3a7640000",
      "yParity": "0x1"
    }
  ],
  "transactionsRoot": "0x9b2685bd3aa9be146797496f7efa9053c6e247d67ffdfab6a5c977a2859dd2fd"
}
Request
curl -X POST --data \
'{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "cfx_getBlockByEpochNumber",
    "params": [
        "0x10000"
    ]
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
{
  "adaptive": false,
  "baseFeePerGas": "0x3b9aca00",
  "blame": "0x0",
  "blockNumber": "0x15fd7",
  "custom": [],
  "deferredLogsBloomHash": "0xd397b3b043d87fcd6fad1291ff0bfd16401c274896d8c63a923727f077b8e0b5",
  "deferredReceiptsRoot": "0x09f8709ea9f344a810811a373b30861568f5686e649d6177fd92ea2db7477508",
  "deferredStateRoot": "0xe6814ee4a871d9a9c899af769a7a1c7cad391f70cabbc98486be3063087066a9",
  "difficulty": "0x1129407",
  "epochNumber": "0x10000",
  "gasLimit": "0x1c9c380",
  "gasUsed": "0x0",
  "hash": "0xb42d78d24392d4a18204343fd974a40141468b56377456de630d9e19458b6213",
  "height": "0x10000",
  "miner": "CFXTEST:TYPE.USER:AAPPVU8SY0Z9EXV3R4B0BT5F04GZ3A6DD2DHW24NYJ",
  "nonce": "0x1fb9a4",
  "parentHash": "0xb3a25529570e0f4ee3e88532e1bbef90f837037cd42f770239227e89a8eba42e",
  "posReference": null,
  "powQuality": "0x2c3e505",
  "refereeHashes": [],
  "size": "0x0",
  "timestamp": "0x5f9cb8d3",
  "transactions": [],
  "transactionsRoot": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
}
Request
curl -X POST --data \
'{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "cfx_getBlockByEpochNumber",
    "params": [
        "0x10000",
        true
    ]
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
{
  "adaptive": false,
  "baseFeePerGas": "0x3b9aca00",
  "blame": "0x0",
  "blockNumber": "0x15fd7",
  "custom": [],
  "deferredLogsBloomHash": "0xd397b3b043d87fcd6fad1291ff0bfd16401c274896d8c63a923727f077b8e0b5",
  "deferredReceiptsRoot": "0x09f8709ea9f344a810811a373b30861568f5686e649d6177fd92ea2db7477508",
  "deferredStateRoot": "0xe6814ee4a871d9a9c899af769a7a1c7cad391f70cabbc98486be3063087066a9",
  "difficulty": "0x1129407",
  "epochNumber": "0x10000",
  "gasLimit": "0x1c9c380",
  "gasUsed": "0x0",
  "hash": "0xb42d78d24392d4a18204343fd974a40141468b56377456de630d9e19458b6213",
  "height": "0x10000",
  "miner": "CFXTEST:TYPE.USER:AAPPVU8SY0Z9EXV3R4B0BT5F04GZ3A6DD2DHW24NYJ",
  "nonce": "0x1fb9a4",
  "parentHash": "0xb3a25529570e0f4ee3e88532e1bbef90f837037cd42f770239227e89a8eba42e",
  "posReference": null,
  "powQuality": "0x2c3e505",
  "refereeHashes": [],
  "size": "0x0",
  "timestamp": "0x5f9cb8d3",
  "transactions": [],
  "transactionsRoot": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
}
Request
curl -X POST --data \
'{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "cfx_getBlockByEpochNumber",
    "params": [
        "0x111111111111111111111"
    ]
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
{
  "code": -32602,
  "message": "Invalid params: Invalid epoch number: number too large to fit in target type."
}