cfx_getStatus
Params
(0)Result
(cfx_getStatus_result)bestHash
stringMatch pattern:
^0x[0-9,a-f,A-F]{64}$
blockNumber
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
chainId
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
epochNumber
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
ethereumSpaceChainId
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
latestCheckpoint
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
latestConfirmed
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
latestFinalized
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
latestState
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
networkId
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
pendingTxNumber
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
Example
Request
curl -X POST --data \
'{
"method": "cfx_getStatus",
"params": [],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
localhost:12539
Result
{
"bestHash": "0xe2410e6ee0129c23d5184a88c76fa47fbc785fa55638d02de084fe992347e2e3",
"blockNumber": "0x554667e",
"chainId": "0x1",
"epochNumber": "0x4351317",
"ethereumSpaceChainId": "0x47",
"latestCheckpoint": "0x433bea0",
"latestConfirmed": "0x43512db",
"latestFinalized": "0x43510d4",
"latestState": "0x4351313",
"networkId": "0x1",
"pendingTxNumber": "0xad4"
}