Skip to main content
Glama

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

NameRequiredDescriptionDefault
idYes

Input Schema (JSON Schema)

{ "properties": { "id": { "type": "string" } }, "required": [ "id" ], "type": "object" }

Implementation Reference

  • 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)}`); } }
  • 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,

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dcSpark/mcp-server-helius'

If you have feedback or need assistance with the MCP directory API, please join our Discord server