get_address
Retrieve the public address of a cryptocurrency wallet to enable transactions, interactions, and balance checks across supported blockchain networks.
Instructions
Get the public address of the wallet.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_id | No | Target wallet ID. Required for multi-wallet sessions; auto-resolved when session has a single wallet. |
Implementation Reference
- The handler function for the get_address MCP tool, which makes an API call to /v1/wallet/address.
async (args) => { const params = new URLSearchParams(); if (args.wallet_id) params.set('walletId', args.wallet_id); const qs = params.toString(); const result = await apiClient.get('/v1/wallet/address' + (qs ? '?' + qs : '')); return toToolResult(result); }, - packages/mcp/src/tools/get-address.ts:10-25 (registration)The registration function that defines the 'get_address' tool and its parameters for the McpServer.
export function registerGetAddress(server: McpServer, apiClient: ApiClient, walletContext?: WalletContext): void { server.tool( 'get_address', withWalletPrefix('Get the public address of the wallet.', walletContext?.walletName), { wallet_id: z.string().optional().describe('Target wallet ID. Required for multi-wallet sessions; auto-resolved when session has a single wallet.'), }, async (args) => { const params = new URLSearchParams(); if (args.wallet_id) params.set('walletId', args.wallet_id); const qs = params.toString(); const result = await apiClient.get('/v1/wallet/address' + (qs ? '?' + qs : '')); return toToolResult(result); }, ); }