randomfactsx402
A pay-per-use HTTP endpoint. Send an x402 payment of 0.001 USDC on Base mainnet and the endpoint returns a random fact as JSON. Agents can discover it automatically through the x402 Bazaar, and every settlement is attributed to a Base Builder Code (ERC-8021).
GET
/api/random-fact- Price
- 0.001 USDC
- Network
- Base mainnet (eip155:8453)
- Scheme
- exact
- Facilitator
- Coinbase CDP
- Pay to
- PAY_TO_ADDRESS (env)
- Builder code
- BUILDER_CODE (env)
- Discovery
- Listed in the x402 Bazaar
How it works
- An unpaid request returns
402 Payment Requiredwith the payment requirements challenge. - An x402 client (or Bazaar-aware agent) signs and submits the 0.001 USDC payment on Base mainnet.
- The Coinbase CDP facilitator verifies and settles the payment, attributing the builder code.
- The endpoint responds with a random fact.