Coal
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 - Commerce Infrastructure for the Agent Economy on 0G
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
The Problem
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.
Who Uses Coal
1. Human Shoppers
Pay via hosted checkout links
Use MetaMask or any Base-compatible wallet
Receive a public receipt verification page with a 3-step proof trail
2. AI Agents
Discover merchants via
/api/agent/discoverProgrammatically 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.
0G Integrations - 5 Components (All on Mainnet)
1. 0G Storage (Log Layer)
Stores payment receipts as immutable, content-addressed JSON
Holds:
Encrypted merchant memory (AES-256-GCM)
x402 paywall manifests
Deduplicated via payload hash
2. 0G Chain
Contract:
CoalReceiptAnchor V2Address:
0x24a80A3Bb16d26D4063Ecd4B2fD64C6856E25E8b
Functionality:
Anchors SHA-256 hash of every receipt
Uses DASigners precompile (
epochNumber)Stamps DA epoch into each anchor event
3. 0G Compute
Runs AI commerce queries:
Merchant memory lookup
Policy evaluation
Product routing
Provides TEE attestation via:
broker.inference.verifyService
4. 0G KV
Mutable mirror layer
Keeps:
Merchant profiles
Memory pointers
Ensures real-time freshness for agent discovery
5. 0G DA
Streams payment events via gRPC (Singapore sidecar)
Event types:
payment_confirmedsubscription_createdsubscription_renewedwebhook_deliveredpaywall_access_grantedreceipt_anchored
The Proof Trail
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}
Live Today
usecoal.xyz→ Merchant console + landingapi.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
Previous Wins
🥇 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.
黑客松進展
From Checkout → Full Agent Commerce Infrastructure
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:
New 0G Integrations (All on Mainnet)
1. 0G Chain — Receipt Anchoring (V2 Upgrade)
Deployed
CoalReceiptAnchor V2
Address:0x24a80A3Bb16d26D4063Ecd4B2fD64C6856E25E8bUpgrade details:
Calls DASigners precompile via
epochNumber()Embeds DA epoch into every anchored event
Anchor functions:
anchorReceiptanchorEntitlementanchorProfile
2. 0G Compute — Verifiable AI Execution
Implemented per-response TEE attestation
Verified via:
broker.inference.verifyService
Response metadata includes:
verificationStatus: sealed_teeProvider + timestamp
3. 0G KV — Real-Time State Layer
Merchant profile →
merchant:profile:latestMemory pointer →
merchant:memory:latestPaywall manifests →
paywall:{id}:manifest:latest
Ensures fresh, queryable state for agents at all times
4. 0G DA — Event Streaming Pipeline
gRPC-based streaming system with:
Custom
.protodefinitions6 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
5. 0G Storage — Immutable Data Layer
Published:
Merchant profiles
Encrypted memory snapshots
Features:
Content-addressed storage
Payload hash deduplication
Agent-Native Features
Agent Discovery
GET /api/agent/discoverReturns:
Active merchants
Products + paywalls
0G Storage roots (verifiable on-chain)
Autonomous Agent Sandbox
Live at:
coal-agent.vercel.app
Features:
Auto-created Privy wallets per user
Local persistence via
localStorageMetaMask funding flow
Balance polling (every 10s)
Full loop:
discover → checkout → pay → verify
Gasless Payments (ERC-3009)
Uses
transferWithAuthorizationFlow:
Agent signs USDC transfer (off-chain)
Coal operator submits transaction
Gas (~$0.001) covered by platform
Result:
Agents never need native ETH
x402 Paywalls
Implements full HTTP 402 flow:
402 Payment Required+X-PAYMENTheaderOn-chain verification via ERC-20 event decoding
200 OKcontent access after payment
Double-Spend Protection
Built into
execute_paymenttool:Verifies session existence before transfer
Prevents retry abuse with new sessions
Human Commerce Features
Public Receipt Verification
Endpoint:
usecoal.xyz/verify/{id}
Includes:
3-step proof trail
Live badges:
Base transaction
0G Storage
0G Chain
Direct explorer links
0G Monitoring Panel
Real-time health across all 5 components
Activity feed
Manual publish-to-0G trigger
Merchant Console
Products
Payment links
Paywalls
Subscriptions
Team management
Transactions
Analytics
Payment Infrastructure
Verification cron:
Minimum 2-block confirmations
Sanctions screening
Atomic transaction upserts
Optimistic session locking
Async anchoring:
Retries failed writes from backlog
Security (7 Passes)
Timing-safe authentication
Sanctions screening
SSRF protection
RBAC for financial operations
Block confirmation enforcement
TOCTOU protections
Atomic verification guarantees
Developer Experience
Full OpenAPI 3.0.3 spec
api.usecoal.xyz/api/docs/ui
Public documentation:
Architecture
0G integrations
Example apps:
coal-react-checkoutcoal-agentdemo-store
Current State (Live on Mainnet)
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 ✅
Live Usage
Active merchant: “Saint”
Real products (with images)
Published 0G Storage profile
Root:
0x37b6fefa828f5e5c53097207ee682a1c2ff2a49ee43223f6ce173f1afdb66465
Proven in production:
Real autonomous agent purchases executed on Base
籌資狀態
Funding & Outlook
Coal is currently self-funded.
No venture capital raised
Funded through prize winnings from the MNEE Hackathon
🥇 1st Place - Best Commerce & Creator Tooling
Partnerships & Opportunities
Open to conversations with:
Ecosystem funds
Grant programs
Strategic partners
Specifically those aligned with:
Agent economy infrastructure
On-chain commerce
AI × crypto integrations
Go-To-Market Direction
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