NavenDocs
NavenDocs
Introduction
Mint NFTRobinhood x402
Back to Naven Network
Demo

Robinhood x402

Test a Robinhood Chain x402 payment-gated API.

Robinhood Chain

Demo endpoint

Naven exposes a Robinhood Chain x402 smoke-test endpoint for validating paid API requests with USDG.

FieldValue
Endpointhttps://api.naven.network/x402-test/ping
Local endpointhttp://localhost:20001/x402-test/ping
NetworkRobinhood Chain eip155:4663
TokenUSDG
Asset0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168
Price$0.0001
Receiver0xb9A67f59bcfd3b45fe1ca2c55A55C19B2b35B58f
Facilitatorhttps://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/ping

After 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:api

Run the Robinhood x402 smoke test with a funded payer key:

X402_TEST_PRIVATE_KEY=0x... bun run api:test:x402:robinhood

The 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.

Mint NFT

Mint an NFT through an x402 payment-gated API.

On this page

Demo endpointPayment flowLocal smoke test