Nexus

TEAL compile error: "unable to parse ... as integer"

Short answer: The integer literal does not fit a 64-bit unsigned integer (maximum 18446744073709551615).

The exact message

1 error: 2:4: unable to parse "18446744073709551616" as integer

Source: POST /v2/teal/compile, HTTP 400, captured against a public TestNet node on 2026-12-03.

Why it happens

Captured with int 18446744073709551616, which is 2^64, one more than the maximum. The message prints the literal and its line and column.

How to fix it

Wording can change between node versions. All API errors · errors.json · transaction errors · SDK errors · costs