[Inspection] debug_setHead
Sets the current head of the local chain by block number.
WARNING: This API is not yet implemented and always returns "not yet implemented API" error.
NOTE: This is a destructive action and may severely damage your chain. Use with extreme caution.
JSONRPC: debug_setHead
Request
- application/json
Body
params number (string)[]
The block number in hexadecimal string.
Responses
- 200
Return "not yet implemented API" error.
- application/json
- Schema
- Example (from schema)
Schema
error
object
result string
{
"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_setHead",
"id": 1,
"jsonrpc": "2.0",
"params": ["0x100"]
}'
- CURL
curl -L 'https://public-en-kairos.node.kaia.io/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"method": "debug_setHead",
"id": 1,
"jsonrpc": "2.0",
"params": [
"0x100"
]
}'
ResponseClear