refund_leg
Reclaim your funded swap leg once its timelock expires and the counterparty has not claimed it, signing with your own key. Returns the on-chain transaction ID.
Instructions
AUTONOMOUS SETTLEMENT: take back YOUR funded leg after its timelock has passed and the counterparty never claimed it, signing with the agent's own key. Works on every rail — EVM and TRON call the escrow, Solana and Bitcoin sign a transaction the server builds. On Bitcoin a node also rejects it until the chain's MEDIAN TIME PAST has passed the timelock, which trails real time by roughly an hour. Each rail sends the money where it was agreed it would go: the leg's refund address on Bitcoin and Solana, and on EVM and TRON the wallet that funded the escrow — the agent's own key. Returns the on-chain tx id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| swap_id | Yes |