sideswap_quote
Get a read-only price quote for a SideSwap Liquid asset swap (e.g., L-BTC ↔ USDt) using a send or receive amount, so users can confirm the price 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"asset_id": "<asset_id>"
},
"name": "sideswap_quote"
}
}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 |