revert_swap_offer
Release coins locked by an unused swap half so the wallet can spend them again. Cancel a posted board offer by offerId or an unlisted half by id before its swap lands.
Instructions
Release the coins of a swap half this wallet built (build_swap_offer, take_swap_offer or send_token) that is not going to be used. Until then, or until the swap lands, the coins count as spent in this wallet. By id for a half listed by get_swap_wallet, also one restored from an earlier process; by offerId for a board offer this wallet posted, from the board's copy of the half, which works after a restart and needs the offer closed (expired or retired; retire_swap_offer first while it is open). It does not recall an offer somebody already holds: to make a published offer worthless, spend its coins in another swap. A half whose swap landed leaves the list; its coins are spent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| offerId | No | The board entry, instead of id |