Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: likl3sfuhjh on May 26, 2013, 03:37:17 PM



Title: How to sendmany with low transaction fee
Post by: likl3sfuhjh on May 26, 2013, 03:37:17 PM
What options do i have to sendmany bitcoins with a small transaction fee. Bitcoin-qt dosnt allow custom fees for dust payments, so what other platforms can i use that will allow me to set my fee.

Thanks


Title: Re: How to sendmany with low transaction fee
Post by: DannyHamilton on May 26, 2013, 03:43:59 PM
createrawtransaction
signrawtransaction
sendrawtransaction


You can set any fee you like.

However, if you don't set a high enough fee, your connected peers will refuse to relay the transaction.  Your intended recipient won't see it, it won't show up anywhere on the bitcoin network, and it won't get any confirmations.


Title: Re: How to sendmany with low transaction fee
Post by: likl3sfuhjh on May 26, 2013, 03:48:22 PM
sendmany "" '{"address"}'


this is what im using now can you mabey give an example of how createrawtransaction would be used in the console. i cant connect directly with the api side cause i cant open the ports on this router.

I know there is a wiki page but those dont explain what the json output is supposed to look like


Title: Re: How to sendmany with low transaction fee
Post by: DannyHamilton on May 26, 2013, 04:13:08 PM
Code:
createrawtransaction [{\"txid\":\"firstUnspentOutputTransactionIDHere\",\"vout\":#},{\"txid\":\"secondUnspentOutputTransactionIDHere\",\"vout\":#},{\"txid\":\"thirdUnspentOutputTransactionIDHere\",\"vout\":#}] {\"1yourChangeAddressHere\":0.00000000,\"1firstRecipientAddrHere\":0.00000000,\"1secondRecipientAddrHere\":0.00000000,\"1thirdRecipientAddrHere\":0.00000000}

Replacing:

  • The various TransactionID and RecipientAddr with the appropriate information
  • # with the output index of the output that you intend to use as an input into the transaction
  • 0.00000000 with the amount of BTC you intend to send to each recipient

Subtract the sum of the outputs from the sum of the inputs.  The difference must be greater than or equal to zero, or the transaction is invalid.  If the difference is greater than zero, then the difference is the transaction fee that the miner will receive.  You can adjust the fee by changing the selected inputs, outputs, or altering the value sent to your change address.