Skip to Content

InitialTransactionParams

InitialTransactionParams = Pick<BaseTransaction, "description" | "title" | "type" | "requiredConfirmations" | "payload"> & Pick<EvmTransaction, "bundlerUrl" | "pimlicoApiKey"> & object

Defined in: packages/pulsar-core/src/types.ts:270 

The metadata of a transaction passed to executeTxAction (as params, without actionFunction) and kept in initialTx.

Type Declaration

actionFunction

actionFunction: (…args) => Promise<ActionTxKey | undefined>

Signs and submits the transaction and returns its ActionTxKey, or undefined when the user cancelled. executeTxAction calls it without arguments. The adapters’ retryTxAction call it with { config, ...payload } (EVM) or { client, ...payload } (Solana).

Parameters

args

…unknown[]

No arguments from executeTxAction; one object from retryTxAction.

Returns

Promise<ActionTxKey | undefined>

adapter

adapter: OrbitAdapter

The adapter that handles the transaction. When no configured adapter has this key, the first one is used.

desiredChainID

desiredChainID: number | string

The chain the transaction must be sent on: a numeric chain ID for EVM (the wallet is asked to switch if needed), or a Solana cluster (compared with the cluster of the connected wallet) as a moniker such as 'devnet', a Wallet Standard chain such as 'solana:devnet' or a CAIP-2 chain ID with the genesis hash.

tracker?

optional tracker?: TransactionTracker

Forces a tracker. Required for ERC-4337 (TransactionTracker.ERC4337), EIP-5792 batches (TransactionTracker.EIP5792, the action returns the batch ID); otherwise the adapter picks one from the returned key and the connector.

withTrackedModal?

optional withTrackedModal?: boolean

When true, the transaction is created with isTrackedModalOpen: true.

Last updated on