swap_refund
Refund a swap that failed to pay out: after an Arkade timelock, send funds to a specified Ark address; for stablecoin deposits, omit the address to return the deposit for recovery.
Instructions
Refund a swap that did not pay out. Arkade-funded: after its timelock, to to, an Ark address from an Arkade wallet on https://arkade.computer (Lightning swaps need no refund). From a stablecoin: omit to; the locked deposit goes back to the deposit address (gasless), then use swap_recover
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>"
},
"name": "swap_refund"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| to | No |