Skip to main content

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

Every on-chain transaction is verifiable on BaseScan.

Using the SDK

Using MCP

If your agent uses MIDAS via the MCP server, the send_payment tool now accepts paymentMethod:

Payment Methods Comparison

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

  1. MIDAS decrypts the sender’s private key server-side
  2. An EIP-7702 smart account is created from the EOA — same address, smart account capabilities
  3. An EIP-2612 permit is signed, authorizing Circle Paymaster to deduct gas in USDC
  4. A UserOperation is constructed with batch calls: transfer to recipient + fee transfer to treasury
  5. The operation is submitted to Base via Pimlico’s bundler
  6. Circle Paymaster pays gas in ETH and recoups the equivalent in USDC from the sender
  7. The transaction is confirmed and recorded in the MIDAS ledger

Contract Addresses