executeTransaction
Executes a single transaction step with the provided transaction data. This method is used internally by executeQuote
but can also be used directly for more granular control over transaction execution.
The method handles different transaction types based on the network:
For EVM chains: Supports regular transactions for on chain transactions, EIP-712 typed data signing for gasless transactions, and untyped message signing for meson finance transactions.
For Solana: Handles Solana-specific transaction formats
For Cosmos: Manages Cosmos SDK transaction types
The provider
, walletAdapter
, and cosmosClient
parameters are mutually exclusive - you should provide the appropriate one based on the chain you're interacting with:
For EVM chains: provide the
provider
parameterFor Solana: provide the
walletAdapter
parameterFor Cosmos chains: provide the
cosmosClient
parameter
The method returns the transaction hash of the executed transaction, which can be used to monitor its status using checkStatus
or pollTransactionStatus
.
Last updated
Was this helpful?