Robinhood x402
Test a Robinhood Chain x402 payment-gated API.

Demo endpoint
Naven exposes a Robinhood Chain x402 smoke-test endpoint for validating paid API requests with USDG.
| Field | Value |
|---|---|
| Endpoint | https://api.naven.network/x402-test/ping |
| Local endpoint | http://localhost:20001/x402-test/ping |
| Network | Robinhood Chain eip155:4663 |
| Token | USDG |
| Asset | 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168 |
| Price | $0.0001 |
| Receiver | 0xb9A67f59bcfd3b45fe1ca2c55A55C19B2b35B58f |
| Facilitator | https://facilitator.naven.network |
Payment flow
Call the endpoint without a payment header to receive an x402 402 Payment Required challenge. The challenge includes the Robinhood Chain payment requirements and can be signed by an x402-compatible client.
curl -i https://api.naven.network/x402-test/pingAfter signing the challenge, send the payment signature header back to the same endpoint. A successful request returns a JSON response with message: "paid pong" and exposes the settlement result in the PAYMENT-RESPONSE header.
Local smoke test
Start the API server from the repository root:
bun run dev:apiRun the Robinhood x402 smoke test with a funded payer key:
X402_TEST_PRIVATE_KEY=0x... bun run api:test:x402:robinhoodThe command fetches the x402 challenge, creates a payment payload for Robinhood Chain, submits the paid request, and prints the payment status, response header, and API response body.