Skip to Content
Packages@tuwaio/pulsar-evmFunctionseip5792TrackerForStore()

eip5792TrackerForStore()

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

Defined in: trackers/eip5792Tracker.ts:191 

Tracks an EIP-5792 call batch of the Pulsar store in two stages and writes the results to the store:

  1. Wallet: polls the batch status every 2 s, and every minute after 60 consecutive failed attempts (e.g. while no wallet is connected, as the batch may be mined by then). When the wallet has executed the batch, writes the transaction hash. Only a failed batch marks the transaction Failed.
  2. On-chain: follows the executing transaction with evmTracker and writes the details, confirmations and the final Success, Failed or Replaced status.

If tx.hash is already set (tracking resumed after a reload), stage 1 is skipped. The transaction is never removed from the pool. The callbacks receive the transaction with every update written by the tracker.

Type Parameters

T

T extends Transaction

The application transaction type.

Parameters

params

Eip5792TrackerForStoreParams<T>

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

Returns

Promise<void>

A promise that resolves once tracking has started, whichever stage it starts at.

Last updated on