A TransactionReceiptParams encodes the minimal required properties for a formatted transaction receipt.

Properties

PropertyTypeDescription
blockHashstringThe block hash of the block that included this transaction.
blockNumbernumberThe block number of the block that included this transaction.
contractAddressnull | stringIf the transaction was directly deploying a contract, the to will be
null, the data will be initcode and if successful, this will be the address of the contract deployed.
cumulativeGasUsedbigintThe total amount of gas consumed during the entire block up to and including this transaction.
effectiveGasPrice?null | bigintThe actual gas price per gas charged for this transaction.
fromstringThe sender of the transaction.
gasPrice?null | bigintThe actual gas price per gas charged for this transaction.
gasUsedbigintThe amount of gas consumed executing this transaciton.
hashstringThe transaction hash.
indexnumberThe transaction index.
logsreadonly LogParams[]The logs emitted during the execution of this transaction.
logsBloomstringThe bloom filter for the logs emitted during execution of this transaction.
statusnull | numberThe status of the transaction execution. If 1 then the the transaction returned success, if 0 then the
transaction was reverted. For pre-byzantium blocks, this is usually null, but some nodes may have backfilled this
data.
tonull | stringThe target of the transaction. If null, the transaction was trying to deploy a transaction with the data as the
initi=code.
typenumberThe EIP-2718 envelope type.