Skip to main content

debug_dumpStateTrie RPC Method

Retrieves all state/storage tries of the given state root.

Updated on
Aug 7, 2024

debug_dumpStateTrie RPC Method

Parameters

blockNumber
string
REQUIRED
The block number

Returns

root
string
The root hash of the trie structure
tries
object
An array of trie node objects which contains the following fields:
type
string
The type of trie node.
hash
string
The hash value of the trie node
parent
string
The hash value of the parent node.
path
string
The path to the node in the trie
Request
1
curl https://docs-demo.kaia-kairos.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{
5
"method": "debug_dumpStateTrie",
6
"id": 1,
7
"jsonrpc": "2.0",
8
"params": ["0x80"]
9
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free