Inspiration

AI agents need to transact with each other autonomously. Existing payment systems require human KYC, bank accounts, and manual approval — blocking true agent autonomy. x402 (HTTP 402 + on-chain stablecoins) enables machine-to-machine payments without human intervention. DataHub metadata infrastructure provides the discovery layer agents need to find and trust each other's services.

What it does

Mythos x402 is a production payment gateway that settles micropayments across 8+ blockchain networks (Base, Polygon, Celo, Solana, Algorand, Ethereum, BNB Chain, XRPL). It provides 50+ paid API endpoints for AI agents (web scraping, code execution, token analysis, email sending, CAPTCHA solving) and uses DataHub metadata ingestion to build an agent service directory with trust scores and lineage tracking.

How I built it

Node.js x402-server on AWS EC2 with pm2 process management. Blockchain integration via ethers.js, @solana/web3.js, @celo/contractkit, algosdk, and ripple-lib. DataHub integration for metadata ingestion and lineage tracking of agent-to-agent transactions. 50+ service endpoints registered across multiple x402 marketplaces.

Challenges I ran into

Replay attack protection for x402 facilitator signatures — solved with nonce tracking and signature verification. Cross-chain settlement gas estimation — solved with built-in multi-chain gas tracker. Rate limiting for free tier while keeping paid tier responsive — solved with token bucket algorithm.

Accomplishments that I'm proud of

First x402 gateway supporting 8 blockchain settlement paths. 94 live services discovered and indexed on minia2a.uk. 3 confirmed on-chain paying customers. 3.4K npm downloads of the minia2a SDK. Registered on 15+ agent marketplaces and directories.

What I learned

Agent service discovery is the hardest problem — agents don't know what services exist or which are trustworthy. DataHub's metadata model with lineage tracking is perfect for building agent service registries. Machine-to-machine payments via x402 work in production TODAY.

What's next for Mythos x402 Agent Payment Gateway

Full DataHub integration for automated agent service discovery and reputation scoring. Smart contract escrow for multi-step agent workflows. Agent reputation system based on on-chain transaction history and service quality metrics. Integration with DataHub Skills and Agent Context Kit for richer agent awareness.

Built With

  • agent
  • algorand
  • api
  • blockchain
  • celo
  • datahub
  • ethereum
  • microservices
  • node.js
  • payments
  • polygon
  • solana
  • stablecoin
  • usdc
  • x402
Share this project:

Updates