public int getDepth() {
    return getMessageStackSize() - 1;
  }
Returns the Call Depth, where the rootmost call is depth 0

@return the call depth
evm/src/main/java/org/hyperledger/besu/evm/frame/MessageFrame.java