Skip to main content

getAssetProof RPC Method

Returns the merkle tree proof information for a compressed asset.

Updated on
Jan 17, 2024

getAssetProof RPC Method

Please note that this RPC method requires the Metaplex Digital Asset Standard API add-on enabled on your QuickNode endpoint.

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