executeTransaction
interface ExecuteTransactionParams {
txDataResponse: TransactionDataResponse;
quote: Quote;
step: TransactionStep;
provider: BrowserProvider | WalletClient;
walletAdapter: WalletAdapter;
cosmosClient: SigningStargateClient | SigningCosmWasmClient;
solanaRpcUrl?: string;
}
// Example implementation
const txnResponse = await getNextTxn({
routeId: quote.routeId,
stepId: step.stepId,
});
// Example implementation
const txHash = await executeTransaction({
txDataResponse,
quote,
step,
provider: ethersProvider,
walletAdapter: solanaWallet,
cosmosClient: cosmosClient,
solanaRpcUrl: "https://api.mainnet-beta.solana.com",
});Last updated