erc4337TrackerForStore()
erc4337TrackerForStore<
T>(params):Promise<void>
Defined in: trackers/erc4337Tracker.ts:248
Tracks an ERC-4337 UserOperation of the Pulsar store in two stages and writes the results to the store:
- Bundler: polls erc4337Fetcher every 2 s (up to 60 consecutive failed attempts). When the UserOperation
is bundled, writes the bundle transaction
hash. A reverted UserOperation, or 60 failed attempts, marks the transactionFailed. - On-chain: runs evmTracker for the bundle transaction and writes the details, confirmations and the final
Success,FailedorReplacedstatus. Withoutconfig, the transaction is markedSuccessas soon as it is bundled.
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
Erc4337TrackerForStoreParams<T>
The transaction, the wagmi config, the store members and the callbacks.
Returns
Promise<void>
A promise that resolves once stage 1 has started, or when stage 2 has finished if it started directly.
Last updated on