wallet.execute(...) is the escape
hatch when you still want hosted preparation but need your own instruction set.
What it does
wallet.execute(...) prepares a transaction for an existing Swig wallet from a
list of Solana instructions you provide.
Use it when:
- the transfer and swap helpers are not enough
- you already know the exact instruction bundle you want to run
- you still want the backend to prepare the final wallet transaction
Example
What still applies
This is still a prepared transaction result. That means:- your app still checks
signatureRequests - the client still signs if required
- your app still chooses direct submission or sponsor submission

