Nexus

Algorand "logic eval error: err opcode executed"

Short answer: The contract reached an explicit err instruction, which always fails the call. It is a deliberate "this path is not allowed".

What the node printed

Pattern:

logic eval error: err opcode executed. Details: app=<APP_ID>, pc=<PC>, opcodes=<nearby opcodes>

Captured verbatim from a testnet node on 2026-12-03:

logic eval error: err opcode executed. Details: app=778835193, pc=109, opcodes=intc_0 // 1; return; label3:; err; label4:

Why it happens

The test app branched into err and the node answered "err opcode executed" with the app id, pc and nearby opcodes. Contract routers commonly end with err for the case where no method or OnComplete value matched, so a call with the wrong method selector, wrong argument count or wrong on-completion type often lands here. That is how routers are commonly written; the capture itself only proves the message for a direct err.

How to fix it

// ARC-4: use the ABI helpers so the selector and argument encoding are built for you
const atc = new algosdk.AtomicTransactionComposer(); atc.addMethodCall({ appID, method, methodArgs, sender, signer, suggestedParams });

Method: this message was produced on purpose against a live testnet node (https://testnet-api.algonode.cloud) on 2026-12-03. Message wording can change between node versions. All errors: index · errors.json.