Skip to main content

getAssetProof RPC Method

Returns the merkle tree proof information for a compressed asset.

Updated on
Sep 20, 2024

getAssetProof RPC Method

Please note that this RPC method requires the Metaplex 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
1
curl https://docs-demo.solana-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"jsonrpc": "2.0","id": 1,"method": "getAssetProof","params": {"id": "D85MZkvir9yQZFDHt8U2ZmS7D3LXKdiSjvw2MBdscJJa"}}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free