Tokens

Token integration isn't available yet. This page says plainly what exists today, so you can tell the two apart.

Coming soon

There is no token API to call and nothing to configure. Any snippet you find elsewhere that claims otherwise is not ours. When it ships, the endpoints and SDK methods will appear on this page and in the API reference, no separate signup, and nothing you build today will need to be thrown away.

What exists today

One piece is already live and is the piece everything else will hang off: players can prove they own a Solana wallet, and your server can read the verified address.

Players link a wallet themselves
In Dashboard → Settings, a player connects Phantom (or a compatible wallet) and signs a one-time challenge. We store the address only after the signature checks out, so an address on an account is one that account actually controls.
Your server can read it
Verifying a player token returns solanaWallet, the verified address, or null if they haven't linked one.
Nothing is sent on-chain by us
We do not move funds, mint anything, or read balances. Linking a wallet is an identity fact about the player, nothing more.
const player = await indie.verifyToken(tokenFromBrowser);

// Same JSON as POST /api/auth/verify-token:
// { valid: true, userId, name, email, discordId, solanaWallet }
if (!player?.solanaWallet) {
  return promptPlayerToLinkWallet();
}
A linked wallet is not a payment. Treat the address as a destination a player has claimed and proved, and keep your own record of what you owe them, in player data, for instance, so you can settle it whenever and however you choose.

What to do now

  1. Finish authentication. Everything token-shaped needs a player identity your server trusts, and that part is done and stable.
  2. Ask players to link a wallet only where it earns its keep, a prompt before they have a reason costs you sign-ups.
  3. Keep balances, rewards and entitlements in player data, keyed by the player id rather than by a wallet address. Wallets change; the account doesn't.
  4. Watch this page. It changes from “coming soon” to endpoints when the feature is real, and not before.

How to test it

There's nothing to test yet beyond the wallet fact. Link a wallet on your own account, then verify one of your own player tokens (see Authentication) and confirm solanaWallet comes back with the address you linked, and null on an account without one. The sandbox covers login, analytics and player data; it will grow a token section on the day there is one.