Execute the route

//   Execute the swap and deposit transaction
  const tx = (await squid.executeRoute({
  })) as unknown as ethers.providers.TransactionResponse;
  const txReceipt = await tx.wait();

If you want to execute yourself, manually. You can get all the data needed for execution from route.transactionRequest . Including calldata, target address, value to send and gas recommendations.

Last updated