Instruction errors (runtime)

CallDepth

Appears as Cross-program invocation call depth too deep

Instruction

CallDepth

“Cross-program invocation call depth too deep”

The chain of CPIs exceeded the maximum depth (4 levels, so a top-level instruction plus 4 nested CPIs).

Common causes

  • Deeply nested composability: program A → B → C → D → E.

How to fix it

  • Flatten the call graph or move logic into fewer programs.

Decode another error

Try: