Nexus

TEAL compile error: "unsupported version"

Short answer: The #pragma version number is higher than the node you compiled on supports.

The exact message

1:16: unsupported version: 99
3: return opcode was introduced in v2

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

Why it happens

Captured with #pragma version 99 on a TestNet node. The compiler reported 1:16: unsupported version: 99, then also return opcode was introduced in v2, because it fell back to an old version to keep checking the rest.

How to fix it

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