Get Swap Quote
get_swap_quoteFetch a THORChain swap quote for an asset pair. Assets use CHAIN.SYMBOL notation (e.g. BTC.BTC, ETH.ETH, ETH.USDC-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48). Amount is in 1e8 base units (1 BTC = 100000000). Quotes are indicative and expire quickly; the returned memo and inbound address must not be reused after expiry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount to swap in 1e8 base units | |
| to_asset | Yes | Destination asset, e.g. ETH.ETH | |
| from_asset | Yes | Source asset, e.g. BTC.BTC | |
| destination | No | Optional destination address; required for a quote with a usable memo | |
| streaming_interval | No | Optional streaming swap interval in blocks |