XChain Platform Action - SWEEP
This action transfers TICK balances, ownerships, and/or open-offer escrows from the SOURCE address to a DESTINATION address.
PARAMS
| Name | Type | Description |
|---|---|---|
VERSION |
String | Format Version |
DESTINATION |
String | Address where swept tokens / ownerships / escrows are credited |
BALANCES |
String | Sweep TICK balances to DESTINATION (default 1) |
OWNERSHIPS |
String | Sweep TICK ownerships to DESTINATION (default 1) |
ORDERS |
String | Cancel open ORDERs from SOURCE and credit escrowed balance/ownership to DESTINATION (default 0) |
SWAPS |
String | Cancel open SWAPs from SOURCE and credit escrowed balance/ownership to DESTINATION (default 0) |
DISPENSERS |
String | Close open DISPENSERs from SOURCE and credit remaining escrow (balance or ownership) to DESTINATION (default 0) |
MEMO |
String | Optional memo to include |
Formats
Version 0
VERSION|DESTINATION|BALANCES|OWNERSHIPS|ORDERS|SWAPS|DISPENSERS|MEMO
Examples
SWEEP|0|1JDogZS6tQcSxwfxhv6XKKjcyicYA4Feev|1|1|1|1|1
Full cleanup: sweeps balances + ownerships AND closes every open ORDER, SWAP, and DISPENSER from SOURCE. All escrowed balances and any escrowed ownerships route to DESTINATION.
SWEEP|0|1BoogrfDADPLQpq8LMASmWQUVYDp4t2hF9|0|1|0|0|0
Sweeps only `TICK` ownerships to DESTINATION; balances and open offers are untouched.
SWEEP|0|1HotWalletZZZZZZZZZZZZZZZZZZZZZZZ|1|0|1|0|0
Cleans out a hot address: sweeps all token balances and cancels any open ORDERs (escrow credited to DESTINATION), but leaves ownerships and dispensers in place.
SWEEP|0|1FinalAddressZZZZZZZZZZZZZZZZZZZZ|1|1|1|1|1|Retiring this address
All-in cleanup with a memo.
Rules
- Each of
BALANCES,OWNERSHIPS,ORDERS,SWAPS,DISPENSERSmust be0or1 MEMOcharacters NOT allowed are:- pipe
|(used as field separator) - semicolon
;(used as command separator)
- pipe
BALANCES=1andOWNERSHIPS=1only touch ticks whereSOURCEcurrently holds the balance / is the current owner. Escrowed balances and escrowed ownerships are reachable only via the correspondingORDERS/SWAPS/DISPENSERSflag — closing the offer is the only way to release the escrow.ORDERS=1: every openORDERfromSOURCEon the current chain is cancelled. The escrowedGIVE_TICKbalance is credited toDESTINATION. If the order escrowed ownership (GIVE_OWNERSHIP=1), the ownership record is delivered toDESTINATION. Orders with pendingCOINPAYobligations follow the existing deferred-finalization rules inORDER.SWAPS=1: same asORDERS=1, applied to openSWAPs. Escrowed balance or ownership routes toDESTINATION.DISPENSERS=1: every openDISPENSERfromSOURCEis closed via the standard dispenser-close window (1 hour). Remaining escrowed balance or escrowed ownership is credited toDESTINATION(seeDISPENSER).- Escrow routing via
ORDERS/SWAPS/DISPENSERSis independent of theOWNERSHIPSflag — escrowed ownership is in protocol custody, not inSOURCE’s ownership records, soOWNERSHIPS=1alone cannot reach it.
Notes
DISPENSERS=1closure is delayed by the standard dispenser-close window (1 hour). Escrow routing toDESTINATIONhappens at close time, not at sweep time.- An offer’s escrow is always routed by the offer-close path;
DESTINATIONbecomes the new escrow recipient regardless of theOWNERSHIPSsetting.
Copyright © 2025–2026 Dankest, LLC
Based on XChain Platform by Dankest, LLC – https://dankest.llc
Licensed under the GNU Affero General Public License v3.0 (AGPL-3.0-or-later) with a commercial license available for proprietary use.
You may use, modify, and distribute this material under the terms of the License. See LICENSE and NOTICE for full terms. See the licensing overview.