Skip to main content
Glama

helius_get_assets_by_authority

Retrieve assets linked to a specific authority address on the Solana blockchain using Helius API. Specify authority, page, and limit for precise query results.

Instructions

Get assets by authority address

Input Schema

NameRequiredDescriptionDefault
authorityYes
limitNo
pageNo

Input Schema (JSON Schema)

{ "properties": { "authority": { "type": "string" }, "limit": { "type": "number" }, "page": { "type": "number" } }, "required": [ "authority" ], "type": "object" }

Implementation Reference

  • The main handler function `getAssetsByAuthorityHandler` that implements the tool logic by calling `helius.rpc.getAssetsByAuthority` with remapped parameters (authority to authorityAddress) and returns a success or error response.
    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)}`); } }
  • src/tools.ts:579-579 (registration)
    Maps the tool name 'helius_get_assets_by_authority' to its handler `helius.getAssetsByAuthorityHandler` in the central handlers dictionary.
    "helius_get_assets_by_authority": helius.getAssetsByAuthorityHandler,
  • Tool registration in the tools array including name, description, and JSON input schema for 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'] }
  • TypeScript interface defining the input shape for the handler function.
    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