Skip to content
Sign in
Menu

Developer overview

How developers use NODRA to discover paid APIs and call them with a per-request USDC payment.

On this page

How it works for you

You don't sign up, get an API key or start a subscription. You find an API in the directory, call its gateway URL, and pay for each call with a USDC transfer on Solana that you sign at the time of the call. The payment is your credential.

  1. Find an API and its gateway URL in the directory.
  2. Call it. The gateway answers 402 Payment Required with a quote.
  3. Check the quote, sign a USDC transfer for it, and repeat the call with the payment in a header.
  4. Get the API's answer, plus a receipt naming the Solana transaction.

What you need

  • A Solana wallet (a keypair your code can sign with) with a USDC token account holding enough for the calls you'll make. On devnet, use devnet USDC for the mint named in the quote.
  • An HTTP client and a way to build and sign Solana transactions, such as @solana/kit.
  • No SOL: NODRA is the fee payer for every payment.

What NODRA guarantees

  • You pay the amount in the quote, which is the price shown in the directory.
  • Your payment is submitted only after the API has answered in a way its billing rule charges for. Otherwise nothing is submitted and no money moves.
  • A signed payment can be used once. Sending it again doesn't charge you twice.

Tooling status