The commerce platform for the agent economy on 0G. Products, checkout, paywalls, subscriptions, splits. Agents pay via x402. 0G powers verifiable receipts, AI-native discovery, and on-chain proofs




Coal is the commerce platform for the agent economy on 0G.
It provides:
A full merchant commerce stack - products, hosted checkout, payment links, subscriptions, paywalls, and automated revenue splits
Autonomous wallet-based purchasing for AI agents via x402 on the same rails as humans
Pitch Deck: https://www.usecoal.xyz/coal-pitch-deck.pdf
Today, merchants must choose between:
Stripe
No crypto support
No autonomous agent purchasing
Raw x402
Only a bare HTTP 402 handshake
No products, checkout, subscriptions, receipts, or dashboards
There is no complete commerce layer for the agent economy.
Coal fills this gap - and ties every payment to 0G for full verifiability.
Pay via hosted checkout links
Use MetaMask or any Base-compatible wallet
Receive a public receipt verification page with a 3-step proof trail
Discover merchants via /api/agent/discover
Programmatically create checkout sessions
Sign ERC-3009 USDC transfers off-chain
Receive the same 3-step proof trail as humans
Key detail:
Agents are gasless — Coal’s operator wallet submits signed transactions on their behalf.
Stores payment receipts as immutable, content-addressed JSON
Holds:
Encrypted merchant memory (AES-256-GCM)
x402 paywall manifests
Deduplicated via payload hash
Contract: CoalReceiptAnchor V2
Address: 0x24a80A3Bb16d26D4063Ecd4B2fD64C6856E25E8b
Functionality:
Anchors SHA-256 hash of every receipt
Uses DASigners precompile (epochNumber)
Stamps DA epoch into each anchor event
Runs AI commerce queries:
Merchant memory lookup
Policy evaluation
Product routing
Provides TEE attestation via:
broker.inference.verifyService
Mutable mirror layer
Keeps:
Merchant profiles
Memory pointers
Ensures real-time freshness for agent discovery
Streams payment events via gRPC (Singapore sidecar)
Event types:
payment_confirmed
subscription_created
subscription_renewed
webhook_delivered
paywall_access_granted
receipt_anchored
Every payment (human or agent) generates a 3-step verifiable proof trail:
Base transaction confirmed
USDC settled (~2s finality)
Receipt stored on 0G Storage
Immutable and content-addressed
Receipt hash anchored on 0G Chain
SHA-256 → tamper-proof
Public verification:usecoal.xyz/verify/{session-id}
usecoal.xyz → Merchant console + landing
api.usecoal.xyz → Backend (OpenAPI 3.0.3)
coal-agent.vercel.app → Agent sandbox (autonomous purchasing)
coal-react-checkout.vercel.app → Checkout widget demo
0G Health Check:api.usecoal.xyz/api/0g/health
→ Returns "ok" with all 5 components operational
🥇 1st Place - MNEE Hackathon - Devpost (https://devpost.com/software/coal-programmable-commerce)
(Best Commerce & Creator Tooling)
Coal is now evolving into full-stack commerce infrastructure for the agent economy through the 0G APAC Hackathon.
Coal started as a crypto checkout platform that won 🥇 1st Place at the MNEE Hackathon.
During the 0G APAC Hackathon, it evolved into full-stack commerce infrastructure for the agent economy.
Below is exactly what shipped during the hackathon period:
Deployed CoalReceiptAnchor V2
Address: 0x24a80A3Bb16d26D4063Ecd4B2fD64C6856E25E8b
Upgrade details:
Calls DASigners precompile via epochNumber()
Embeds DA epoch into every anchored event
Anchor functions:
anchorReceipt
anchorEntitlement
anchorProfile
Implemented per-response TEE attestation
Verified via:
broker.inference.verifyService
Response metadata includes:
verificationStatus: sealed_tee
Provider + timestamp
Merchant profile → merchant:profile:latest
Memory pointer → merchant:memory:latest
Paywall manifests → paywall:{id}:manifest:latest
Ensures fresh, queryable state for agents at all times
gRPC-based streaming system with:
Custom .proto definitions
6 event types
Blob dispersal + confirmation polling (≤ 5 retries)
Fire-and-forget non-blocking architecture
Infrastructure:
Dedicated sidecar (Singapore EC2)
Endpoint: 54.179.237.217:51001
Published:
Merchant profiles
Encrypted memory snapshots
Features:
Content-addressed storage
Payload hash deduplication
GET /api/agent/discover
Returns:
Active merchants
Products + paywalls
0G Storage roots (verifiable on-chain)
Live at: coal-agent.vercel.app
Features:
Auto-created Privy wallets per user
Local persistence via localStorage
MetaMask funding flow
Balance polling (every 10s)
Full loop:
discover → checkout → pay → verify
Uses transferWithAuthorization
Flow:
Agent signs USDC transfer (off-chain)
Coal operator submits transaction
Gas (~$0.001) covered by platform
Result:
Agents never need native ETH
Implements full HTTP 402 flow:
402 Payment Required + X-PAYMENT header
On-chain verification via ERC-20 event decoding
200 OK content access after payment
Built into execute_payment tool:
Verifies session existence before transfer
Prevents retry abuse with new sessions
Endpoint: usecoal.xyz/verify/{id}
Includes:
3-step proof trail
Live badges:
Base transaction
0G Storage
0G Chain
Direct explorer links
Real-time health across all 5 components
Activity feed
Manual publish-to-0G trigger
Products
Payment links
Paywalls
Subscriptions
Team management
Transactions
Analytics
Verification cron:
Minimum 2-block confirmations
Sanctions screening
Atomic transaction upserts
Optimistic session locking
Async anchoring:
Retries failed writes from backlog
Timing-safe authentication
Sanctions screening
SSRF protection
RBAC for financial operations
Block confirmation enforcement
TOCTOU protections
Atomic verification guarantees
Full OpenAPI 3.0.3 spec
api.usecoal.xyz/api/docs/ui
Public documentation:
Architecture
0G integrations
Example apps:
coal-react-checkout
coal-agent
demo-store
All 5/5 0G components are fully integrated and live.
Health check:https://api.usecoal.xyz/api/0g/health
→ Returns "ok" with:
storage ✅
chain ✅
compute ✅
kv ✅
da ✅
Active merchant: “Saint”
Real products (with images)
Published 0G Storage profile
Root: 0x37b6fefa828f5e5c53097207ee682a1c2ff2a49ee43223f6ce173f1afdb66465
Proven in production:
Real autonomous agent purchases executed on Base
Coal is currently self-funded.
No venture capital raised
Funded through prize winnings from the MNEE Hackathon
🥇 1st Place - Best Commerce & Creator Tooling
Open to conversations with:
Ecosystem funds
Grant programs
Strategic partners
Specifically those aligned with:
Agent economy infrastructure
On-chain commerce
AI × crypto integrations
The 0G APAC Hackathon submission serves as the foundation for public launch.
Focus:
Crypto-native merchants
Developers building agent-driven applications
Core value:
A single payment infrastructure that works for:
Humans
Autonomous AI agents
Both operating on the same rails