null
properties are defined.
Implements
QiTransactionLike
QiTransactionResponseParams
Properties
Property | Modifier | Type | Description |
---|---|---|---|
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. |
hash | readonly | string | The transaction hash. |
index | readonly | bigint | The index within the block that this transaction resides at. |
provider | readonly | Provider | The provider this is connected to, which will influence how its methods will resolve its async inspection methods. |
signature | readonly | string | The signature. |
type | readonly | number | The EIP-2718 transaction envelope type. This is 0 for legacytransactions types. |
Methods
confirmations()
Returns
Promise
<number
>
A promise resolving to the number of confirmations.
Source
providers/provider.ts:2383getBlock()
Parameters
Parameter | Type | Description |
---|---|---|
shard | Shard | The shard to fetch the block from. |
Returns
Promise
<null
| Block
>
A promise resolving to the block or null if not found.
Source
providers/provider.ts:2344getTransaction()
Returns
Promise
<null
| QiTransactionResponse
>
A promise resolving to the transaction, or null if not found.
Throws
If the transaction is not found.Source
providers/provider.ts:2369isMined()
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 QiMinedTransactionResponse
True if the transaction has been mined or false otherwise.
Source
providers/provider.ts:2462removedEvent()
Returns
OrphanFilter
The orphan filter.
Source
providers/provider.ts:2471reorderedEvent()
other
.
Parameters
Parameter | Type | Description |
---|---|---|
other ? | TransactionResponse | The other transaction to compare against. |
Returns
OrphanFilter
The orphan filter.
Source
providers/provider.ts:2484replaceableTransaction()
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
QiTransactionResponse
The replaceable transaction.
Source
providers/provider.ts:2506toJSON()
Returns
any