Skip to main content
Glama

helius_get_asset_batch

Retrieve detailed information for multiple assets on the Solana blockchain using their unique IDs via the MCP Helius server. Ideal for managing and analyzing blockchain data efficiently.

Instructions

Get details of multiple assets by their IDs

Input Schema

NameRequiredDescriptionDefault
idsYes

Input Schema (JSON Schema)

{ "properties": { "ids": { "items": { "type": "string" }, "type": "array" } }, "required": [ "ids" ], "type": "object" }

Implementation Reference

  • The main handler function implementing the tool logic by calling Helius RPC getAssetBatch with the provided asset IDs.
    export const getAssetBatchHandler = async (input: { ids: string[] }): Promise<ToolResultSchema> => { try { const assets = await (helius as any as Helius).rpc.getAssetBatch({ ids: input.ids }); return createSuccessResponse(`Asset batch details: ${JSON.stringify(assets, null, 2)}`); } catch (error) { return createErrorResponse(`Error getting asset batch: ${error instanceof Error ? error.message : String(error)}`); } }
  • Input schema defining the expected input as an object with a required 'ids' array of strings.
    { name: 'helius_get_asset_batch', description: 'Get details of multiple assets by their IDs', inputSchema: { type: 'object', properties: { ids: { type: 'array', items: { type: 'string' } } }, required: ['ids'] } },
  • src/tools.ts:574-574 (registration)
    Registration of the tool name to its handler function in the handlers dictionary.
    "helius_get_asset_batch": helius.getAssetBatchHandler,

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