BentoSDK

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':

StackWhat it isGeo
creditsa platform-managed balance (test / play)not geo-gated
usdcreal on-chain USDC collateralgeo-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.

On this page