Skip to main content
In Mainnet invite mode, a wallet without Mainnet access gets it by redeeming an invite code at sign-in; wallets with access can mint codes to share. Invite mode is per-deployment: branch on the refusal code, don’t hard-code it.

Surface Map

Access Rules

  • Access is lasting. A wallet that redeemed a code, or signed in while invite mode was off, never needs one again; only deactivation blocks it. Any wallet without access needs a code, existing accounts included.
  • A code is redeemed only when needed. A wallet with access: code ignored. A wallet without access while invite mode is off: not redeemed, but still checked, so it can get 429 (cooldown) or 503.
  • A code redeems once, for the first wallet to sign in with it.

Sign-In With a Code

Sign in without a code first; on INVITE_CODE_REQUIRED, ask for a code and sign in again. React’s useAuth().login takes the same inviteCode option and throws the same APIError.
Codes are exactly 10 case-sensitive letters or digits. Check the format first and never change the case: a malformed code is refused as INVITE_CODE_INVALID and counts toward the cooldown. Each login is a new wallet prompt. If the user arrived with a code (say, from an ?invite= link your app defines), pass it on the first sign-in; on 429 or 503 from that attempt, retry without the code before showing the refusal.

Refusals to Handle

Share Invite Codes

Allowance: one initial code, plus one per 250,000 USDC of Mainnet volume.
  • status: issued, redeemed, or revoked. Only issued entries carry code; others show milestone and dates.
  • milestone 0 is the initial code; N is the Nth 250,000 USDC. A revoked code never refunds its slot.
  • mainnetVolumeUsd is a decimal string; don’t parse it as a float for comparisons.
  • Both calls refuse delegated agent sessions with 403 (owner wallet only) and return 503 when temporarily unavailable; retry.
Full shapes and errors: Mainnet Invite Codes.

Handling Codes Safely

  • Until redeemed, a code is a bearer secret: never log it or send it to analytics or error reports; don’t store codes beyond the session.
  • Keep codes out of URLs sent to third parties (referrer headers, link previews); for invite links, read the code on arrival and drop it from the address bar.