sideswap_quote
Retrieve a read-only quote for a SideSwap Liquid asset swap. Specify your send or receive amount to preview the exchange rate and confirm before executing.
Instructions
Get a read-only price quote for a SideSwap Liquid asset swap (e.g. L-BTC ↔ USDt). Provide exactly one of send_amount or recv_amount. Use this BEFORE sideswap_execute_swap so the user can confirm the price.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | mainnet | |
| asset_id | Yes | Liquid asset ID (hex) to swap with L-BTC | |
| recv_amount | No | Amount the user wants to receive (Satoshis) | |
| send_amount | No | Amount the user is sending (Satoshis) | |
| send_bitcoins | No | True if sending L-BTC for the asset; False if sending the asset for L-BTC |