Skip to Content
API referencePulsar EvmSrcComponentscheckIsGelatoAvailable()

@tuwaio/pulsar-core-monorepo


checkIsGelatoAvailable()

checkIsGelatoAvailable(chainId): Promise<boolean>

Defined in: packages/pulsar-evm/src/utils/checkIsGelatoAvailable.ts:20 

Checks if the Gelato Relay service supports a given chain ID.

This function fetches the list of supported chain IDs from the Gelato API and caches the result in memory for 5 minutes to reduce network requests.

Parameters

chainId

number

The chain identifier to check.

Returns

Promise<boolean>

A promise that resolves to true if Gelato supports the chain, false otherwise.

Last updated on