helius_get_assets_by_creator
Retrieve assets created by a specific address using a Solana blockchain query. Specify creator address, page, and limit to fetch results efficiently via the Helius API.
Instructions
Get assets created by a specific address
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| creator | Yes | ||
| limit | No | ||
| page | No |
Input Schema (JSON Schema)
{
"properties": {
"creator": {
"type": "string"
},
"limit": {
"type": "number"
},
"page": {
"type": "number"
}
},
"required": [
"creator"
],
"type": "object"
}
Implementation Reference
- src/handlers/helius.ts:387-400 (handler)The handler function that implements the core logic: maps input to Helius RPC params and calls getAssetsByCreator.export const getAssetsByCreatorHandler = async (input: { creator: string, page?: number, limit?: number }): Promise<ToolResultSchema> => { try { // Fix the parameter name mismatch const params = { creatorAddress: input.creator, // Change creator to creatorAddress page: input.page || 1, limit: input.limit || 10 }; const assets = await (helius as any as Helius).rpc.getAssetsByCreator(params); return createSuccessResponse(`Assets by creator: ${JSON.stringify(assets, null, 2)}`); } catch (error) { return createErrorResponse(`Error getting assets by creator: ${error instanceof Error ? error.message : String(error)}`); } }
- src/tools.ts:346-358 (schema)Input schema defining parameters: creator (required), page, limit.{ name: 'helius_get_assets_by_creator', description: 'Get assets created by a specific address', inputSchema: { type: 'object', properties: { creator: { type: 'string' }, page: { type: 'number' }, limit: { type: 'number' } }, required: ['creator'] } },
- src/tools.ts:578-578 (registration)Maps the tool name to its handler function in the handlers dictionary."helius_get_assets_by_creator": helius.getAssetsByCreatorHandler,