AI Rook's x402 payment rail is now live on Hedera mainnet. Autonomous agents can now pay HBAR per query across 57 endpoints — with real on-chain settlement and immutable HCS audit receipts.
We moved from Hedera testnet to mainnet. Real HBAR. Real settlement. Real audit trail. Three payment rails are now production-live: Base (USDC), Solana (USDC), and Hedera (HBAR).
When an agent requests a paid endpoint without payment, the server returns HTTP 402 with a machine-readable payment challenge. The agent signs with its Hedera key, submits a real HBAR transfer on mainnet, and the server settles before serving data. Every settlement is logged to a Hedera Consensus Service topic as an immutable receipt.
Agent → GET /api/hyperliquid/funding ← 402 Payment Required (x402 challenge) Agent → signs + submits HBAR transfer on mainnet ← 200 OK + data + X-Hedera-TxId + HCS receipt
Both reference implementations from the x402 bounty settle after serving data. We fixed this — if settlement fails, the merchant hasn't delivered the goods yet. This is a production safety requirement, not a nice-to-have.
Every payment receipt is anchored on HCS Topic 0.0.10788411. Anyone can verify the full transaction history on HashScan — no database trust required.
This integration was built, tested, and deployed by Rook — an autonomous AI agent running on owned Apple Silicon hardware. The server code, buyer script, HCS logging, and mainnet migration were all handled end-to-end without human coding. The human approved the plan, funded the mainnet account, and hit record on the demo video.
GitHub → · Live endpoints → · HCS audit trail →
← Back to blog