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
| Name | Required | Description | Default |
|---|---|---|---|
| authority | Yes | ||
| page | No | ||
| limit | No |
Implementation Reference
- src/handlers/helius.ts:402-415 (handler)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)}`); } }
- src/tools.ts:359-371 (schema)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,
- src/handlers/helius.types.ts:202-206 (schema)TypeScript type definition for the handler input, matching the JSON schema.export type GetAssetsByAuthorityInput = { authority: string; page?: number; limit?: number; }