Skip to content
Sign in
Menu

Solana and USDC

Why NODRA settles in USDC on Solana, which networks and mints are used, and how amounts work.

On this page

Why Solana and USDC

Per-call payments are small, often a fraction of a cent. Solana confirms transfers in about a second at a network fee far below the payment itself, and supports a separate fee payer, which lets NODRA pay the network fee so callers need no SOL. USDC is a dollar-denominated stablecoin, so prices mean the same thing tomorrow as today.

Networks and mints

NetworkCAIP-2 idUSDC mint
Devnetsolana:EtWTRABZaYq6iMfeYKouRu166VU2xqa14zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU
Mainnetsolana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpEPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v

Amounts

USDC has 6 decimals. Every amount in NODRA's APIs and quotes is an integer string of base units: "13000" is 0.013 USDC and "1000000" is 1 USDC. Parse amounts as big integers, never as floating-point numbers.

Token accounts

  • Payers pay from their wallet's USDC associated token account. It must exist and hold enough USDC.
  • Each API's vault is a program-derived address owned by NODRA's splitter program. Its USDC token account is created at launch. Quotes name the vault as payTo; payers derive its token account.
  • Providers are paid to a USDC token account. A provider's wallet must have received USDC once (which creates the account) before an API can launch.

The splitter program

Money in a vault can leave only through a payout (called a flush on-chain), which sends the balance to two places at the vault's stored ratio: the provider's payout account and the platform fee account. There's no withdraw instruction. Anyone may trigger a payout once a vault holds the minimum; NODRA does so automatically every few minutes. Changing the ratio or the payout account pays out the existing balance first.