Skip to main content
A TransactionReceipt includes additional information about a transaction that is only available after it has been mined.

Extended by

Implements

Properties

Accessors

fee

The total fee for this transaction, in wei.

Returns

bigint

Source

providers/provider.ts:1375

logs

The logs for this transaction.

Returns

readonly Log[]

Source

providers/provider.ts:1312

Methods

confirmations()

Resolves to the number of confirmations this transaction has.

Returns

Promise<number> A promise resolving to the number of confirmations.

Throws

If the block is not found.

Source

providers/provider.ts:1426

getBlock()

Resolves to the block this transaction occurred in.

Parameters

Returns

Promise<Block> A promise resolving to the block.

Throws

If the block is not found.

Source

providers/provider.ts:1386

getResult()

Resolves to the return value of the execution of this transaction. Support for this feature is limited, as it requires an archive node with the debug_ or trace_ API enabled.

Returns

Promise<string> A promise resolving to the return value of the transaction.

Throws

If the transaction is not found.

Source

providers/provider.ts:1416

getTransaction()

Resolves to the transaction this transaction occurred in.

Returns

Promise<TransactionResponse | ExternalTransactionResponse> A promise resolving to the transaction.

Throws

If the transaction is not found.

Source

providers/provider.ts:1400

toJSON()

Returns a JSON-compatible representation.

Returns

any

Source

providers/provider.ts:1319