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
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes |
Implementation Reference
- src/handlers/helius.ts:338-345 (handler)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)}`); } }
- src/tools.ts:297-307 (schema)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,