Skip to main content
Glama

helius_get_asset_batch

Retrieve detailed information for multiple Solana blockchain assets simultaneously by providing their IDs, enabling efficient batch queries of token and NFT data.

Instructions

Get details of multiple assets by their IDs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYes

Implementation Reference

  • The main handler function for 'helius_get_asset_batch' that calls the Helius RPC method getAssetBatch with the provided array of asset IDs and returns the results or error.
    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)}`); } }
  • The input schema definition for the tool, specifying 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