quote_swap
Calculate how much output you would receive when swapping one asset for another. Use this tool to answer questions like 'how much ETH would I get for 100 RUNE?' Returns expected output amount, fees, slippage, estimated time, and a memo for executing the swap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | The amount in base units (1e8 for most assets) | |
| to_asset | Yes | The target asset (e.g. ETH.ETH) | |
| affiliate | No | The affiliate address or THORName | |
| from_asset | Yes | The source asset (e.g. BTC.BTC) | |
| destination | No | The destination address for the swap output | |
| affiliate_bps | No | The affiliate fee in basis points (0-1000; protocol caps total affiliate fees at 1000 bps) |