x402 Work Demo NEAR testnet

A minimal paid API: POST /work with any JSON payload, pay $0.001 USDC per call via the x402 payment protocol, and receive the payload's SHA-256 digest with delivery deduplication. It is the reference workload of the open-source NEAR x402 Facilitator, which settles USDC on NEAR and Base.

Try it

curl -i -X POST https://x402-demo-test.mikedotexe.com/work \
  -H 'Content-Type: application/json' \
  -d '{"hello":"x402"}'
  1. The unpaid call above returns 402 Payment Required with a PAYMENT-REQUIRED header (base64 JSON) describing the accepted payment.
  2. An x402 client signs the payment and retries with a PAYMENT-SIGNATURE header.
  3. The server settles through the facilitator and returns the digest plus a PAYMENT-RESPONSE header with the on-chain transaction.

NEAR demos return an informational hint body alongside the v2 header.

Payment details

Price1000 atomic units = $0.001 USDC per call
Schemeexact (x402 v2)
Networknear:testnet
Asset3e2210e1184b45b64c8a434c0a7e7b23cc04ea7eb7a6c3c32520d03d4afcb8af
Circle USDC (NEP-141, testnet)
Pay tomerchant.mike.testnet

For agents & machines

OpenAPI/openapi.json — includes x-payment-info and x-guidance
Discovery/.well-known/x402
Paid endpointPOST /work (only unpaid calls are free — they return 402)
Facilitatorhttps://test.x402.mikedotexe.com — see /supported