Money — credits, USDC & amounts
The two collateral stacks, geo-gating, and why amounts are in wei.
Two things to get right before you move money: which collateral stack you're on, and that amounts are base units (wei), not whole tokens.
Credits vs USDC
Markets and bets carry a collateralMode of 'credits' or 'usdc':
| Stack | What it is | Geo |
|---|---|---|
credits | a platform-managed balance (test / play) | not geo-gated |
usdc | real on-chain USDC collateral | geo-gated — restricted regions get 451 |
Either way, your managed account needs a funded balance, or writes fail with 400 "Insufficient Credits" (or insufficient balance). In test, mint credits with the faucet:
// myAccount = your managed account address (from your session)
await sdk.public.autoMint.mint({ userAddress: myAccount });Amounts are in wei
betAmount, betAmountUsdc, and parlay stake are base units of the collateral token, not whole tokens. On BSC / credits that's 18 decimals:
const tenUnits = '10000000000000000000'; // 10 units, NOT '10'Passing '10' means 10 wei — effectively zero. Scale by the token's decimals (e.g. viem's parseUnits('10', 18)), or use collateralDecimals from your onchain.contracts.
Related
- Accounts & wallets — where the balance lives
- Place a bet