Interface TransactionReceipt


public interface TransactionReceipt
A transaction receipt, containing information pertaining to a transaction execution.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.hyperledger.besu.datatypes.LogsBloomFilter
    Returns the Bytes for the logs generated by the transaction
    long
    Returns the total amount of gas consumed in the block after the transaction has been processed.
    List<? extends Log>
    Returns the logs generated by the transaction.
    Optional<org.apache.tuweni.bytes.Bytes>
    Returns the ABI-encoded revert reason for the failed transaction (if applicable)
    int
    Returns the status code for the status-encoded transaction receipt
  • Method Details

    • getCumulativeGasUsed

      long getCumulativeGasUsed()
      Returns the total amount of gas consumed in the block after the transaction has been processed.
      Returns:
      the total amount of gas consumed in the block after the transaction has been processed
    • getLogs

      List<? extends Log> getLogs()
      Returns the logs generated by the transaction.
      Returns:
      the logs generated by the transaction
    • getBloomFilter

      org.hyperledger.besu.datatypes.LogsBloomFilter getBloomFilter()
      Returns the Bytes for the logs generated by the transaction
      Returns:
      the Bytes for the logs generated by the transaction
    • getStatus

      int getStatus()
      Returns the status code for the status-encoded transaction receipt
      Returns:
      the status code if the transaction receipt is status-encoded; otherwise -1
    • getRevertReason

      Optional<org.apache.tuweni.bytes.Bytes> getRevertReason()
      Returns the ABI-encoded revert reason for the failed transaction (if applicable)
      Returns:
      the ABI-encoded revert reason for the failed transaction (if applicable)