Log In

cfx_getStatus - Conflux

Returns the node status.

Parameters

  • none

Returns

  • bestHash: DATA - hash of the latest epoch's pivot block
  • blockNumber: QUANTITY - total block number
  • chainId: QUANTITY - chainId
  • networkId: QUANTITY - networkId
  • ethereumSpaceChainId: QUANTITY - eSpace's chainId (Added from v2.0)
  • epochNumber: QUANTITY - latest epoch number
  • latestCheckpoint: QUANTITY - latest checkpoint epoch number
  • latestConfirmed: QUANTITY - latest confirmed epoch number
  • latestFinalized: QUANTITY - latest finallized epoch number (Added from v2.0)
  • latestState: QUANTITY - latest state epoch number
  • pendingTxNumber: QUANTITY - current pending transaction count

Example

Request

curl -X POST \
--data '{"jsonrpc":"2.0","method": "cfx_getStatus",
 "id":1}' \
-H "Content-Type: application/json" \
https://cfx-core.unifra.io/v1/ad2eb3c7a9404cc6a35a6641eaf70577 


Result

{
    "jsonrpc": "2.0",
    "result": {
        "bestHash": "0xfb0ec9a228efa89e736bd68b67c640786a48c259d3f449d3e4d13241a4b59d97",
        "blockNumber": "0x75405dd",
        "chainId": "0x405",
        "epochNumber": "0x31f1113",
        "ethereumSpaceChainId": "0x406",
        "latestCheckpoint": "0x31e08e0",
        "latestConfirmed": "0x31f10e0",
        "latestFinalized": "0x31f0f74",
        "latestState": "0x31f110f",
        "networkId": "0x405",
        "pendingTxNumber": "0x35"
    },
    "id": 0
}
Language
Click Try It! to start a request and see the response here!