Post
Topic
Board Project Development
Re: Need Some logical help on UTXOS for my CEX.
by
nonlogs
on 07/07/2025, 06:05:49 UTC
I agree with Hatchy, two speed options would be enough. Fast and slow.  A "fast" option would mean paying a premium fee, ensuring inclusion in the next few blocks. A "slow" option would mean being part of the regular batched transactions.

The second suggestion, using multiple hot wallets, may not be an ideal solution because it increases the attack surface and adds layers of complexity. I think better UTXO management would be a smarter solution.  By creating multiple, roughly equal-sized UTXOs, you can select the most appropriate number of UTXOs for the exact amount being withdrawn, minimizing the size of the transaction (and thus the fee) for a given speed. This will also allow you to service a "fast" withdrawal without necessarily needing to wait for a change output from a larger, slower batch transaction.


I think most of the exchanges use consolidation of UTXOs to reduce the number of inputs so that it reduces the transaction size. But even if I run something like deconsolidation, it would still put a heavy load on my pocket by doing that periodically. I have to spend more network fees to keep a certain size of UTXOs. Even if I do that, it never guarantees that the user would request the same amount of withdrawal, and I would have to use UTXOs reserved for medium so that I can allow withdrawal for fast users or put the fast users on wait based on withdrawal time and process the medium user's withdrawal, because technically medium user requested before the fast user and we’ve got no UTXOs. If I don't follow this rule, those who are on medium would stay pending until all fast withdrawals are processed, and if there are thousands of withdrawals, it could even take days for a medium withdrawal to be processed.