跳到主要内容

cfx_getStatus

Params

(0)

Result

(cfx_getStatus_result)
bestHash
string
Match pattern:
^0x[0-9,a-f,A-F]{64}$
blockNumber
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
chainId
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
epochNumber
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
ethereumSpaceChainId
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
latestCheckpoint
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
latestConfirmed
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
latestFinalized
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
latestState
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
networkId
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
pendingTxNumber
string
Match 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"
}

Endpoint

Request

curl -X POST --data \
'{
"method": "cfx_getStatus",
"params": [],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
https://test.confluxrpc.com