helius_get_asset_proof
Retrieve proof for a specific digital asset on the Solana blockchain using the Helius API. Verify asset authenticity and ownership with ease.
Instructions
Get proof for a digital asset
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
}
Implementation Reference
- src/handlers/helius.ts:347-354 (handler)Primary handler function implementing the logic for 'helius_get_asset_proof'. Calls Helius RPC's getAssetProof method with the provided asset ID and returns a success or error response.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/tools.ts:308-318 (schema)Tool schema defining the input structure (requires 'id' string) and description 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 of the handler function in the central handlers dictionary, mapping the tool name to helius.getAssetProofHandler."helius_get_asset_proof": helius.getAssetProofHandler,