Set a swap address
set_swap_addressSet your receive/refund address for a swap leg (Bitcoin: the compressed pubkey hex). Required before funding. An address that receives money must be one this account signed in with, or proved from a signed-in web session — a prove_wallet proof made with the API key does not count. When BOTH legs are on the same chain, pass leg ("a" or "b") — 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": {
"id": "<id>",
"chain": "<chain>",
"address": "<address>"
},
"name": "set_swap_address"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Swap id | |
| leg | No | Required when both legs are on this chain | |
| chain | Yes | Chain id from list_assets, e.g. "ethereum", "bitcoin", "tron" | |
| address | Yes | An address you control on that chain (Bitcoin: compressed public key hex) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| swap | No |