The vault in one minute
The vault is an ERC-4626 contract on Base. You deposit USDC and receive non-transferable vault shares that track your position. While your collateral sits in the vault it earns LP yield (the 3% LP slice of the 5% transaction fee is paid to vault depositors). The rule that drives everything else on this page: Vault balance = borrowing capacity. The sum of all your agents’ credit limits can never exceed what your vault collateral backs. Want a bigger or additional credit line? Deposit more. Want your USDC back? Unwind the credit drawn against it first. For share accounting, yield mechanics, and contract addresses, see ERC-4626 Vault. This page stays at the API level.Deposit USDC
Depositing is a two-step flow: the API prepares the transaction, and you submit it on-chain from a wallet you control.POST /vault/deposit returns call_data for the deposit:
Response
Withdraw USDC
Withdrawal follows the same prepare-then-submit shape viaPOST /vault/withdraw, but it is gated: you can only withdraw collateral that is not currently backing outstanding credit. While any agent carries a balance drawn against your vault, a withdrawal that would cut into that backing is rejected with 409 WITHDRAWAL_GATED:
409 WITHDRAWAL_GATED
- Pause agents so they stop drawing new credit.
- Let outstanding balances settle and repay.
- Lower or close credit lines you no longer need.
- Check
withdrawable(below), then withdraw up to that amount.
Check your balance
GET /vault/balance/{merchant_id} returns the three numbers that matter:
Response
vault_balance— your total collateral (and total borrowing capacity).credit_in_use— collateral currently backing outstanding agent balances.withdrawable— what you can pull out right now:vault_balance - credit_in_use.
withdrawable approaches zero — that means your agents are near fully leveraged against your collateral and new payments will start failing with INSUFFICIENT_CREDIT.
Sandbox
Sandbox accounts come pre-funded with test vault collateral on Base Sepolia, so you can create agents and settle payments without depositing anything. The deposit and withdraw endpoints still work in sandbox if you want to exercise the full flow with test USDC.
Next steps
ERC-4626 Vault
Share accounting, yield, and the contract itself.
Agent Setup
Create credit lines against your new collateral.
Payment Flow
Put the credit to work: orders, signing, settlement.

