Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
TypeScript
import { TxAgentKitClient } from '@tx-agent-kit/sdk' const client = new TxAgentKitClient({ token: process.env.TX_AGENT_KIT_TOKEN }) const response = await client.billing.getCreditBalance({ organizationId: process.env.TX_AGENT_KIT_ORGANIZATION_ID ?? "organizationId", })
{ "creditsBalanceDecimillicents": 123, "reservedCreditsDecimillicents": 123, "availableDecimillicents": 123, "isSuspended": true, "suspendedAt": "<string>", "paymentGracePeriodEndsAt": "<string>" }
Success