Skip to Content

evmTrackerForStore()

evmTrackerForStore<T>(params): Promise<void>

Defined in: trackers/evmTracker.ts:300 

Runs evmTracker for a transaction of the Pulsar store and writes the results to it through updateTxParams: hash at start, the transaction details, confirmations, and finally status Success/Failed with pending: false and the block timestamp, Replaced with replacedTxHash, or Failed with the normalized error. The transaction is never removed from the pool.

The callbacks receive the transaction with every update written by the tracker (createTxUpdater from @tuwaio/pulsar-core). A reverted transaction calls onError with Error('Transaction reverted').

Type Parameters

T

T extends Transaction

The application transaction type.

Parameters

params

Pick<EVMTrackerParams, "config"> & Pick<ITxTrackingStore<T>, "updateTxParams" | "transactionsPool"> & object & TrackerCallbacks<T>

The transaction, the wagmi config, the store members and the callbacks.

Returns

Promise<void>

A promise that resolves when tracking has finished.

Last updated on