x402 paid endpoint

Timezone Converter API

A pay-per-call HTTP endpoint that converts a time between any two IANA time zones (DST-aware). Send an x402 payment of 0.001 USDC on Base mainnet and it returns the converted time as JSON. Agents can discover it automatically through the x402 Bazaar, and every settlement is attributed to a Base Builder Code.

GET/api/convert-timezone
Price
0.001 USDC per call
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

Query parameters

fromrequired
Source IANA time zone, e.g. America/New_York
torequired
Target IANA time zone, e.g. Asia/Tokyo
timeoptional
Wall-clock time in the source zone (2026-07-04T15:30) or 'now'

Example request

GET /api/convert-timezone?from=America/New_York&to=Asia/Tokyo&time=2026-07-04T15:30

How it works

  1. An unpaid request returns 402 Payment Required with the payment requirements and the declared extensions.
  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 it, appending the ERC-8021 Builder Code suffix.
  4. The endpoint responds with the converted time as JSON.
Built with v0