public long getGasEstimate() {
    return transaction.getGasLimit() - result.getGasRemaining();
  }
Estimated gas used by the transaction

@return estimated gas used
plugin-api/src/main/java/org/hyperledger/besu/plugin/data/TransactionSimulationResult.java