Skip to Content
API referencePulsar EvmSrcComponentscheckTransactionsTracker()

@tuwaio/pulsar-core-monorepo


checkTransactionsTracker()

checkTransactionsTracker(actionTxKey, walletType): object

Defined in: packages/pulsar-evm/src/utils/checkTransactionsTracker.ts:24 

Determines which transaction tracker to use based on the format of the transaction key and the wallet type.

This function is a critical routing step after a transaction is submitted. It follows a priority order:

  1. Checks for a Gelato Task ID.
  2. Checks if the wallet type is ‘safe’.
  3. Defaults to a standard Ethereum tracker.

Parameters

actionTxKey

ActionTxKey

The key returned from the transaction submission function (e.g., a hash or a Gelato task object).

walletType

string

The type of the wallet that initiated the action (e.g., ‘safe’, ‘metaMask’).

Returns

object

An object containing the determined tracker type and the final string-based transaction key.

tracker

tracker: TransactionTracker

txKey

txKey: string

Last updated on