Skip to main content

Introduction

Swap exchanges one token for another from a Swig wallet. Use it for portfolio rebalancing or payments that need a different asset. The SDK prepares a swap transaction; review its amounts and destination before signing and submitting.

SDK examples

Prepare a swap

Use a wallet handle with its requester authority, or WalletClient in Rust.

Bound execution settings

Limit routing account count and transaction lifetime when preparing a swap for your application’s execution budget.

Input

Errors