helius_get_asset_proof
Get cryptographic proof for a digital asset on Solana by providing its asset ID. Verify authenticity and ownership.
Instructions
Get proof for a digital asset
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- src/handlers/helius.ts:347-354 (handler)The handler function that executes the asset proof logic via the Helius SDK's rpc.getAssetProof method
export const getAssetProofHandler = async (input: { id: string }): Promise<ToolResultSchema> => { try { const proof = await (helius as any as Helius).rpc.getAssetProof({ id: input.id }); return createSuccessResponse(`Asset proof: ${JSON.stringify(proof, null, 2)}`); } catch (error) { return createErrorResponse(`Error getting asset proof: ${error instanceof Error ? error.message : String(error)}`); } } - src/handlers/helius.types.ts:179-181 (schema)Type definition for the input to getAssetProof
export type GetAssetProofInput = { id: string; } - src/tools.ts:308-317 (schema)Tool registration schema definition for helius_get_asset_proof
{ name: 'helius_get_asset_proof', description: 'Get proof for a digital asset', inputSchema: { type: 'object', properties: { id: { type: 'string' } }, required: ['id'] } - src/tools.ts:575-575 (registration)Registration mapping the tool name to the handler function
"helius_get_asset_proof": helius.getAssetProofHandler, - src/handlers/helius-mock.ts:442-450 (helper)Mock implementation of getAssetProof for testing
getAssetProof: async (params: { id: string }) => { return { root: "MockRoot", proof: ["MockProof1", "MockProof2"], node_index: 123, leaf: "MockLeaf", tree_id: "MockTreeId" }; }, - src/handlers/helius-mock.ts:49-49 (helper)Interface definition for the getAssetProof RPC method on HeliusClient
getAssetProof: (params: { id: string }) => Promise<any>;