Build a confirmation link
swap_linkBuild a changenow.io link with the pair, the amount, the recipient address and the memo already filled in, so the user checks the numbers on the real page and presses Confirm themselves. Opening the link creates nothing. This is the recommended way to finish a swap: the user sees the rate and the address with their own eyes, which no amount of care in a chat transcript can replace. Use create_swap instead only when the user has explicitly approved this exact amount and address.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Asset the user receives, canonical id. | |
| from | Yes | Asset the user sends, canonical id. | |
| memo | No | Memo or destination tag to prefill. | |
| locale | No | Two letter locale for the page, for example "es". English needs no locale. | |
| address | No | Recipient address to prefill. The user can still change it on the page. | |
| amount_to | No | Amount to prefill as the amount received. Implies a fixed rate on the page. | |
| rate_type | No | Which rate the page opens with. | float |
| amount_from | No | Amount to prefill as the amount sent. | |
| refund_address | No | Refund address to prefill. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| notes | Yes | ||
| prefilled | Yes | ||
| creates_order | Yes |