# Wallet

How the owner keeps the money, grants Abazi a capped on-chain spending permission on Solana, and funds and sweeps per-agent spending wallets on the other networks.

<ShortProductTruth>**Your wallet. Not our vault.** On Solana the owner's USDC stays in the owner's account, and Abazi can spend only up to a cap the owner sets on chain and can remove at any time.</ShortProductTruth>


## The problem it removes [#the-problem-it-removes]

An agent that pays usually holds a key, and a key can move everything it controls. An owner who hands money to a service has to trust that service to stop. Abazi Wallet removes both problems: the agent never holds a key, and the owner's limit is enforced by the network itself, not only by Abazi's database.

## Who uses it [#who-uses-it]

| Who | How |
| --- | --- |
| Owners | Connect a wallet, set the spending permission and its cap, fund spending wallets and sweep them back. |
| Finance | See where funds sit per network and what each permission still allows. |
| Agents | Hold only a Abazi credential. They never see an address's key. |

## How it works [#how-it-works]

| Network | Where the money sits | What Abazi can do | How the owner stops it |
| --- | --- | --- | --- |
| Solana | In the owner's own USDC account | Spend up to a capped SPL delegation the owner approved in the wallet | Remove the delegation in the wallet. Abazi re-reads it every 30 seconds and denies Solana payments once it is gone. |
| Base, Polygon, Avalanche, Ethereum and Tron | In a small spending wallet per agent, which Abazi's signer holds | Pay from that wallet, up to what the owner funded | Sweep the full balance back to the owner's return address. |

1. **Connect.** The owner signs a Sign In With Solana message in the wallet; Abazi checks the signature.
2. **Grant the permission.** Abazi builds an approval that makes its signer the delegate of the owner's USDC account, with the cap the owner chose. The wallet signs and sends it; it is active once confirmed. A new cap is a new approval that replaces the old one.
3. **Fund spending wallets.** For direct USDT and EVM networks, the owner adds a spending wallet for an agent and funds it. Keys are generated and kept by the signer, built on Tether's Wallet Development Kit, and are never shown or exported.
4. **Sweep back.** The owner can return a spending wallet's whole balance at any time.

Plans on Solana use a separate account per plan, owned by the owner, because one token account can have only one delegate. See [Billing](/docs/products/billing).

Every wallet Abazi works with, and who holds each key, is on [Wallets](/docs/platform/wallets) and [Custody and keys](/docs/concepts/custody-and-keys).

<WalletList />

## Screens [#screens]

<Screenshot id="console-wallets" />

## Boundaries [#boundaries]

| Case | What happens |
| --- | --- |
| The Solana permission was removed or never granted | Solana payments are denied with <ReasonCode code="DELEGATION_MISSING" />. |
| No network the mandate allows has enough funds | The purchase is denied with <ReasonCode code="NO_FUNDED_CHAIN" />. |
| Someone asks Abazi for a seed phrase or private key | There is no screen or endpoint that returns one. Only addresses are shown. |

## API [#api]

The Wallets operations in the API reference, each with its parameters, responses and code samples:

<ApiOperationList ids={['getWallets', 'createWalletChallenge', 'connectWallet', 'createDelegation', 'submitDelegation', 'refreshDelegation', 'revokeDelegation', 'createSpendingWallet']} />

## Next steps [#next-steps]

<Cards>
  <Card title="Custody and keys" href="/docs/concepts/custody-and-keys" description="See who holds which key and what each one can move." />
  <Card title="Rails and networks" href="/docs/concepts/rails-and-networks" description="Find out which network pays which rail, and in what order." />
  <Card title="Budget" href="/docs/products/budget" description="Add the second limit: budgets that cap spend per organization, team and agent." />
</Cards>

