Introducing Pay with USDC: More Ways to Access Permanent Storage

Introducing Pay with USDC

We want permanent storage to be easy to get started with, and that idea guided our first payment option in Auto Drive, Pay with AI3. It works well, but until now anyone who needed more than the free tier had to acquire AI3 before they could buy more storage. For many people, that extra step was a barrier.

Today we are introducing Pay with USDC. You can now buy Auto Drive storage credits with USDC on Ethereum, a stablecoin many people already hold.

What This Means

Under the hood, storage on the Autonomys Network is still priced and settled in AI3, whether you pay with AI3 or USDC. Your USDC quote is the AI3 cost of storage, converted at the current AI3/USD rate. The independent farmers who provide the network’s storage continue to receive AI3 rewards. AI3 continues to be the token behind the Autonomys Network.

For users, the experience now looks much more like the cloud storage tools they already use every day: pick a package, see a price in dollars, pay.

For developers, it means one less dependency. If your application or your users already hold USDC on Ethereum, you can fund Auto Drive storage without adding an AI3 acquisition step to your onboarding.

How It Works

The user-facing flow mirrors Pay with AI3. Sign in with Google, open Purchase Credits, select a package, and choose USDC as the payment method. Connect an EVM wallet that holds USDC and some ETH for gas on Ethereum mainnet, then click Get a price to lock your quote for 10 minutes.

Your wallet then asks you to confirm up to three actions:

  1. Switch network to Ethereum mainnet, if needed.
  2. Approve USDC, which lets the Auto Drive receiver contract spend the quoted amount. No USDC moves yet.
  3. Send payment, which transfers the quoted USDC to the receiver contract.

Your credits are available as soon as the payment is confirmed on chain. From there, nothing is different: upload through the dashboard at ai3.storage, integrate with the Auto SDK, or call the REST API directly. Credits bought with USDC and credits bought with AI3 are the same credits.

The full walkthrough with screenshots is at develop.autonomys.xyz/auto_drive/pay_with_usdc.

Under the Hood

For the developers in the room, here is what happens when you click Pay.

The contract. Pay with USDC is handled by a second Solidity contract, AutoDriveUSDCReceiver, deployed on Ethereum mainnet (chain ID 1) at 0x9c508Fa594f52032D574137585DD2F8A48F92261. It accepts canonical USDC (0xA0b8…eB48) and exposes one user-facing function:

function payIntentWithToken(bytes32 intentId, uint256 amount) external nonReentrant whenNotPaused;

event IntentTokenPaymentReceived(
    bytes32 indexed intentId,
    address token,
    uint256 amount,
    address indexed payer
);

Unlike payIntent on Auto-EVM, there is no msg.value. USDC is an ERC-20, so the payer first calls approve(receiver, amount) on the token, and the receiver then pulls the funds with transferFrom. The event records the amount the contract actually received, not the amount requested.

The payment target. Clients should not hardcode the chain, receiver or token. The backend serves them at GET /payments/usdc/target:

{
  "chainId": 1,
  "receiverAddress": "0x9c508Fa594f52032D574137585DD2F8A48F92261",
  "tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  "tokenDecimals": 6,
  "confirmations": 6,
  "settleGraceMs": 120000
}

The intent. USDC uses the same payment intent model and state machine as AI3 (PENDING → CONFIRMED → COMPLETED, with EXPIRED, FAILED and OVER_CAP exits). There are two differences. The intent is created with paymentMethod: "usdc_eth", and requestedBytes is required, because the backend quotes an exact amount for an exact size:

{
  "id": "0xabc123...",
  "status": "pending",
  "paymentMethod": "usdc_eth",
  "shannonsPerByte": "4273583470658",
  "quotedAi3Shannons": "45887253108005714001920",
  "quotedTokenAmount": "67071093",
  "usdRateAtCreation": "1392047389045704",
  "expiresAt": "2026-10-07T12:10:00.000Z"
}

The pricing. The quote is built in two steps. First, the backend reads the live per-byte storage cost from the consensus chain and adds the service fee, exactly as it does for AI3 (shannonsPerByte). That gives the AI3 cost of your request (quotedAi3Shannons). Second, that AI3 amount is converted to USDC at the current AI3/USD rate, plus a small quote margin to absorb movement during the lock window. The result is quotedTokenAmount, in USDC base units (6 decimals). In the example above, 10 GiB comes to 67.071093 USDC. All of these values are captured when the intent is created and do not change: your transaction settles against the price you saw.

If the backend cannot get a reliable AI3/USD rate, it refuses to quote rather than guess. New USDC intents return 503 PRICE_ORACLE_UNAVAILABLE or 503 PRICE_UNSTABLE. An intent that was already quoted stays payable until it expires.

The handshake. After the payment transaction is mined, the client posts its hash (the payment hash, not the approval hash) to POST /intents/:id/watch. The backend waits for 6 Ethereum confirmations and verifies the IntentTokenPaymentReceived event against the intent.

Granting credits. Credits are granted in proportion to the USDC actually received. Paying exactly quotedTokenAmount grants exactly requestedBytes. The 100 GB cap check runs inside the same grant transaction as for AI3, and it covers AI3 and USDC purchases combined.

Late settlement. Ethereum blocks are slower than Auto-EVM blocks, so a payment sent near the end of the 10-minute lock can land after it. The backend keeps accepting payments for an intent with a recorded transaction hash for a short window after expiresAt (currently up to 20 minutes). The SDK’s settleGraceMs lets clients keep polling through the 410 that the API returns after the lock lapses, instead of reporting a failure too early.

Building with the SDK

The Auto SDK wraps all of this. USDC support requires @autonomys/auto-drive v1.6.16 or later. As with AI3, the SDK never signs anything. It returns the quote and where to pay, plus typed ABIs (erc20ApprovalAbi, usdcReceiverAbi), and your wallet library sends the transactions:

const intent = await api.createUsdcPaymentIntent(sizeBytes) // fetches the target + locks the price

// approve(intent.receiverAddress, intent.usdcAmount) on intent.tokenAddress
// payIntentWithToken(intent.intentId, intent.usdcAmount) on intent.receiverAddress

await api.watchPaymentTransaction(intent.intentId, txHash)
const status = await api.waitForPaymentCompletion(intent.intentId, {
  settleGraceMs: intent.settleGraceMs,
}) // 'COMPLETED' | 'EXPIRED' | 'FAILED' | 'OVER_CAP'

Errors come back as a typed PaymentApiError with an HTTP status and a machine-readable code. Branch on code. If USDC is temporarily closed (USDC_PAYMENTS_UNAVAILABLE), fall back to AI3.

The full viem-based integration example, the API reference and the error tables are at develop.autonomys.xyz/sdk/auto-drive/pay_with_ai3#pay-with-usdc.

A Note on Current Limitations

The protections introduced with Pay with AI3 apply to USDC as well. They are deliberate economic protections, not permanent product decisions. The goal is for storage credits to be used, not held.

  • Google authentication is required to buy credits. API keys inherit the OAuth provider of their owner, so server-side integrations work as long as the owning account signed in with Google.
  • 100 GB maximum purchased credits per account, across AI3 and USDC combined. If a confirmed payment would push you past the cap, the intent moves to OVER_CAP. The payment is recorded and recoverable, not lost.
  • Purchased credits expire after 90 days. Unused bytes are forfeited at expiry. Refunds for unused credits are handled manually through support and are paid in AI3 on Auto-EVM (not USDC) to the wallet that made the purchase. Work on automated refunds is underway.

And some that are specific to USDC:

  • USDC on Ethereum mainnet only. You pay gas in ETH for both the approval and the payment.
  • USDC purchases can be paused for short periods, for example when a reliable AI3/USD rate is not available. Pay with AI3 is always the fallback.
  • Pay within the price lock, and pay the quoted amount. A late payment, or USDC sent against an AI3 intent, is not credited automatically. It is recorded and recoverable through support.

These constraints will be revisited as the network matures. If they add friction to what you are building, reach out. For full details, see the Auto Drive Terms of Use.

Why This Matters

When we launched Pay with AI3, we said the vision for Auto Drive has always been that anyone, regardless of their familiarity with crypto or token markets, should be able to access permanent decentralized storage on their own terms. Pay with USDC is the next step on that path. It removes the need to acquire a specific token before you can store data, while keeping the network’s economics anchored in AI3.

The design principles have not changed. The price is read from the chain. The payment is made to a contract. The credit grant is triggered by an event. We have added a second door that uses a currency more people already hold.

Auto Drive exists to keep important data available for the long term, and we will keep looking for ways to make it easier to use.

Get started at ai3.storage: create an account, start with the free tier, then use Pay with AI3 or Pay with USDC whenever you need more storage. Full SDK documentation is at develop.autonomys.xyz/sdk/auto-drive.

1 Like