get_wallet
Retrieve wallet details including status, address, and public key by providing the wallet ID. This tool enables AI agents to access and manage wallet information across multiple blockchain networks.
Instructions
Get wallet details by ID, including status, address, and public key.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| walletId | Yes | The wallet ID returned from create_wallet |
Implementation Reference
- src/tools/get-wallet.ts:19-32 (handler)The handler function for 'get_wallet' that fetches wallet details from the API.
export async function handler(client: ParaClient, args: Record<string, unknown>) { const walletId = args.walletId as string; const wallet = await client.requestWithRetry<Wallet>(`/v1/wallets/${walletId}`); return { content: [ { type: 'text' as const, text: JSON.stringify(wallet, null, 2), }, ], }; } - src/tools/get-wallet.ts:4-17 (schema)The definition and input schema for the 'get_wallet' tool.
export const definition = { name: 'get_wallet', description: 'Get wallet details by ID, including status, address, and public key.', inputSchema: { type: 'object' as const, properties: { walletId: { type: 'string', description: 'The wallet ID returned from create_wallet', }, }, required: ['walletId'], }, };