public Optional<String> getInvalidReason() {
    return result.getInvalidReason();
  }
Return the optional invalid reason

@return the optional invalid reason
plugin-api/src/main/java/org/hyperledger/besu/plugin/data/TransactionSimulationResult.java