# Gavin Andresen # 2012-10-20 12:56:34 # https://bitcointalk.org/index.php?topic=118994.msg1285581#msg1285581 It should be pretty easy to use the raw transactions API to implement a "send all". @p{par} You would do: @p{brk} listunspent @p{--}@s{gt} list of inputs @p{brk} Then estimate a reasonable fee (this is the hardest bit, but listunspent tells you amount and #confirmations and you can estimate tx size based on number of inputs) @p{brk} createrawtransaction/signrawtransaction/sendrawtransaction @p{par} Somebody should write a little python tool we can ship in contrib/