1. Set up your agent’s wallet
Your agent needs a crypto wallet with USDC on Base or Solana to pay for Laso Finance API calls. Choose a wallet provider:- Locus
- Sponge
- Ampersend
Locus provides wallet infrastructure purpose-built for AI agents.Tell your agent:Your agent will walk through the Locus onboarding, but it needs a few things from you first:
1
Create a Locus account
Go to app.paywithlocus.com and sign up with your email.
2
Deploy a wallet
From the dashboard, click Create Wallet. This deploys a smart wallet on the Base blockchain (~30 seconds). Save your private key — it’s shown only once.
3
Fund your wallet
Transfer USDC on Base or Solana to the wallet address shown on your dashboard. You’ll need at least $5 to order a card.
4
Generate an API key
Go to the API Key section and generate a key (starts with
claw_). Copy it immediately — it’s shown only once.5
Configure x402 endpoints
Navigate to x402 Endpoints in the Locus dashboard and add the Laso Finance endpoints your agent will use. See the Locus x402 Configuration guide for detailed instructions on adding each endpoint with the correct parameters.
6
Give your agent the API key
When your agent asks for a Locus API key, provide the
claw_ key you generated.2. Order a card
Once your agent has a funded wallet, it can call the Laso Finance/get-card endpoint. The x402 protocol handles the payment flow automatically.
auth.id_tokenandauth.refresh_tokenfor authenticated API callscard.card_idwithstatus: "pending"
3. Poll for card details
Card details (number, CVV, expiry) take ~7-10 seconds to become available. Poll/get-card-data until status is "ready".
4. Use the card
You now have a prepaid card. Use the card number, CVV, and expiry to make purchases at any US-based merchant.The USA prepaid card (
/get-card) is U.S. only — issued in USD, usable at
U.S. merchants only, and physical goods must ship to a U.S. address. For
international purchases use GET /order-intl-card instead.