Skip to main content

z_gettreestate RPC Method

Loading...

Updated on
Apr 29, 2026

z_gettreestate RPC Method

Parameters

hash_or_height
string
REQUIRED
Loading...

Returns

hash
string
Loading...
height
integer
Loading...
time
integer
Loading...
sapling
object
Loading...
commitments
object
Loading...
orchard
object
Loading...
commitments
object
Loading...
error
string
Loading...
Request
1
curl -X POST "https://docs-demo.zec-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "z_gettreestate",
6
"params": [
7
"0000000b70480327694608408728c65c1f1a300bfe705b01baca0f5504092e1b"
8
],
9
"id": 1
10
}'
1
curl -X POST "https://docs-demo.zec-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "z_gettreestate",
6
"params": [
7
"0000000b70480327694608408728c65c1f1a300bfe705b01baca0f5504092e1b"
8
],
9
"id": 1
10
}'
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"hash": "0000000b70480327694608408728c65c1f1a300bfe705b01baca0f5504092e1b",
6
"height": 1000,
7
"time": 1477750705,
8
"sapling": {
9
"commitments": {}
10
},
11
"orchard": {
12
"commitments": {}
13
}
14
}
15
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"hash": "0000000b70480327694608408728c65c1f1a300bfe705b01baca0f5504092e1b",
6
"height": 1000,
7
"time": 1477750705,
8
"sapling": {
9
"commitments": {}
10
},
11
"orchard": {
12
"commitments": {}
13
}
14
}
15
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free