AntseedDeposits buyer balances on Base — the one gas-requiring step in AntSeed’s otherwise gasless buyer flow. Once the deposit lands onchain, the balance appears in all AntSeed tooling automatically.
Base URL
antseed).
Endpoints
Create Top-up
POST /v1/{merchant}/topups — x402-paidQuote Bounds
GET /v1/{merchant}/topups/quote — freeTop-up Status
GET /v1/{merchant}/topups/{id} — freeHow it works
POST /v1/antseed/topupswith no payment — you receive402 Payment Requiredwith one payment-requirements entry per eligible source inaccepts[], plus source-specific bounds intopup.sources[]. Base is first.- Choose a source and sign an EIP-3009
TransferWithAuthorizationusing that source’s chain id and USDC domain (a gasless signature — no transaction, no gas). Cross-chain entries carryextra.destinationChainId: 8453. - Retry the same request with the signed payment base64-encoded in the
X-PAYMENTheader. - The gateway settles through Meridian. Optimism and Ink payments enter
bridgingwhile Across delivers to Base. The gateway measures the exact Base credit and calls the merchant contract (deposit(buyer, net)for AntSeed) from its relayer wallet. - The response (and
GET /v1/antseed/topups/{id}) reports the sourcesettlementTx, optional BasefillTx, BasedepositTx, and exact credited amount.
Payment sources
| Source | Chain id | USDC EIP-712 name / version | Settlement |
|---|---|---|---|
| Base | 8453 | USD Coin / 2 | Same-chain |
| Optimism | 10 | USD Coin / 2 | Across to Base |
| Ink | 57073 | USDC / 2 | Across to Base |
Rules worth knowing
- Buyer = payer. v1 only allows self top-ups: the
buyermust equal the address that signed the payment. Requests with a differentbuyerare rejected (buyer_mismatch). - Fee transparency. You pay a gross amount; the merchant contract is credited the amount net of Meridian facilitator and (when applicable) Across fees, always measured on Base — never assumed. Responses show both
grossAmountandnetAmount. - Idempotent. Replaying the same
X-PAYMENTreturns the existing top-up. Each EIP-3009 authorization(payer, nonce)is accepted exactly once. - Refund path. If the deposit can no longer succeed after settlement (e.g. credit limit lost to a concurrent deposit), the delivered amount is automatically refunded to the payer on Base. If an Across deposit itself expires, Meridian operations recover the source-proxy refund manually in v1.
The gateway is centralized execution, not custody of the merchant
relationship: it holds funds only between settlement and fulfillment, and
anyone could run a competing gateway against the same public merchant
contract. The merchant protocol has no dependency on it.