Skip to main content
POST
getAssetProof
Pass the compressed NFT’s asset id as id. The response holds the current root, the leaf hash, the tree_id, the leaf’s node_index and the proof path.
  • Accepted method names: getAssetProof and get_asset_proof.
  • proof lists one sibling hash per tree level, from the leaf level up to just below the root. The full path is returned; drop the entries the tree’s canopy already stores before you add them to a transaction.
  • An id that is not a compressed NFT, or whose tree is not yet fully indexed, returns -32000 with RecordNotFound Error: Asset Proof Not Found. A proof is only returned when its path leads to the recorded root.
  • Proofs change whenever any leaf in the same tree changes. Fetch the proof right before you build the transaction.
  • Cost: 1 credit. Counts against your plan’s DAS RPS limit.
To fetch many proofs at once, use getAssetProofs. See the DAS API overview. Request setup and error handling: RPC quickstart. Billing: credits and limits.

Authorizations

api_key
string
query
required

Body

application/json
jsonrpc
enum<string>
required

The JSON-RPC protocol version.

Available options:
2.0
Example:

"2.0"

id
string
required

A unique identifier for the request.

Example:

"1"

method
enum<string>
required

The name of the RPC method to invoke.

Available options:
getAssetProof
Example:

"getAssetProof"

params
object
required

Named parameters.

Response

The proof.

jsonrpc
enum<string>

The JSON-RPC protocol version.

Available options:
2.0
Example:

"2.0"

id
string

Identifier matching the request.

Example:

"1"

result
object

Merkle proof for a compressed NFT leaf.