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
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes |
Input Schema (JSON Schema)
{
"properties": {
"ids": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"ids"
],
"type": "object"
}
Implementation Reference
- src/handlers/helius.ts:338-345 (handler)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)}`); } }
- src/tools.ts:297-307 (schema)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,