public Optional<Bytes> getChainId() {
    Operation op = operations.get(ChainIdOperation.OPCODE);
    if (op instanceof ChainIdOperation chainIdOperation) {
      return Optional.of(chainIdOperation.getChainId());
    } else {
      return Optional.empty();
    }
  }
Return the ChainId this Executor is using, or empty if the EVM version does not expose chain
ID.

@return the ChainId, or empty if not exposed.
evm/src/main/java/org/hyperledger/besu/evm/EVM.java