helius_get_nft_editions
Retrieve NFT editions for a master edition on the Solana blockchain using the Helius API. Input the master edition ID to access detailed edition information.
Instructions
Get NFT editions for a master edition
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| masterEditionId | Yes | ||
| page | No |
Input Schema (JSON Schema)
{
"properties": {
"limit": {
"type": "number"
},
"masterEditionId": {
"type": "string"
},
"page": {
"type": "number"
}
},
"required": [
"masterEditionId"
],
"type": "object"
}
Implementation Reference
- src/handlers/helius.ts:444-451 (handler)The main handler function for 'helius_get_nft_editions' that fetches NFT editions using the Helius SDK.export const getNftEditionsHandler = async (input: { masterEditionId: string, page?: number, limit?: number }): Promise<ToolResultSchema> => { try { const editions = await (helius as any as Helius).rpc.getNftEditions(input); return createSuccessResponse(`NFT editions: ${JSON.stringify(editions, null, 2)}`); } catch (error) { return createErrorResponse(`Error getting NFT editions: ${error instanceof Error ? error.message : String(error)}`); } }
- src/tools.ts:423-435 (schema)Input schema definition for the 'helius_get_nft_editions' tool.{ name: 'helius_get_nft_editions', description: 'Get NFT editions for a master edition', inputSchema: { type: 'object', properties: { masterEditionId: { type: 'string' }, page: { type: 'number' }, limit: { type: 'number' } }, required: ['masterEditionId'] } },
- src/tools.ts:582-582 (registration)Registration of the handler for 'helius_get_nft_editions' in the tools handlers dictionary."helius_get_nft_editions": helius.getNftEditionsHandler,