How do I move USDC between Solana and Base from an AI agent?
Last reviewed: August 2026
Give the agent a Laso managed wallet and call POST /moveAgentWalletFunds with from set to solana or base and an amount. The USDC arrives on the other network, usually within 10 seconds, for a 0.075% fee, and the agent needs no SOL, no ETH, and no private key. To deliver USDC to someone else’s Base address, call POST /agentWalletTransfer with destinationNetwork set to base.
Why this is awkward for an agent
Bridge websites are built for a person with a browser wallet. An agent doing the same job in code needs a key on each chain, SOL for Solana fees, ETH for Base fees, a bridge SDK, and logic to wait for the second leg to land. A Laso managed wallet has a Solana side and a Base side under one balance, and Laso pays the gas on both chains, so the move is one authenticated HTTP request.
| The agent needs to… | Call | Cost and timing |
|---|---|---|
| Shift its own USDC from one network to the other | POST /moveAgentWalletFunds | 0.075% of the amount, $0.10 minimum move, usually within 10 seconds |
| Send USDC to another person’s Base address | POST /agentWalletTransfer with destinationNetwork: "base" | 0.01% bridge fee, $1 minimum, usually within a minute |
| Pay an x402 endpoint that settles on Base or Solana | POST /agentX402Pay | Nothing to move by hand. The wallet moves what the payment needs before signing. |
Step 1: Read both sides of the wallet
Sign in to get an id_token, then read the wallet. balance_usdc is the total, and solana_balance_usdc and base_balance_usdc show where it sits.
curl https://laso.finance/getAgentWallet \
-H "Authorization: Bearer $LASO_ID_TOKEN"
# {
# "user_id": "usr_...",
# "has_wallet": true,
# "wallet_address": "...",
# "balance_usdc": 25,
# "needs_funding": false,
# "solana_balance_usdc": 25,
# "base_wallet_address": "0x...",
# "base_balance_usdc": 0
# }
Fund the wallet by sending USDC on Solana to wallet_address or USDC on Base to base_wallet_address. The user_id is an account id and never a receive address. base_balance_usdc is null when the live read of the Base side fails, so retry the read before deciding how much to move.
Step 2: Move USDC from Solana to Base
from is the network the USDC leaves. amount is a decimal string, and the fee comes out of it, so slightly less arrives than was sent. The request body is wrapped in data and the reply in result.
curl https://laso.finance/moveAgentWalletFunds \
-H "Authorization: Bearer $LASO_ID_TOKEN" \
-H "Content-Type: application/json" \
-d '{"data":{"userId":"usr_...","from":"solana","amount":"5"}}'
# { "result": { "moveId": "...", "from": "solana", "to": "base",
# "sentUsdc": 5, "receivedUsdc": 4.996 } }
The call returns once the USDC has arrived, so there is no second transaction to poll for. A 400 means a field is missing or invalid, or the from side holds less than amount.
Step 3: Move it back from Base to Solana
The same call with from set to base brings the funds back.
curl https://laso.finance/moveAgentWalletFunds \
-H "Authorization: Bearer $LASO_ID_TOKEN" \
-H "Content-Type: application/json" \
-d '{"data":{"userId":"usr_...","from":"base","amount":"4.99"}}'
A move stays inside the account’s own wallets, so the owner’s spend limit does not apply to it.
Sending USDC to someone else on Base
To pay a person or a contract on Base, send from the managed wallet with destinationNetwork set to base and a 0x address. Laso bridges the amount and it lands as native USDC on Base.
curl https://laso.finance/agentWalletTransfer \
-H "Authorization: Bearer $LASO_ID_TOKEN" \
-H "Content-Type: application/json" \
-d '{"data":{"userId":"usr_...","destinationAddress":"0xRECIPIENT","destinationNetwork":"base","amount":"5.50"}}'
# { "result": { "transferId": "...", "txHash": "...",
# "destinationAddress": "0xRECIPIENT", "destinationNetwork": "base" } }
txHash is the Solana transaction out of the managed wallet. The Base delivery follows, usually within a minute. If the bridge fails, the amount is credited to the Laso account balance, where POST /withdraw can return it. A send to another address counts against the owner’s per-payment and rolling 24-hour spend limits.
When the agent does not need to move anything
Payments and transfers draw on the whole balance. An x402 payment that settles on Base pulls what it needs from the Solana side just before signing, and a transfer that needs more than the Solana side holds pulls the difference back from Base. Call moveAgentWalletFunds ahead of time when the agent is about to make a run of Base payments and none of them should wait on a move, or when the owner asks for everything on one network.
What this does not do
- It moves USDC between Solana and Base. Other networks are not supported.
- It moves USDC only. Swap another token to USDC first with
POST /agentWalletSwap. - The wallet is custodied by Laso for the account owner. If the agent must hold its own keys, use a bridge protocol’s API from your own code, for example Across or deBridge, and plan for a key and a gas token on each chain. Check their current docs for supported routes and fees.
Full reference: the managed wallet guide, paying from the managed wallet, and the API reference. Related: the ways to give an agent its own wallet.
Frequently asked questions
How do I bridge USDC from Solana to Base in code without a bridge website?
Call POST /moveAgentWalletFunds on a Laso managed wallet with from set to solana and an amount. The call returns once the USDC has arrived on Base, usually within 10 seconds.
Does my agent need SOL or ETH for gas to move USDC across chains?
No. Laso pays the gas on both chains for a managed wallet. The agent pays a 0.075% fee taken from the amount moved.
How does my agent pay an API on Base when its USDC is on Solana?
Pay through POST /agentX402Pay. The managed wallet moves the USDC the payment needs to Base before signing, so no manual bridge step is required.
How do I send USDC from a Solana wallet to a Base address from an agent?
Call POST /agentWalletTransfer with destinationNetwork set to base and a 0x destinationAddress. The recipient gets native USDC on Base, less a 0.01% bridge fee, usually within a minute.
What does it cost to move USDC between Solana and Base?
A move between the two sides of a managed wallet costs 0.075% of the amount, with a $0.10 minimum move. A send to an outside Base address has a 0.01% bridge fee and a $1 minimum.
More guides
- How to give your AI agent a credit card — An AI agent cannot pass credit underwriting, but it can issue itself a virtual prepaid card over an API in about a minute. The working pattern, with real requests: x402 payment in, card number out.
- x402 vs AP2 vs ACP vs MPP vs UCP: which should your agent use? — All five agent payment protocols compared honestly: x402 and MPP for machine-to-machine HTTP payments, ACP for ChatGPT checkout, UCP for Google surfaces, AP2 for authorization. Which layer each one is, when to use each, and a worked x402 example.
- x402 vs Stripe Issuing for AI agents — Two real ways to put a card in an AI agent’s hands: Stripe Issuing behind a business account, or x402 card issuance the agent drives itself. An honest comparison of onboarding, funding, controls, and when each wins.
- Issue a virtual card with one x402 call — A complete, runnable walkthrough: pay one x402 request in USDC and receive a virtual prepaid card with number, expiry, and CVV. Real endpoints, real response shapes, error handling included.
- How can an AI agent pay for an API call with USDC? — An AI agent pays for an API call with USDC by answering the API’s HTTP 402 challenge with a signed payment. Two ways to do it: your own wallet with an x402 client, or a managed wallet with a price cap and no private key.
- How do I give an AI agent a bank account? — Two real ways to give an AI agent bank details: a business checking account it can operate (Meow) or a U.S. bank account that converts incoming dollars to USDC in the agent’s wallet (Laso). What each one is, who approves what, and when to pick which.
- How do I cap how much my AI agent can spend? — Cap an AI agent’s spending with limits it cannot raise: a funded balance, a per-payment spend limit set by the account owner, a per-call price cap, and prepaid cards loaded with exactly the amount to spend.
- How do I send money to someone’s debit card from code? — Send USD, EUR, or GBP to a debit card with one API call paid in USDC. No payment processor account: you get a redemption link, the cardholder enters their own card details, and the funds are pushed to the card.
- What are the best ways to pay someone on Venmo or PayPal from an AI agent? — Four ways an AI agent can pay a person on Venmo or PayPal: the PayPal Payouts API, a USDC-paid payout through Laso, a bank or card payout instead, or a human approving each payment. Tradeoffs for each.
- How do I let my AI agent buy a gift card through an API? — An AI agent buys a gift card with two calls: search the catalog for a laso_server_id, then order it with a USDC payment. The redemption code comes back in the same response. Includes a runnable example and the currency gotcha.
- How do I let my AI agent buy something online? — Two working ways for an AI agent to buy something online: spend the account holder’s saved card with their approval on each order, or pay for a prepaid card in USDC and check out like any cardholder. How Laso and Crossmint each handle it, with runnable calls.
- How do I send dollars to a bank account from an AI agent? — Pay a U.S. bank account by ACH from an AI agent. Register the recipient once, then make one API call paid in USDC. Limits, fees, settlement time, and a runnable example.
- What are the best ways to give an AI agent its own wallet? — Four ways to give an AI agent a wallet it can spend from: a key you hold yourself, Coinbase Agentic Wallet, Crossmint agent wallets, or a Laso managed wallet. Custody, spend limits, and tradeoffs for each.
- How do I get notified when my AI agent spends money? — Get an alert every time your AI agent spends: register one signed webhook for card orders, payouts, withdrawals and deposits, or poll the balance and card transaction endpoints. Working code included.
- How do I convert USDC to fiat in my app without a multi-week integration? — Three ways to turn USDC into dollars, euros, or pounds from code: Laso pay-per-call payouts over x402, a Stripe stablecoin balance, or Circle Mint redemption. Onboarding, outputs, and tradeoffs for each.
- How do I let my AI agent use my own credit card safely? — Let an AI agent pay with your own card without ever handling the number: save the card once behind a passkey, let the agent build the cart over an API, and approve each order on your own device. Working calls included.
- How do I let my AI agent pay for a subscription that bills every month? — A subscription charges the same card again each month, so a single-use card fails at the first renewal. Four ways to give an AI agent a card that stays open, from Privacy, Ramp, Meow, and Laso, with the calls for a reloadable card funded in USDC.
- How do I give my AI agent a card I can top up with USDC? — Three ways to give an AI agent a card that spends USDC and can be refilled: MoonPay’s MoonAgents Card, the Interlace Agent Card, and a Laso reloadable card. How each is funded, what limits apply, who can use it, and the calls to top one up.
- All agent guides, or how Laso compares to the alternatives
Try it: connect a wallet at laso.finance and you'll have a card, gift card, or payout in minutes.
Building an agent? Point it at laso.finance/SKILL.md — it can set itself up.