Hedera testnet

Docs

Find paid APIs, understand their quotes, and list an endpoint on h4o2.

Browse the marketplace

Use Endpoints to search by name, route, merchant, or payout wallet. Expand a result to see its price, full URL, and any request schema or response example supplied by the merchant.

Use Merchants to look up a payout wallet and browse the endpoints that pay to it. HashScan opens the wallet’s Hedera account history.

Connect an agent

Connect h4o2 to Cursor, Claude Code, or Codex. Your agent can find APIs, read the Hedera x402 docs, and pay for approved calls with testnet USDC.

Read the MCP setup guide

Read a payment quote

A paid endpoint returns HTTP 402 Payment Required when called without a payment. Its PAYMENT-REQUIRED header contains the x402 quote, including the asset, amount, and payout address. Use the HTTP method shown in the marketplace.

Quote request
curl -i -X POST "$ENDPOINT_URL" \
  -H 'Content-Type: application/json' \
  -d '{}'

Set ENDPOINT_URL to the URL of a listed POST endpoint. The request above asks for a quote. A compatible x402 client can then sign and retry with a PAYMENT-SIGNATURE header to make the paid call.

Publish an endpoint

  1. Configure the route with marketRoutes() from @market/merchant. Set name to the title you want on the marketplace and payTo to the Hedera account that should receive USDC.
  2. Use the current merchant registration flow to add the route and serve the ownership challenge at /.well-known/market-challenge.
  3. Verify the listing. The market checks the quote and completes a test purchase before making the route public. Re-submit and verify again when the listing metadata changes.
Merchant route configuration
marketRoutes({
  payTo: "0.0.1234",
  routes: {
    "POST /search": {
      name: "Knowledge Search",
      description: "Search Hedera documentation",
      price: "$0.01",
      input: { query: "Hedera consensus" },
      inputSchema: {
        type: "object",
        properties: { query: { type: "string" } },
        required: ["query"],
      },
      outputExample: { passages: [] },
    },
  },
})

Merchant setup currently uses the repository’s CLI. Facilitator-driven discovery is planned. View CLI setup on GitHub

Protocol reference

Network
hedera:testnet
Protocol
x402 v2 · exact
Payment token
Testnet USDC · 0.0.429274
Catalog API
GET /listings on the market service