getAssetProofs 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
ids
array of strings
REQUIRED
The ids of the assets
Returns
result
array of objects
An array of objects containing the merkle tree proof information about the specified assets:
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
1curl https://docs-demo.solana-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"jsonrpc": "2.0","id": 1,"method": "getAssetProofs","params": {"ids": ["D85MZkvir9yQZFDHt8U2ZmS7D3LXKdiSjvw2MBdscJJa", "7NyFs3hmQjqJkp88mUMuKTWuMxhhPMbfpb948qn7JxWH"]}}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free