Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: WhyFhy on February 26, 2022, 06:14:16 AM



Title: Automating sendmany with % distribution from core
Post by: WhyFhy on February 26, 2022, 06:14:16 AM
sendmany "" {"address":amount,...} ( minconf "comment" ["address",...] replaceable conf_target "estimate_mode" fee_rate verbose )
Basically, i want to use core to split up weekly/daily mining deposits in percentages automatically
from pool to landing wallet , from landing wallet to wallet1(50%) wallet2(20%) wallet3(20%) wallet4(10%) fee deducted from landing wallet.
Will this require external input (c# maybe?) or can it be done in core?


Title: Re: Automating sendmany with % distribution from core
Post by: NotATether on February 26, 2022, 12:09:21 PM
Bitcoin Core does not have a scheduling system so it can't automatically run RPC calls. You need to use MacOS/Linux cron or Windows Task Scheduler with a time interval and have it call some batch script which in turn makes the RPC call you want it to make.


Title: Re: Automating sendmany with % distribution from core
Post by: WhyFhy on February 26, 2022, 06:24:07 PM
Bitcoin Core does not have a scheduling system so it can't automatically run RPC calls. You need to use MacOS/Linux cron or Windows Task Scheduler with a time interval and have it call some batch script which in turn makes the RPC call you want it to make.
Notated thank you.