SiaFoundation / walletd

A new Sia wallet
https://sia.tech/software/walletd
MIT License
14 stars 9 forks source link

Add /wallet/distribute_funds #7

Closed chris124567 closed 2 years ago

chris124567 commented 2 years ago

Port https://github.com/lukechampine/us/blob/master/wallet/builder.go#L128 from us and add a corresponding API endpoint.

chris124567 commented 2 years ago

:+1:

peterjan commented 2 years ago

Looks great, coincidentally I was adding similar functionality to renterd and we ended up taking different approaches. Would you mind taking a look at my PR here and ping me on Discord? I was converting my PR to mimic yours but because our response objects differ so much I'd like to briefly discuss it.

chris124567 commented 2 years ago

Now /wallet/split funds the transaction and we handle ErrDisabled like any other error :+1:

chris124567 commented 2 years ago

:+1: