本頁面使用機器翻譯自英語,可能包含錯誤或不清楚的語言。如需最準確的信息,請參閱英文原文。由於更新頻繁,部分內容可能與英文原文有出入。請加入我們在 Crowdin 上的努力,幫助我們改進本頁面的翻譯。 (Crowdin translation page, Contributing guide)
[Inspection] debug_startWarmUp
The startWarmUp iterates the latest state trie to warm-up the trie cache. The iteration will be automatically stopped if 90% of the trie cache is full. The method returns an error if it fails in starting a warm-up, or null if it successfully has started it.
JSONRPC: debug_startWarmUp
Request
- application/json
Body
params array
Responses
- 200
Return null if a warm-up is started, or an error if not.
- application/json
- Schema
- Example (from schema)
Schema
error
object
result string
null if a warm-up is started, or an error if not.
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": null
}
- 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": "debug_startWarmUp",
"id": 1,
"jsonrpc": "2.0"
}'
- CURL
curl -L 'https://public-en-kairos.node.kaia.io/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"method": "debug_startWarmUp",
"id": 1,
"jsonrpc": "2.0",
"params": [
null
]
}'
ResponseClear