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:
- Checks for a Gelato Task ID.
- Checks if the wallet type is ‘safe’.
- Defaults to a standard Ethereum tracker.
Parameters
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