null
properties are defined.
Extended by
Implements
QuaiTransactionLike
QuaiTransactionResponseParams
Properties
Property | Modifier | Type | Description |
---|---|---|---|
accessList | readonly | null | AccessList | The EIP-2930 access list for transaction types that support it, otherwise null . |
blockHash | readonly | null | string | The blockHash of the block that this transaction was included in. This is null for pending transactions. |
blockNumber | readonly | null | number | The block number of the block that this transaction was included in. This is null for pending transactions. |
chainId | readonly | bigint | The chain ID. |
data | readonly | string | The data. |
from | readonly | string | The sender of this transaction. It is implicitly computed from the transaction pre-image hash (as the digest) and the signature using ecrecover. |
gasLimit | readonly | bigint | The maximum units of gas this transaction can consume. If execution exceeds this, the entries transaction is reverted and the sender is charged for the full amount, despite not state changes being made. |
gasPrice | readonly | null | bigint | The maximum fee (per unit of gas) to allow this transaction to charge the sender. |
hash | readonly | string | The transaction hash. |
index | readonly | bigint | The index within the block that this transaction resides at. |
nonce | readonly | number | The nonce, which is used to prevent replay attacks and offer a method to ensure transactions from a given sender are explicitly ordered. When sending a transaction, this must be equal to the number of transactions ever sent by from . |
provider | readonly | Provider | The provider this is connected to, which will influence how its methods will resolve its async inspection methods. |
signature | readonly | Signature | The signature. |
to | readonly | null | string | The receiver of this transaction. If null , then the transaction is an initcode transaction. This means the result of executing thedata will be deployed as a new contract on chain (assuming it does not revert) and the address may be computed using getCreateAddress. |
type | readonly | number | The EIP-2718 transaction envelope type. This is 0 for legacytransactions types. |
value | readonly | bigint | The value, in wei. Use formatEther to format this value as ether. |
Methods
confirmations()
Returns
Promise
<number
>
A promise resolving to the number of confirmations.
Throws
If the block is not found.Source
providers/provider.ts:1921getBlock()
Parameters
Parameter | Type | Description |
---|---|---|
shard | Shard | The shard to fetch the block from. |
Returns
Promise
<null
| Block
>
A promise resolving to the block.
Source
providers/provider.ts:1882getTransaction()
Returns
Promise
<null
| QuaiTransactionResponse
>
A promise resolving to the transaction, or null if not found.
Source
providers/provider.ts:1906isMined()
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:2179removedEvent()
Returns
OrphanFilter
The orphan filter.
Source
providers/provider.ts:2188reorderedEvent()
other
.
Parameters
Parameter | Type | Description |
---|---|---|
other ? | TransactionResponse | The other transaction to compare against. |
Returns
OrphanFilter
The orphan filter.
Source
providers/provider.ts:2201replaceableTransaction()
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
Parameter | Type | Description |
---|---|---|
startBlock | number | The block number to start scanning for replacements. |
Returns
QuaiTransactionResponse
The replaceable transaction.
Source
providers/provider.ts:2223toJSON()
Returns
any
Source
providers/provider.ts:1850wait()
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
Parameter | Type | Description |
---|---|---|
_confirms ? | number | The number of confirmations to wait for. |
_timeout ? | number | The number of milliseconds to wait before rejecting. |
Returns
Promise
<null
| TransactionReceipt
>
A promise resolving to the transaction receipt.