本頁面使用機器翻譯自英語,可能包含錯誤或不清楚的語言。如需最準確的信息,請參閱英文原文。由於更新頻繁,部分內容可能與英文原文有出入。請加入我們在 Crowdin 上的努力,幫助我們改進本頁面的翻譯。 (Crowdin translation page, Contributing guide)
[Configuration] klay_isParallelDBWrite
Returns true if the node is writing blockchain data in parallel manner. It is enabled by default.
JSONRPC: klay_isParallelDBWrite
Request
- application/json
Body
params array
Responses
- 200
Returns true if the node is writing blockchain data in parallel manner.
- application/json
- Schema
- Example (from schema)
Schema
error
object
result boolean
true means the node is writing blockchain data in parallel manner. It is false if the node is writing the data in serial manner.
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": true
}
- curl
- python
- nodejs
- java
- Curl
curl -X 'POST' \
'https://public-en-kairos.node.kaia.io' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"method": "klay_isParallelDBWrite",
"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": "klay_isParallelDBWrite",
"id": 1,
"jsonrpc": "2.0",
"params": [
null
]
}'
ResponseClear