Skip to main content
Glama

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
NameRequiredDescriptionDefault
idYes

Implementation Reference

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

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