Open BorisBP opened 10 years ago
Meskalyn, sorry this took so long, yes this can be done via 3 commands. listunspent createrawtransaction sendrawtransaction
This 2 pages may help. http://wiki.hobonickels.info/index.php?title=RPC_Commands https://cryptocointalk.com/topic/6681-signrawtransaction-multisig/
I have no idea how the sendtoaddress choose the coins/blocks to send in RPC, because there is no "coin control" features in RPC.
An option to choose the "newest blocks" can be good to allow oldest coins/blocks to stakes.
For me, my concern is: I'm running a pool. There is always some coins remaining on the hot wallet. They never stakes because the sendtoaddress command is sending the oldest one first (I think to lower the tx fees).
Maybe another command (I have no idea how the coin control feature work because I don't have a GUI) like sendrawtransaction, or another command to create a raw transaction from can be used, but right now, I don't have any idea.