Skip to main content
Glama

helius_get_assets_by_authority

Retrieve assets associated with a specific authority address on the Solana blockchain using Helius API data.

Instructions

Get assets by authority address

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
authorityYes
pageNo
limitNo

Implementation Reference

  • The main handler function that executes the tool logic by mapping input to Helius RPC call getAssetsByAuthority and returning the result.
    export const getAssetsByAuthorityHandler = async (input: GetAssetsByAuthorityInput): Promise<ToolResultSchema> => {
      try {
        // Fix the parameter name mismatch
        const params = {
          authorityAddress: input.authority, // Change authority to authorityAddress
          page: input.page || 1,
          limit: input.limit || 10
        };
        const assets = await (helius as any as Helius).rpc.getAssetsByAuthority(params);
        return createSuccessResponse(`Assets by authority: ${JSON.stringify(assets, null, 2)}`);
      } catch (error) {
        return createErrorResponse(`Error getting assets by authority: ${error instanceof Error ? error.message : String(error)}`);
      }
    }
  • JSON schema definition for the tool input validation.
    {
      name: 'helius_get_assets_by_authority',
      description: 'Get assets by authority address',
      inputSchema: {
        type: 'object',
        properties: {
          authority: { type: 'string' },
          page: { type: 'number' },
          limit: { type: 'number' }
        },
        required: ['authority']
      }
    },
  • src/tools.ts:579-579 (registration)
    Registration of the tool name to its handler function in the handlers dictionary.
    "helius_get_assets_by_authority": helius.getAssetsByAuthorityHandler,
  • TypeScript type definition for the handler input, matching the JSON schema.
    export type GetAssetsByAuthorityInput = {
      authority: string;
      page?: number;
      limit?: number;
    }

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