Version: 0.15.2
Transaction
A handy interface to know the status of a blockchain transaction
Hierarchy
- Transaction
Index
Constructors
Properties
Methods
Constructors
constructor
+ new Transaction(wallet
: object, id
: string): Transaction
Defined in src/transaction.ts:25
Parameters:
▪ wallet: object
Name | Type |
---|---|
ethereum? | EthereumWallet |
▪ id: string
Returns: Transaction
Properties
id
• id: string
Defined in src/transaction.ts:28
Methods
status
▸ status(confirmations?
: undefined | number): Promise‹TransactionStatus›
Defined in src/transaction.ts:36
throws
Ethereum: If the Receipt cannot be retrieved despite the transaction being mined.
Parameters:
Name | Type | Description |
---|---|---|
confirmations? | undefined | number | Optional number of confirmations to wait for before returning. |
Returns: Promise‹TransactionStatus›
The transaction status by asking the blockchain.