get_account_balance
Check your current account balance to manage domain purchases and renewals through the Dynadot registrar.
Instructions
Check the current account balance available for domain purchases and renewals.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/account.ts:46-68 (handler)The registration and handler definition for the get_account_balance tool.
server.tool( "get_account_balance", "Check the current account balance available for domain purchases and renewals.", {}, async () => { try { const result = await client.getAccountBalance(); return { content: [ { type: "text" as const, text: JSON.stringify(result, null, 2) }, ], }; } catch (error) { const msg = error instanceof Error ? error.message : String(error); return { content: [ { type: "text" as const, text: `Failed to get balance: ${msg}` }, ], isError: true, }; } } ); - The DynadotClient helper method that actually makes the API call.
async getAccountBalance(): Promise<DynadotResponse> { return this.call("get_account_balance"); }