helius_get_asset
Retrieve detailed information about a specific digital asset on the Solana blockchain using its unique identifier.
Instructions
Get details of a digital asset by its ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- src/handlers/helius.ts:320-327 (handler)The main handler function that executes the tool logic by calling the Helius SDK's getAsset method with the provided asset ID and formatting the response.export const getAssetHandler = async (input: { id: string }): Promise<ToolResultSchema> => { try { const asset = await (helius as any as Helius).rpc.getAsset(input.id); return createSuccessResponse(`Asset details: ${JSON.stringify(asset, null, 2)}`); } catch (error) { return createErrorResponse(`Error getting asset: ${error instanceof Error ? error.message : String(error)}`); } }
- src/tools.ts:276-284 (schema)Defines the tool's name, description, and input schema (requiring an 'id' string).name: 'helius_get_asset', description: 'Get details of a digital asset by its ID', inputSchema: { type: 'object', properties: { id: { type: 'string' } }, required: ['id'] }
- src/tools.ts:572-572 (registration)Registers the handler function for the 'helius_get_asset' tool name in the handlers dictionary."helius_get_asset": helius.getAssetHandler,