Skip to main content
A ContractTransactionReceipt includes the parsed logs from a TransactionReceipt.

Extends

Properties

Accessors

fee

The total fee for this transaction, in wei.

Returns

bigint

Source

providers/provider.ts:1375

logs

The parsed logs for any Log which has a matching event in the Contract ABI.

Returns

(EventLog | Log)[]

Source

contract/wrappers.ts:98

Methods

confirmations()

Resolves to the number of confirmations this transaction has.

Returns

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

Inherited from

TransactionReceipt.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.

Inherited from

TransactionReceipt.getBlock

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.

Inherited from

TransactionReceipt.getResult

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.

Inherited from

TransactionReceipt.getTransaction

Throws

If the transaction is not found.

Source

providers/provider.ts:1400

toJSON()

Returns a JSON-compatible representation.

Returns

any

Inherited from

TransactionReceipt.toJSON

Source

providers/provider.ts:1319