eth / org.apache.tuweni.eth / TransactionReceipt / <init>

<init>

TransactionReceipt(stateRoot: Bytes32, cumulativeGasUsed: Long, bloomFilter: LogsBloomFilter, logs: MutableList<Log>)

Creates an instance of a state root-encoded transaction receipt.

Parameters

stateRoot - the state root for the world state after the transaction has been processed

cumulativeGasUsed - the total amount of gas consumed in the block after this transaction

bloomFilter - the bloom filter of the logs

logs - the logs generated within the transaction

TransactionReceipt(status: Int, cumulativeGasUsed: Long, bloomFilter: LogsBloomFilter, logs: MutableList<Log>)

Creates an instance of a status-encoded transaction receipt.

Parameters

status - the status code for the transaction (1 for success and 0 for failure)

cumulativeGasUsed - the total amount of gas consumed in the block after this transaction

bloomFilter - the bloom filter of the logs

logs - the logs generated within the transaction