Return type of transaction receipt according to the Ethereum RPC standard.

interface TransactionReceiptRPC {
    blockHash: string;
    blockNumber: string;
    contractAddress: string;
    cumulativeGasUsed: string;
    effectiveGasPrice: string;
    from: string;
    gasUsed: string;
    logs: TransactionReceiptLogsRPC[];
    logsBloom: string;
    status: "0x0" | "0x1";
    to: string;
    transactionHash: string;
    transactionIndex: string;
    type: "0x0" | "0x1" | "0x2";
}

Properties

blockHash: string

32 bytes. Hash of the block including this transaction.

blockNumber: string

Block number including this transaction.

contractAddress: string

20 bytes. The address of the contract created, if the transaction was a contract creation, otherwise null.

cumulativeGasUsed: string

The total amount of gas used when this transaction was executed in the block.

effectiveGasPrice: string

The actual value per gas deducted from the sender's account. Before EIP-1559, equal to the gas price.

from: string

20 bytes. The address of the sender.

gasUsed: string

The total amount of gas used when this transaction was executed in the block.

Array of log objects, which this transaction generated.

logsBloom: string

256 bytes. Bloom filter for light clients to quickly retrieve related logs.

status: "0x0" | "0x1"

Either 1 (success) or 0 (failure)

to: string

20 bytes. The address of the receiver. null when it's a contract creation transaction

transactionHash: string

32 bytes. Hash of the transaction.

transactionIndex: string

Hexadecimal of the transaction's index position in the block.

type: "0x0" | "0x1" | "0x2"

The transaction type.