WalletSwapNamespace
Wallet swap namespace (full operations with signing)Methods
price()
Get a price quote for a swap
Returns: Promise resolving to
SwapPrice with exchange rate, amounts, price impact, route, and gas estimate
Source ↗
getMarket()
Get a specific swap market
Returns: Promise resolving to
SwapMarket information
Source ↗
getMarkets()
Get available swap markets across all providers
Returns: Promise resolving to array of
SwapMarket from all providers
Source ↗
supportedChainIds()
Get all supported chain IDs across all providers
Returns: Array of unique SupportedChainId values supported by any configured provider
Source ↗
execute()
Execute a token swap
Returns: Promise resolving to
SwapReceipt with transaction receipt, amounts, assets, price, and price impact
Source ↗