helius_get_signatures_for_asset
Retrieve transaction signatures linked to a specific asset on the Solana blockchain using the Helius API, enabling detailed blockchain data analysis and tracking.
Instructions
Get signatures associated with an asset
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| limit | No | ||
| page | No |
Implementation Reference
- src/handlers/helius.ts:429-442 (handler)Main handler function implementing the tool logic using Helius RPC's getSignaturesForAsset method.export const getSignaturesForAssetHandler = async (input: GetSignaturesForAssetInput): Promise<ToolResultSchema> => { try { // Fix the parameter type mismatch const params = { id: input.id, page: input.page || 1, // Default to page 1 if not provided limit: input.limit || 10 // Default to 10 if not provided }; const signatures = await (helius as any as Helius).rpc.getSignaturesForAsset(params); return createSuccessResponse(`Signatures for asset: ${JSON.stringify(signatures, null, 2)}`); } catch (error) { return createErrorResponse(`Error getting signatures for asset: ${error instanceof Error ? error.message : String(error)}`); } }
- src/tools.ts:410-422 (schema)Tool definition including name, description, and input schema for validation.{ name: 'helius_get_signatures_for_asset', description: 'Get signatures associated with an asset', inputSchema: { type: 'object', properties: { id: { type: 'string' }, page: { type: 'number' }, limit: { type: 'number' } }, required: ['id'] } },
- src/tools.ts:581-581 (registration)Registration of the tool name to its handler function in the handlers dictionary."helius_get_signatures_for_asset": helius.getSignaturesForAssetHandler,