Skip to Content

gelatoTrackerForStore()

gelatoTrackerForStore<T>(params): void

Defined in: trackers/gelatoTracker.ts:171 

Tracks a Gelato task of the Pulsar store with gelatoFetcher (every 5 s, up to 10 consecutive failed attempts) and writes the results to the store: the transaction hash once the task is submitted, then Success or Failed with the local time as finishedTimestamp.

When tracking gives up (10 consecutive failed attempts, or the task still pending after one hour), the transaction is marked Failed and stays in the pool.

Side effects: sends requests to the Gelato API with gelatoApiKey (see createGelatoClient). The callbacks receive the transaction with every update written by the tracker.

Type Parameters

T

T extends Transaction

The application transaction type.

Parameters

params

Pick<ITxTrackingStore<T>, "updateTxParams" | "removeTxFromPool" | "transactionsPool"> & object & TrackerCallbacks<T>

The transaction, the Gelato API key, the store members and the callbacks.

Returns

void

Deprecated

Gelato relay is deprecated. Use TransactionTracker.ERC4337 and erc4337TrackerForStore instead.

Last updated on