Skip to main content

getAssetProof RPC Method

Returns the merkle tree proof information for a compressed asset.

Updated on
Oct 23, 2024

getAssetProof RPC Method

Please note that this RPC method requires the Solana DAS (Digital Asset Standard) API add-on enabled on your QuickNode endpoint.
Solana Web3.js 2.0 includes the ability to customize RPC methods and transports, allowing you to seamlessly integrate QuickNode Marketplace add-ons into your applications. For more information on how to use QuickNode Marketplace add-ons with Solana Web3.js 2.0, check out these guides: How to Use QuickNode Add-ons using Solana Web3.js 2.0 (Part 1) and How to Use QuickNode Add-ons using Solana Web3.js 2.0 (Part 2)

Parameters

id
string
REQUIRED
The id of the asset

Returns

result
object
The merkle tree proof information about the specified asset:
root
string
The root
proof
array of strings
The asset proof
node_index
integer
The node index of the asset
leaf
string
The leaf of the asset
tree_id
string
The merkle tree id of the asset
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free