Skip to main content

z_gettreestate RPC Method

Returns information about the Sapling and Orchard note commitment trees at a given block.

Updated on
Apr 29, 2026

Parameters

hash_or_height
string
REQUIRED

The block hash or height.

Returns

hash
string

The block hash

height
integer

The block height

time
integer

The block time in UNIX epoch

sapling
object

Sapling tree state information

commitments
object

The Sapling note commitment tree state

orchard
object

Orchard tree state information

commitments
object

The Orchard note commitment tree state

error
string

(Optional) The error message, if any

Request
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