Skip to content

Type Alias: Receipt

type Receipt = {
  blobGasPrice?: bigint;
  blobGasUsed?: bigint;
  blockHash: Hash;
  blockNumber: bigint;
  contractAddress: Address | null;
  cumulativeGasUsed: bigint;
  effectiveGasPrice: bigint;
  from: Address;
  gasUsed: bigint;
  logs: Log[];
  logsBloom: Hex;
  root?: Hash;
  status: "success" | "reverted";
  to: Address | null;
  transactionHash: Hash;
  transactionIndex: number;
  type: TransactionTypeName;
};

Defined in: apps/submitter/lib/types/ethereum.ts:60

Type of EVM transaction receipts.

Properties

blobGasPrice?

optional blobGasPrice: bigint;

Defined in: apps/submitter/lib/types/ethereum.ts:70

The actual value per gas deducted from the sender's account for blob gas. Only specified for blob transactions as defined by EIP-4844.


blobGasUsed?

optional blobGasUsed: bigint;

Defined in: apps/submitter/lib/types/ethereum.ts:73

The amount of blob gas used. Only specified for blob transactions as defined by EIP-4844.


blockHash

blockHash: Hash;

Defined in: apps/submitter/lib/types/ethereum.ts:76

Hash of block containing this transaction


blockNumber

blockNumber: bigint;

Defined in: apps/submitter/lib/types/ethereum.ts:79

Number of block containing this transaction


contractAddress

contractAddress: Address | null;

Defined in: apps/submitter/lib/types/ethereum.ts:82

Address of new contract or null if no contract was created


cumulativeGasUsed

cumulativeGasUsed: bigint;

Defined in: apps/submitter/lib/types/ethereum.ts:85

Gas used by this and all preceding transactions in this block


effectiveGasPrice

effectiveGasPrice: bigint;

Defined in: apps/submitter/lib/types/ethereum.ts:91

Pre-London, it is equal to the transaction's gasPrice. Post-London, it is equal to the actual gas price paid for inclusion.


from

from: Address;

Defined in: apps/submitter/lib/types/ethereum.ts:94

Transaction sender


gasUsed

gasUsed: bigint;

Defined in: apps/submitter/lib/types/ethereum.ts:97

Gas used by this transaction


logs

logs: Log[];

Defined in: apps/submitter/lib/types/ethereum.ts:100

List of log objects generated by this transaction


logsBloom

logsBloom: Hex;

Defined in: apps/submitter/lib/types/ethereum.ts:103

Logs bloom filter


root?

optional root: Hash;

Defined in: apps/submitter/lib/types/ethereum.ts:106

The post-transaction state root. Only specified for transactions included before the Byzantium upgrade.


status

status: "success" | "reverted";

Defined in: apps/submitter/lib/types/ethereum.ts:109

success if this transaction was successful or reverted if it failed


to

to: Address | null;

Defined in: apps/submitter/lib/types/ethereum.ts:112

Transaction recipient or null if deploying a contract


transactionHash

transactionHash: Hash;

Defined in: apps/submitter/lib/types/ethereum.ts:115

Hash of this transaction


transactionIndex

transactionIndex: number;

Defined in: apps/submitter/lib/types/ethereum.ts:118

number of this transaction in the block


type

type: TransactionTypeName;

Defined in: apps/submitter/lib/types/ethereum.ts:121

Transaction type