Nexus

py-algorand-sdk WrongAmountType: "amount (amt) must be a non-negative integer"

Short answer: The amount was negative or not an integer (for example 0.5).

The exact message

WrongAmountType: amount (amt) must be a non-negative integer

Source: captured locally with py-algorand-sdk 2.12.0 on 2026-12-03.

Why it happens

Captured twice: amount -1 and amount 0.5 gave the identical message, raised at construction.

How to fix it

Wording can change between SDK versions. All Python SDK errors · errors.json · JavaScript SDK errors · API errors · node errors