Skip to main content
Glama

helius_get_assets_by_owner

Retrieve all assets owned by a specific Solana wallet address, including tokens and NFTs, using Helius blockchain data.

Instructions

Get assets owned by a specific address

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYes
pageNo
limitNo

Implementation Reference

  • Implements the core logic for retrieving assets owned by a given Solana address using the Helius RPC getAssetsByOwner method.
    export const getAssetsByOwnerHandler = async (input: { owner: string, page?: number, limit?: number }): Promise<ToolResultSchema> => { try { // Fix the parameter name mismatch const params = { ownerAddress: input.owner, // Change owner to ownerAddress page: input.page || 1, limit: input.limit || 10 }; const assets = await (helius as any as Helius).rpc.getAssetsByOwner(params); return createSuccessResponse(`Assets by owner: ${JSON.stringify(assets, null, 2)}`); } catch (error) { return createErrorResponse(`Error getting assets by owner: ${error instanceof Error ? error.message : String(error)}`); } }
  • Defines the input schema and metadata for the helius_get_assets_by_owner tool.
    { name: 'helius_get_assets_by_owner', description: 'Get assets owned by a specific address', inputSchema: { type: 'object', properties: { owner: { type: 'string' }, page: { type: 'number' }, limit: { type: 'number' } }, required: ['owner'] } },
  • src/tools.ts:577-577 (registration)
    Maps the tool name to its handler function in the exported handlers dictionary.
    "helius_get_assets_by_owner": helius.getAssetsByOwnerHandler,

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