blocknetdx / blocknet

Official Blocknet cryptocurrency wallet
https://www.blocknet.org
MIT License
214 stars 94 forks source link

Add optional UTXOs parameter #559

Open shrnkld opened 3 years ago

shrnkld commented 3 years ago

Scenario: When dxMakePartialOrder or dxMakeOrder are called, there is currently no way to control where funds come from in the order and there is no way to prevent XBridge from autosplitting UTXOs on calls to dxMakePartialOrder.

The use_all_funds param is being added to allow for proper segregation and accounting of funds within a wallet, which in turn allows a trading bot to trade multiple pairs more conveniently.

To do:

Goal: Prevent paying extra fees and incurring delays due to autosplitting UTXOs when using trade bots.

Ref: https://api.blocknet.co/#dxmakepartialorder

shrnkld commented 3 years ago

Test builds: https://gitlab.com/blocknetdx/blocknet/-/pipelines/334555871