Short answer: You passed a fractional or imprecise number as an amount. Amounts are whole numbers of base units.
Value 0.5 is not a safe integer
Source: Error, captured locally with algosdk 3.9.0 on 2026-12-03.
The capture passed an amount of 0.5. Algorand amounts are integers: 1 ALGO is 1,000,000 microAlgos and USDC has 6 decimals, so 0.5 USDC is 500000.
BigInt(Math.round(dollars * 1e6)) for 6-decimal assets.Wording can change between SDK versions. All SDK errors · errors.json · node errors · x402 errors.