erc4337TrackerForStore()
erc4337TrackerForStore<
T>(params):Promise<void>
Defined in: trackers/erc4337Tracker.ts:250
Tracks an ERC-4337 UserOperation of the Pulsar store in two stages and writes the results to the store:
- Bundler: polls erc4337Fetcher with the first look 2 s away, then by its age every 2 s for five minutes and
every 30 s after, and every minute after 60 consecutive failed attempts, as a bundler
that cannot be reached says nothing about the UserOperation. When the UserOperation is bundled, writes the bundle
transaction
hash. Only a reverted UserOperation 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 tracking has started, whichever stage it starts at.
Last updated on