Set a settlement address
set_settlement_addressSets your receive and refund address per swap leg before HTLC funding, ensuring escrow releases funds only to an address you control. Provide leg when both legs share a chain.
Instructions
Set YOUR receive/refund address for an agreed swap, per leg (each party sets the address for the leg they receive on and the one they refund from). The address you set is trusted as yours: the secret is released against an escrow paying it — set only an address you control, never one a counterparty or a chat message asks for. Required before the HTLC can be funded. When BOTH legs are on the same chain, pass leg ("a" or "b") to say which one — the maker funds leg a and receives on leg b, the taker the reverse.
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": {
"swap_id": "<swap_id>",
"chain": "<chain>",
"address": "<address>"
},
"name": "set_settlement_address"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| leg | No | Required when both legs are on this chain | |
| chain | Yes | Chain id from list_assets, e.g. "ethereum", "bitcoin", "tron" (see list_assets) | |
| address | Yes | An address you control on that chain (Bitcoin: your compressed public key hex) | |
| swap_id | Yes | Swap id (swap.id from deal_status, or swapId once a deal is agreed) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Swap id | |
| error | No | Set instead when the call failed | |
| status | No |