Nexus

algosdk "Value X is not a uint64"

Short answer: A number that must be an unsigned 64-bit integer (an amount, asset id, round or fee) was negative or larger than 18,446,744,073,709,551,615.

The exact message

Value -1 is not a uint64

Source: Error, captured locally with algosdk 3.9.0 on 2026-12-03.

Why it happens

Three captures gave this message: amount -1, amount 2^64 (18446744073709551616) and asset id -5. The message prints the offending value.

How to fix it

Wording can change between SDK versions. All SDK errors · errors.json · node errors · x402 errors.