Short answer: A condition in the smart contract was false at the instruction named by pc, so the app call was rejected.
Pattern:
logic eval error: assert failed pc=<PC>. Details: app=<APP_ID>, pc=<PC>, opcodes=<nearby opcodes>
Captured verbatim from a testnet node on 2026-12-03:
logic eval error: assert failed pc=106. Details: app=778835193, pc=106, opcodes=return; label2:; intc_1 // 0; assert
The test app executed int 0; assert and the node answered "assert failed pc=106", then printed the app id, the program counter and the opcodes around it. The pc is a byte offset into the compiled program, not a line number. The opcodes in the Details part show which assert it was, but not why the condition was false.
await algod.compile(teal).sourcemap(true).do() returns it), or read the opcodes printed after "opcodes=".simulateTransactions with an exec trace to see the stack before the assert.const req = new algosdk.modelsv2.SimulateRequest({ txnGroups: [...], allowEmptySignatures: true,
execTraceConfig: new algosdk.modelsv2.SimulateTraceConfig({ enable: true, stackChange: true }) });
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.