本頁面使用機器翻譯自英語,可能包含錯誤或不清楚的語言。如需最準確的信息,請參閱英文原文。由於更新頻繁,部分內容可能與英文原文有出入。請加入我們在 Crowdin 上的努力,幫助我們改進本頁面的翻譯。 (Crowdin translation page, Contributing guide)
[Block] kaia_syncing
Returns an object with data about the sync status or false.
JSONRPC: kaia_syncing
Request
- application/json
Body
params array
Responses
- 200
Returns Object|Boolean, an object with sync status data or false when not syncing
- application/json
- Schema
- Example (from schema)
Schema
- SyncingObject
- MOD2
error
object
result
object
oneOf
startingBlock hexrequired
The block at which the import started (will only be reset, after the sync reached his head).
currentBlock hexrequired
The current block, same as kaia_blockNumber.
highestBlock hexrequired
The estimated highest block.
pulledStates hexrequired
The number of state entries processed until now. If the sync mode is not "fast", zero is returned.
knownStates hexrequired
The number of known state entries that still need to be pulled. If the sync mode is not "fast", zero is returned.
boolean
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": {
"currentBlock": "0x3e31e",
"highestBlock": "0x827eef",
"knownStates": "0x0",
"pulledStates": "0x0",
"startingBlock": "0x0"
}
}
- curl
- python
- nodejs
- java
- Curl
curl -X 'POST' \
'https://public-en-kairos.node.kaia.io/kaia/syncing' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"method": "kaia_syncing",
"id": 1,
"jsonrpc": "2.0",
"params": []
}'
- CURL
curl -L 'https://public-en-kairos.node.kaia.io/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"method": "kaia_syncing",
"id": 1,
"jsonrpc": "2.0",
"params": [
null
]
}'
ResponseClear