Skip to main content
A QuaiTransactionResponse includes all properties about a Quai transaction that was sent to the network, which may or may not be included in a block. The TransactionResponse.isMined | TransactionResponse.isMined can be used to check if the transaction has been mined as well as type guard that the otherwise possibly null properties are defined.

Extended by

Implements

  • QuaiTransactionLike
  • QuaiTransactionResponseParams

Properties

Methods

confirmations()

Resolve 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:1921

getBlock()

Resolves to the Block that this transaction was included in. This will return null if the transaction has not been included yet.

Parameters

Returns

Promise<null | Block> A promise resolving to the block.

Source

providers/provider.ts:1882

getTransaction()

Resolves to this transaction being re-requested from the provider. This can be used if you have an unmined transaction and wish to get an up-to-date populated instance.

Returns

Promise<null | QuaiTransactionResponse> A promise resolving to the transaction, or null if not found.

Source

providers/provider.ts:1906

isMined()

Returns true if this transaction has been included. This is effective only as of the time the TransactionResponse was instantiated. To get up-to-date information, use getTransaction. This provides a Type Guard that this transaction will have non-null property values for properties that are null for unmined transactions.

Returns

this is QuaiMinedTransactionResponse True if the transaction has been mined.

Throws

If the transaction was replaced, repriced, or cancelled.

Source

providers/provider.ts:2179

removedEvent()

Returns a filter which can be used to listen for orphan events that evict this transaction.

Returns

OrphanFilter The orphan filter.

Source

providers/provider.ts:2188

reorderedEvent()

Returns a filter which can be used to listen for orphan events that re-order this event against other.

Parameters

Returns

OrphanFilter The orphan filter.

Source

providers/provider.ts:2201

replaceableTransaction()

Returns a new TransactionResponse instance which has the ability to detect (and throw an error) if the transaction is replaced, which will begin scanning at startBlock. This should generally not be used by developers and is intended primarily for internal use. Setting an incorrect startBlock can have devastating performance consequences if used incorrectly.

Parameters

Returns

QuaiTransactionResponse The replaceable transaction.

Source

providers/provider.ts:2223

toJSON()

Returns a JSON-compatible representation of this transaction.

Returns

any

Source

providers/provider.ts:1850

wait()

Resolves once this transaction has been mined and has confirms blocks including it (default: 1) with an optional timeout. This can resolve to null only if confirms is 0 and the transaction has not been mined, otherwise this will wait until enough confirmations have completed.

Parameters

Returns

Promise<null | TransactionReceipt> A promise resolving to the transaction receipt.

Throws

If the transaction was replaced, repriced, or cancelled.

Source

providers/provider.ts:1953