Constructor
new PendingTransactionTracker(config)
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
object | non optional configuration object consists of: Properties
|
Methods
(async) _checkIfNonceIsTaken(txMeta) → {boolean}
checks to see if a confirmed txMeta has the same nonce
Parameters:
Name | Type | Description |
---|---|---|
txMeta |
Object | txMeta object |
Returns:
- Type
- boolean
(async) _checkPendingTx(txMeta)
Ask the network for the transaction to see if it has been include in a block
Parameters:
Name | Type | Description |
---|---|---|
txMeta |
Object | the txMeta object |
Fires:
- tx:failed
- tx:confirmed
- tx:warning
(async) _resubmitTx(txMeta, latestBlockNumber) → {string}
resubmits the individual txMeta used in resubmitPendingTxs
Parameters:
Name | Type | Description |
---|---|---|
txMeta |
Object | txMeta object |
latestBlockNumber |
string | hex string for the latest block number |
Fires:
- tx:retry
Returns:
txHash
- Type
- string
resubmitPendingTxs(block)
Will resubmit any transactions who have not been confirmed in a block
Parameters:
Name | Type | Description |
---|---|---|
block |
object | a block object |
Fires:
- tx:warning
(async) updatePendingTxs()
checks the network for signed txs and releases the nonce global lock if it is