Crypto-Expert / HoboNickels

HoboNickels Repo
MIT License
14 stars 22 forks source link

RPC sendtoaddress, choose the newest coins/blocks #16

Open BorisBP opened 10 years ago

BorisBP commented 10 years ago

I have no idea how the sendtoaddress choose the coins/blocks to send in RPC, because there is no "coin control" features in RPC.

sendtoaddress <HoboNickelsaddress> <amount> [comment] [comment-to]

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.

Tranz5 commented 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/