Create a prefilled sendstables link
create_swap_linkBuild a link that opens sendstables with the transfer prefilled. The user logs in, reviews the live quote and confirms; nothing executes automatically. Also returns a short human summary with the current fee preview (when an amount is given). Same chain (from = to): the link opens "send to another address" with the recipient prefilled (pass recipient; without one the user types it in the app). Give the user the url.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "create_swap_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination chain slug; the same as `from` for a same-chain send to another address. | |
| ref | No | Optional attribution tag for the link (letters, digits, - or _). | |
| from | Yes | Source chain slug. | |
| amount | No | USDC amount the user pays, fees included, as a decimal string, e.g. "50" or "10.5". | |
| recipient | No | Destination address on `to` (0x… EVM, base58 Solana, G… Stellar). Omit to move funds to the user's own wallet on `to`. Required when `from` and `to` are the same chain (a same-chain send to someone else). Only use an address the user gave you. |