gelatoFetcher()
gelatoFetcher(
client): (params) =>Promise<void>
Defined in: packages/pulsar-evm/src/trackers/gelatoTracker.ts:110
Creates a reusable fetcher function for initializePollingTracker that queries the
Gelato RPC endpoint (relayer_getStatus) for a task’s status using an authenticated client.
The fetcher interprets the numeric status codes and calls the appropriate polling callbacks:
- GelatoStatusCode.Success →
onSuccess - GelatoStatusCode.Rejected / GelatoStatusCode.Reverted →
onFailure - GelatoStatusCode.Submitted →
onIntervalTick(to update the tx hash)
Parameters
client
A viem transport client configured for the Gelato API.
config
TransportConfig<string>
request
EIP1193RequestFn
value?
Record<string, any>
Returns
The fetcher function.
(
params):Promise<void>
Parameters
params
PollingFetcherParams<GelatoTaskStatus, Transaction>
Returns
Promise<void>
Last updated on