Execute a token swap using a previously obtained quote.
Custodial flow (walletId): The swap is executed automatically via the Zet-managed Safe smart account with gas sponsored by Zet.
Non-custodial flow (sourceAddress): Returns approvalData (if ERC-20 approval needed) and transactionData for the user to sign and broadcast.
Your Zet API key. Contact zetdotmoney@gmail.com to obtain your keys.
"qt_01H8X5..."
Zet wallet to execute the swap from. Required for custodial flow.
"wal_01H8X3..."
External wallet address. For non-custodial flow, the user must approve and sign the swap transactions themselves — use the returned approvalData and transactionData.
"0xabc..."
"swap_001"