sideswap_peg_out
Initiate a SideSwap peg-out to move L-BTC back to Bitcoin mainchain: broadcast the L-BTC send, and BTC arrives at your Bitcoin address after federation sweep.
Instructions
Initiate a SideSwap peg-out (L-BTC → BTC) and broadcast the L-BTC send. After 2 Liquid confirmations (~2 min) and the federation BTC sweep (typically 15–60 min total), BTC arrives at the user's Bitcoin address. Fees: 0.1% + Bitcoin network fee. Standard way to move L-BTC back to Bitcoin mainchain.
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": {
"wallet_name": "<wallet_name>",
"amount": "<amount>",
"btc_address": "<btc_address>"
},
"name": "sideswap_peg_out"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount in Satoshis to peg out | |
| password | No | Password to decrypt mnemonic (if encrypted at rest) | |
| btc_address | Yes | Destination Bitcoin address (bc1...) | |
| wallet_name | Yes | Liquid wallet to send L-BTC from | |
| password_file | No | Path to a local file containing the wallet password; keeps the password out of the conversation. Do not combine with password. |