Skip to main content
Glama

helius_get_assets_by_creator

Retrieve assets created by a specific Solana address using Helius blockchain data. Input the creator address to fetch associated tokens and NFTs.

Instructions

Get assets created by a specific address

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
creatorYes
pageNo
limitNo

Implementation Reference

  • The main handler function that executes the tool logic for 'helius_get_assets_by_creator'. It remaps the input parameters (creator to creatorAddress) and calls the Helius RPC method `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)}`);
      }
    }
  • The input schema definition for the 'helius_get_assets_by_creator' tool, specifying parameters like creator (required), page, and 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)
    The registration mapping that associates the tool name 'helius_get_assets_by_creator' with its handler function helius.getAssetsByCreatorHandler in the handlers dictionary.
    "helius_get_assets_by_creator": helius.getAssetsByCreatorHandler,

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