Short answer: The amount was negative or not an integer (for example 0.5).
WrongAmountType: amount (amt) must be a non-negative integer
Source: captured locally with py-algorand-sdk 2.12.0 on 2026-12-03.
Captured twice: amount -1 and amount 0.5 gave the identical message, raised at construction.
int(round(x * 10**6)) for 6-decimal assets.Wording can change between SDK versions. All Python SDK errors · errors.json · JavaScript SDK errors · API errors · node errors