get_account_balance
Get account balance
Returns the Laso account balance and total deposits for the authenticated user, plus the managed agent wallet's balance under agent_wallet so both are visible in one call.
These are two separate balances. The account balance is a ledger held by Laso. The agent wallet is an on-chain wallet that holds USDC. A paid request moves USDC from the wallet to Laso, so it is recorded on the account balance as a deposit and then debited by the purchase. total_deposits therefore includes purchases paid from the agent wallet, and a balance of 0 after a purchase is expected. Funds still held are agent_wallet.balance_usdc plus balance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Plain-language explanation of how the account balance and the agent wallet relate. | |
| balance | No | Laso account balance in USD. This is a ledger held by Laso and is what `/withdraw` draws on. It is not the agent wallet's on-chain balance; see `agent_wallet`. | |
| user_id | No | The user's ID (lowercase wallet address) | |
| agent_wallet | No | The caller's managed agent wallet: separate on-chain USDC on Solana and Base, with `balance_usdc` the total. Not part of the account balance. Spend it through `agentX402Pay` and move it with `agentWalletTransfer`. | |
| balance_type | No | Names what `balance` measures: the Laso account balance, not the agent wallet. One of: account_balance. | |
| total_deposits | No | Total lifetime USD credited to the account balance. Includes every paid request settled from the agent wallet, because each one arrives as a deposit before the purchase debits it. It is not a measure of money received from outside. | |
| created_timestamp | No | ||
| created_timestamp_readable | No |