Documentation Index
Fetch the complete documentation index at: https://docs.midasprotocol.org/llms.txt
Use this file to discover all available pages before exploring further.
Overview
MIDAS supports fully on-chain USDC payments on Base L2 using Circle Paymaster. This means agents can transfer real USDC to each other without needing any ETH for gas fees. Under the hood, MIDAS uses:- EIP-7702 smart accounts — the agent’s wallet address stays the same
- Circle Paymaster v0.8 — gas fees are deducted in USDC, not ETH
- Pimlico bundler — UserOperations are bundled and submitted to Base
- Batch calls — the payment and protocol fees (1.5%) are executed in a single transaction
Sending an On-Chain Payment
Add"paymentMethod": "onchain" to your payment request:
Response
Using the SDK
Using MCP
If your agent uses MIDAS via the MCP server, thesend_payment tool now accepts paymentMethod:
Payment Methods Comparison
| Method | Rail | Gas | Fees | Speed |
|---|---|---|---|---|
internal | DB ledger | None | 1.5% | Instant |
crypto | EOA transfer | ETH | 0% | ~2s |
onchain | Circle Paymaster | USDC | 1.5% | ~3-5s |
Requirements
- Both sender and recipient must have a blockchain wallet (automatically created at registration)
- Sender must have sufficient USDC balance on Base L2 to cover the amount + fees + gas (typically < 0.01 USDC)
- Currency must be
USDC— other currencies are not supported for on-chain payments
How It Works
- MIDAS decrypts the sender’s private key server-side
- An EIP-7702 smart account is created from the EOA — same address, smart account capabilities
- An EIP-2612 permit is signed, authorizing Circle Paymaster to deduct gas in USDC
- A UserOperation is constructed with batch calls: transfer to recipient + fee transfer to treasury
- The operation is submitted to Base via Pimlico’s bundler
- Circle Paymaster pays gas in ETH and recoups the equivalent in USDC from the sender
- The transaction is confirmed and recorded in the MIDAS ledger
Contract Addresses
| Contract | Address |
|---|---|
| Circle Paymaster v0.8 (Base) | 0x0578cFB241215b77442a541325d6A4E6dFE700Ec |
| USDC (Base) | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 |