helius_get_asset
Retrieve detailed information about a digital asset using its unique ID, enabling access to specific data stored on the Solana blockchain via the Helius API.
Instructions
Get details of a digital asset by its ID
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:320-327 (handler)The getAssetHandler function implements the core logic for the 'helius_get_asset' tool by calling the Helius RPC to fetch asset details by ID and returning a formatted success or error 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-285 (schema)The input schema definition for the 'helius_get_asset' tool, specifying the required 'id' parameter as a 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)Registration of the 'helius_get_asset' tool handler in the central handlers dictionary."helius_get_asset": helius.getAssetHandler,