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, automated revenue splits
β’ Autonomous wallet-based purchasing for AI agents via x402 (Coinbase) and OKX APP on the same rails as humans
β’ A multi-tenant MCP server (13 tools) so Claude / Cursor / OpenAI agents can shop on Coal with one config line
π₯ Pitch video (judges) https://youtu.be/FOieBgJ3j4A
π₯ Launch / demo video https://youtu.be/fnlcOIcK-yk
π Pitch deck (PDF) https://www.usecoal.xyz/coal-pitch-deck.pdf
π Live platform https://usecoal.xyz
π€ Live agent sandbox https://agent.usecoal.xyz
π Demo store https://store.usecoal.xyz
π MCP server https://mcp.usecoal.xyz/api/mcp
β 0G health (live) https://api.usecoal.xyz/api/0g/health
π¦ React SDK on npm coal-react v0.4.1
π» GitHub https://github.com/emmanuel39hanks/coal
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.
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
AI Agents (autonomous)
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
Gasless β Coal's operator wallet submits signed transactions on their behalf
Claude / Cursor / Custom Agents (via MCP)
One config line in Claude Desktop or Cursor
13 MCP tools cover discovery, paywall checks, payment, receipts, downloads
Multi-tenant β every user provides their own wallet key as a header; server holds no shared secrets
0G Storage (Log Layer)
Stores payment receipts as immutable, content-addressed JSON
Holds encrypted merchant memory (AES-256-GCM)
Holds x402 paywall manifests
Deduplicated via payload hash
0G Chain
Contract: CoalReceiptAnchor V2 Address: 0x24a80A3Bb16d26D4063Ecd4B2fD64C6856E25E8b
Anchors SHA-256 hash of every receipt
Uses DASigners precompile (epochNumber())
Stamps DA epoch into each anchor event
0G Compute
Runs AI commerce queries: merchant memory lookup, policy evaluation, product routing
Provides TEE attestation via broker.inference.verifyService
Powers the agent demo with Qwen on the decentralized GPU network
Sealed inference with per-response attestation
0G KV
Mutable mirror layer
Keeps merchant profiles + memory pointers always fresh
Ensures real-time agent discovery without walking the full log history
0G DA
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 trail:
Base transaction confirmed β USDC settled with ~2s finality
Receipt stored on 0G Storage β immutable, content-addressed
Receipt hash anchored on 0G Chain β SHA-256, tamper-proof
Public verification page: usecoal.xyz/verify/{session-id}
A judge can click it for any paid session.
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 this hackathon period.
0G Chain β Receipt Anchoring (V2 Upgrade)
Deployed CoalReceiptAnchor V2 at: 0x24a80A3Bb16d26D4063Ecd4B2fD64C6856E25E8b
Calls DASigners precompile via epochNumber()
Embeds DA epoch into every anchored event
Three anchor functions:
anchorReceipt
anchorEntitlement
anchorProfile
0G Compute β Verifiable AI Execution
Per-response TEE attestation
Verified via broker.inference.verifyService
Response metadata includes:
verificationStatus: sealed_tee
provider
timestamp
0G KV β Real-Time State Layer
Merchant profile β merchant:profile:latest
Memory pointer β merchant:memory:latest
Paywall manifests β paywall:{id}:manifest:latest
0G DA β Event Streaming Pipeline
gRPC-based system with custom .proto definitions
6 event types
Blob dispersal + confirmation polling (β€5 retries)
Fire-and-forget non-blocking architecture
Dedicated sidecar (Singapore EC2): 54.179.237.217:51001
0G Storage β Immutable Data Layer
Published merchant profiles + encrypted memory snapshots
Content-addressed storage with payload hash deduplication
Agent Discovery: GET /api/agent/discover
Returns active merchants, products, paywalls, and 0G Storage roots verifiable on-chain.
Autonomous Agent Sandbox: https://agent.usecoal.xyz
Features:
Auto-created Privy wallets per user
Local persistence
MetaMask funding
Balance polling every 10s
Full loop: discover β checkout β pay β verify
Gasless Payments (ERC-3009)
Agent signs transferWithAuthorization off-chain
Operator wallet submits
Gas (~$0.001) covered by Coal
x402 Paywalls
Full HTTP 402 flow with X-PAYMENT header
On-chain verification via ERC-20 event decoding
200 OK after payment
Dual-protocol
Same /verify endpoint accepts:
Coinbase x402 (v1)
OKX APP (v2) envelopes
Double-spend protection
Verifies session existence before transfer
Public Receipt Verification https://usecoal.xyz/verify/{id}
Includes:
3-step proof trail
Live badges (Base / Storage / Chain)
Direct explorer links
0G Monitoring Panel
Real-time health across all 5 components
Activity feed
Manual publish trigger
Merchant Console
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
7 security passes
Timing-safe auth
Sanctions screening
SSRF protection
RBAC for financial operations
Block confirmation enforcement
TOCTOU protections
Atomic verification guarantees
β’ Full OpenAPI 3.0.3 spec https://api.usecoal.xyz/api/docs/ui
β’ Public docs https://usecoal.xyz/docs
Covers:
Architecture
0G integrations
Examples
Runnable example apps
coal-react-checkout
coal-agent
coal-mcp-server
coal-oracle-agent
demo-store
React SDK shipped on npm as coal-react v0.4.1
MCP server with 13 tools listed on Smithery and the official MCP Registry
Distribution
Smithery directory β listed and indexed
Official MCP Registry β listed and indexed
npm: coal-react v0.4.1
Docs site live at usecoal.xyz/docs
Engagement Beyond Code
Walkthrough articles for builders + merchants
Small bounty program β developers building things on top of Coal
Test users running real flows on the agent sandbox
Daily replies + DMs across X, LinkedIn, Farcaster, Reddit, Discord, Telegram
Inbound Signal
"x402 + APP wire compat actually working is a real one β not many builders go through both envelopesβ¦ happy to point the mapper crawler at agent.usecoal.xyz for endpoint stability data showing up in our public catalog."
β CDP-verified Coinbase Developer Platform builder
Past Credibility
π₯ 1st Place β MNEE Hackathon (Best Commerce & Creator Tooling) β Devpost (https://devpost.com/software/coal-programmable-commerce)
Coal has now evolved into full-stack commerce infrastructure for the agent economy through the 0G APAC Hackathon.
Live Proof Anyone Can Check Right Now
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