x402 Work Demo NEAR mainnet
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.mikedotexe.com/work \
-H 'Content-Type: application/json' \
-d '{"hello":"x402"}'
- The unpaid call above returns
402 Payment Requiredwith aPAYMENT-REQUIREDheader (base64 JSON) describing the accepted payment. - An x402 client signs the payment and retries with a
PAYMENT-SIGNATUREheader. - The server settles through the facilitator and returns the digest plus a
PAYMENT-RESPONSEheader with the on-chain transaction.
NEAR demos return an informational hint body alongside the v2 header.
Payment details
| Price | 1000 atomic units = $0.001 USDC per call |
|---|---|
| Scheme | exact (x402 v2) |
| Network | near:mainnet |
| Asset | 17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1Circle USDC (NEP-141) |
| Pay to | count.mike.near |
For agents & machines
| OpenAPI | /openapi.json — includes x-payment-info and x-guidance |
|---|---|
| Discovery | /.well-known/x402 |
| Paid endpoint | POST /work (only unpaid calls are free — they return 402) |
| Facilitator | https://x402.mikedotexe.com — see /supported |