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
| Name | Required | Description | Default |
|---|---|---|---|
| authority | Yes | ||
| limit | No | ||
| page | No |
Input Schema (JSON Schema)
{
"properties": {
"authority": {
"type": "string"
},
"limit": {
"type": "number"
},
"page": {
"type": "number"
}
},
"required": [
"authority"
],
"type": "object"
}
Implementation Reference
- src/handlers/helius.ts:402-415 (handler)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,
- src/tools.ts:359-370 (schema)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'] }
- src/handlers/helius.types.ts:202-206 (schema)TypeScript interface defining the input shape for the handler function.export type GetAssetsByAuthorityInput = { authority: string; page?: number; limit?: number; }