erc4337Fetcher()
erc4337Fetcher<
T>(params):Promise<void>
Defined in: trackers/erc4337Tracker.ts:69
A fetcher for initializePollingTracker from @tuwaio/pulsar-core that checks a UserOperation once through
eth_getUserOperationReceipt.
The bundler client comes from createBundlerRpcClient of @tuwaio/orbit-evm, which caches it in memory and
contacts tx.bundlerUrl, else api.pimlico.io with tx.pimlicoApiKey, else the rate-limited public.pimlico.io.
- Invalid
chainId: stops polling (keeping the transaction) and callsonFailurewith a reason. - Receipt not available yet: calls
onIntervalTickwithstatus: 'pending'. - Receipt with
success: true: stops polling (keeping the transaction) and callsonSuccesswith the bundlehash. - Receipt with
success: false: stops polling (keeping the transaction) and callsonFailurewith the revert reason. - Any other error is rethrown, so the polling tracker counts it as a failed attempt.
Type Parameters
T
T extends Erc4337FetcherTx
The tracked transaction type.
Parameters
params
PollingFetcherParams<Erc4337FetchResult, T>
The fetcher parameters provided by initializePollingTracker.
Returns
Promise<void>
A promise that resolves when the check is done.
Last updated on