x402 paid endpoint

Word of the Day

A pay-per-use HTTP endpoint. Send an x402 payment of 0.001 USDC on Base mainnet and the endpoint returns today's curated word with its definition. Agents can discover it automatically through the x402 Bazaar, and every settlement is attributed to a Base Builder Code.

GET/api/word-of-the-day
Price
0.001 USDC
Network
Base mainnet (eip155:8453)
Scheme
exact
Facilitator
Coinbase CDP
Pay to
$PAY_TO_ADDRESS (set in env)
Builder code
$BUILDER_CODE (set in env)
Discovery
Listed in the x402 Bazaar

How it works

  1. An unpaid request returns 402 Payment Required with the payment requirements challenge.
  2. An x402 client (or Bazaar-aware agent) signs and submits the 0.001 USDC payment on Base mainnet.
  3. The Coinbase CDP facilitator verifies and settles the payment, appending the ERC-8021 Builder Code suffix to the settlement calldata.
  4. The endpoint responds with today's word, part of speech, and definition.