Short answer: The contract touched a box that the transaction did not list in its box references.
Pattern:
logic eval error: invalid Box reference 0x<hex of the box name>. Details: app=<APP_ID>, pc=<PC>, ...
Captured verbatim from a testnet node on 2026-12-03:
logic eval error: invalid Box reference 0x6d79626f78. Details: app=778835193, pc=134, opcodes=return; label5:; pushbytes 0x6d79626f78 // "mybox"; box_get
The test app read the box named "mybox" without it being declared, and the node answered "invalid Box reference 0x6d79626f78". The value after 0x is the box name in hex: 6d79626f78 is the bytes of "mybox". Every box an app call reads or writes must be listed in the transaction (or be available through the group's pooled references).
{ appIndex, name } to the transaction's boxes list.allowUnnamedResources to have the node report which resources the call needs.makeApplicationNoOpTxnFromObject({ sender, appIndex, appArgs, boxes: [{ appIndex, name: new TextEncoder().encode('mybox') }], 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.