pruningtriestateadmin namespace
admin_prune
Runs full pruning if enabled.
- Request
- Response
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "admin_prune",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: integer
admin_verifyTrie
Runs VerifyTrie.
- Parameters
- Request
- Response
block
: string (block number or hash or either ofearliest
,finalized
,latest
,pending
, orsafe
)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "admin_verifyTrie",
"params": [block]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: string