Nexus

py-algorand-sdk OverflowError: "Integer value out of range" for an amount

Short answer: An amount of 2**64 or more does not fit in 64 bits. The SDK does not catch it when you construct the transaction; encoding fails.

The exact message

OverflowError: Integer value out of range

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

Why it happens

Captured with amount 2**64: PaymentTxn was created, and .sign(sk) raised an OverflowError that does not mention the amount.

How to fix it

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