The confidential payment layer for AI agents. FHE-encrypted tokens, on-chain identity, and escrow-based commerce. All in one protocol.
Built on three ERC standards (ERC-7984, ERC-8004, ERC-8183), MARC provides everything an AI agent needs to make and receive private, verifiable payments across any supported chain. Wrap, pay, verify, access.
Smart Contracts
Framework Plugins
ERC Standards
Open Source
Architecture
The Protocol Stack
Four layers working together. Scroll to explore each.
Confidential Token
Wrap USDC into FHE-encrypted cUSDC. Fee-free peer-to-peer transfers. Silent failure pattern leaks zero balance info.
Agent Identity
On-chain identity registry for AI agents. Register, link wallets, build verifiable reputation with proof-of-payment.
Agentic Commerce
Escrow-based job marketplace. Client locks funds, provider delivers, evaluator approves. 1% platform fee.
Payment Verifier
On-chain nonce registry with batch prepayments. Pay once for N requests. Single-TX mode via payAndRecord.
How It Works
Four steps to private payments.
Wrap
Agent wraps USDC into encrypted cUSDC using the ConfidentialToken contract. Balances become FHE-encrypted on-chain.
Pay
Agent makes an encrypted transfer and records a unique nonce on-chain via PaymentVerifier. Batch mode supports N prepaid requests.
Verify
Server checks for ConfidentialTransfer and PaymentVerified events on-chain. Cryptographic proof of payment with zero balance leakage.
Access
API grants access to the requested resource. Batch credits are tracked off-chain. One payment, many requests.
Ecosystem
x402 Scheme
HTTP 402-based payment scheme for web APIs.
Middleware verifies FHE payments before granting API access.
MCP Server
Model Context Protocol integration for LLMs.
Any MCP-compatible agent can discover and pay for MARC services.
MPP Method
Machine-Payable Pages for agent-accessible endpoints.
Standardized payment metadata in HTTP headers and HTML meta tags.
AgentKit
Coinbase AgentKit plugin for autonomous agents.
Drop-in actions: wrap, transfer, register identity, verify payments.
Virtuals GAME
GAME framework plugin for Virtuals Protocol agents.
State-aware functions let GAME agents transact with encrypted tokens.
OpenClaw
Open-source claw machine agent framework.
Confidential micropayments for per-action agent billing.
import { marcMiddleware } from "marc-x402";
app.use(marcMiddleware({
price: 0.001,
token: "cUSDC",
network: "base-sepolia"
}));const res = await fetch(url, {
headers: {
"X-402-Payment": marcPayment({
amount: 0.001,
nonce: randomNonce()
})
}
});