set_swap_address
Set 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| leg | No | Required when both legs are on this chain | |
| chain | Yes | ||
| address | Yes |