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: packages/submitter/lib/types/ethereum.ts:56

Type of EVM transaction receipts.

Properties

blobGasPrice?

optional blobGasPrice: bigint;

Defined in: packages/submitter/lib/types/ethereum.ts:66

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: packages/submitter/lib/types/ethereum.ts:69

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


blockHash

blockHash: Hash;

Defined in: packages/submitter/lib/types/ethereum.ts:72

Hash of block containing this transaction


blockNumber

blockNumber: bigint;

Defined in: packages/submitter/lib/types/ethereum.ts:75

Number of block containing this transaction


contractAddress

contractAddress: Address | null;

Defined in: packages/submitter/lib/types/ethereum.ts:78

Address of new contract or null if no contract was created


cumulativeGasUsed

cumulativeGasUsed: bigint;

Defined in: packages/submitter/lib/types/ethereum.ts:81

Gas used by this and all preceding transactions in this block


effectiveGasPrice

effectiveGasPrice: bigint;

Defined in: packages/submitter/lib/types/ethereum.ts:87

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: packages/submitter/lib/types/ethereum.ts:90

Transaction sender


gasUsed

gasUsed: bigint;

Defined in: packages/submitter/lib/types/ethereum.ts:93

Gas used by this transaction


logs

logs: Log[];

Defined in: packages/submitter/lib/types/ethereum.ts:96

List of log objects generated by this transaction


logsBloom

logsBloom: Hex;

Defined in: packages/submitter/lib/types/ethereum.ts:99

Logs bloom filter


root?

optional root: Hash;

Defined in: packages/submitter/lib/types/ethereum.ts:102

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


status

status: "success" | "reverted";

Defined in: packages/submitter/lib/types/ethereum.ts:105

success if this transaction was successful or reverted if it failed


to

to: Address | null;

Defined in: packages/submitter/lib/types/ethereum.ts:108

Transaction recipient or null if deploying a contract


transactionHash

transactionHash: Hash;

Defined in: packages/submitter/lib/types/ethereum.ts:111

Hash of this transaction


transactionIndex

transactionIndex: number;

Defined in: packages/submitter/lib/types/ethereum.ts:114

number of this transaction in the block


type

type: TransactionTypeName;

Defined in: packages/submitter/lib/types/ethereum.ts:117

Transaction type