Erc4337TrackerConfig<T>
Erc4337TrackerConfig<
T> =object
Defined in: trackers/erc4337Tracker.ts:157
The configuration of erc4337Tracker.
Type Parameters
T
T extends Erc4337FetcherTx & Pick<Transaction, "pending">
The tracked transaction type.
Properties
maxRetries?
optionalmaxRetries?:number
Defined in: trackers/erc4337Tracker.ts:184
The number of consecutive failed attempts after which polling stops. Defaults to 60.
onFailure
onFailure: (
result?) =>void
Defined in: trackers/erc4337Tracker.ts:170
Called when the UserOperation reverted or the chain ID is invalid, and without arguments after maxRetries
consecutive failed attempts.
Parameters
result?
The result with the failure reason, if any.
Returns
void
onIntervalTick?
optionalonIntervalTick?: (result) =>void
Defined in: trackers/erc4337Tracker.ts:175
Called on every tick while the UserOperation is not bundled.
Parameters
result
The pending result.
Returns
void
onSuccess
onSuccess: (
result) =>void
Defined in: trackers/erc4337Tracker.ts:164
Called when the UserOperation succeeded.
Parameters
result
The result; hash is the bundle transaction hash.
Returns
void
pollingInterval?
optionalpollingInterval?:number
Defined in: trackers/erc4337Tracker.ts:182
The delay before each attempt, in milliseconds. Defaults to 2000.
removeTxFromPool?
optionalremoveTxFromPool?: (txKey) =>void
Defined in: trackers/erc4337Tracker.ts:180
Called when polling stops after maxRetries consecutive failed attempts.
Parameters
txKey
string
The userOpHash.
Returns
void
tx
tx:
T
Defined in: trackers/erc4337Tracker.ts:159
The UserOperation to track (see Erc4337FetcherTx); polling starts only if pending is true.