Skip to main content
POST
getMerkleProofs

Inclusion Proofs

Supply between 1 and 1,000 commitments from the same state tree. Each leaf must encode a BN254 scalar field element. Use the tree and commitment returned with an encrypted output. Proofs follow the order of the requested leaves. Each proof includes the sibling path, leafIndex, root, rootSeq, and rootIndex. For state trees, rootSeq is the completed Solana slot used for proof freshness. rootIndex is the root’s position in the Solana account’s root history; it cannot be calculated from the slot. If the indexed root has expired from the root history, retry after the indexer catches up. The SDK handles proof assembly for wallet operations.

Request Parameters

array
required
State tree commitments encoded as base58 32-byte BN254 scalar field elements.
string
required
State tree account containing the commitments.

Authorizations

api-key
string
query
required

Your Helius API key.

Body

application/json
id
string
default:1
required

An ID to identify the request.

jsonrpc
enum<string>
default:2.0
required

The JSON-RPC protocol version.

Available options:
2.0
method
enum<string>
default:getMerkleProofs
required

The method to invoke. Must match the final URL path segment.

Available options:
getMerkleProofs
params
object
required
Example:

Response

JSON-RPC response. Inspect error before reading result.

id
string
required

The request ID.

jsonrpc
enum<string>
required

The version of the JSON-RPC protocol.

Available options:
2.0
error
object
result
object