Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: bitcoinspot.nl on November 29, 2013, 10:38:31 AM



Title: Help needed writing script for send bitcoins from command line - will pay reward
Post by: bitcoinspot.nl on November 29, 2013, 10:38:31 AM
Hi everyone

i am in need for a script with which i can send 0.0001 bitcoins from the command line with a 0.0001 transaction fee.
I used to do this with bitcoind but i cant get the transaction fee lower then 0.0005.

Is there anyone who can help me out ? / maybe write a script / code a little program that can be run in a command prompt in windows?
I am willing to pay a reward for you hard work :)

Greetings
Roland.


Title: Re: Help needed writing script for send bitcoins from command line - will pay reward
Post by: moderate on November 29, 2013, 10:46:28 AM
bitcoind settxfee 0.0001
bitcoind sendtoaddress somebitcoinaddress 0.0001

That will very likely cause a fee of 0.0001 to be used, unless you have way too many, and only, dust.


Title: Re: Help needed writing script for send bitcoins from command line - will pay reward
Post by: loquitus_of_borg on November 29, 2013, 10:57:54 AM
You can set the fee to anything you want, if you use raw transactions.

Basically, you construct the raw transaction (it is pretty easy) using createrawtransaction. That gives you some HEX string that you feed to signrawtransaction. You take the output from that and use sendrawtransaction.

The key thing to keep in mind is the unspent output(s) being used when you createrawtransaction. Say all these add up to 0.05 btc. And let's say you are sending out 0.04 btc. Then the fee is whatever is left, which in this case is 0.01 btc. BE CAREFUL and ensure that you provide a change address for any btc that you not want going into the fee by providing multiple recipient addresses (so say one for the receiver and then one for the change).

Make sense? You can send 0.04999999 btc and the fee will then be 0.0000000001 btc (in my example). Keep in mind that very low (or zero) fees can result in the transaction taking longer to a very long time to get included in a block.

Hi everyone

i am in need for a script with which i can send 0.0001 bitcoins from the command line with a 0.0001 transaction fee.
I used to do this with bitcoind but i cant get the transaction fee lower then 0.0005.

Is there anyone who can help me out ? / maybe write a script / code a little program that can be run in a command prompt in windows?
I am willing to pay a reward for you hard work :)

Greetings
Roland.


Title: Re: Help needed writing script for send bitcoins from command line - will pay reward
Post by: bitcoinspot.nl on November 29, 2013, 02:03:16 PM
bitcoind settxfee 0.0001
bitcoind sendtoaddress somebitcoinaddress 0.0001

That will very likely cause a fee of 0.0001 to be used, unless you have way too many, and only, dust.

wow is it that simple, just use 2 seperate commands ?
i tried to use it all in 1 command.

ill try it out asap :)


Title: Re: Help needed writing script for send bitcoins from command line - will pay reward
Post by: loquitus_of_borg on November 29, 2013, 08:32:19 PM
bitcoind lets you set the fee but I recall it had limits how low you could set it.

Raw lets you do it to any level. Even zero, I guess.

bitcoind settxfee 0.0001
bitcoind sendtoaddress somebitcoinaddress 0.0001

That will very likely cause a fee of 0.0001 to be used, unless you have way too many, and only, dust.

wow is it that simple, just use 2 seperate commands ?
i tried to use it all in 1 command.

ill try it out asap :)


Title: Re: Help needed writing script for send bitcoins from command line - will pay reward
Post by: bitcoinspot.nl on November 30, 2013, 06:55:53 AM
bitcoind lets you set the fee but I recall it had limits how low you could set it.

Raw lets you do it to any level. Even zero, I guess.

bitcoind settxfee 0.0001
bitcoind sendtoaddress somebitcoinaddress 0.0001

That will very likely cause a fee of 0.0001 to be used, unless you have way too many, and only, dust.

wow is it that simple, just use 2 seperate commands ?
i tried to use it all in 1 command.

ill try it out asap :)

raw ?


Title: Re: Help needed writing script for send bitcoins from command line - will pay reward
Post by: bitcoinspot.nl on November 30, 2013, 01:46:24 PM
Still no luck:

When i give the command:
"bitcoind settxfee 0.0001"

the computer give the message "true"

When i then give the command
"bitcoind sendtoaddress somebitcoinaddress 0.0001"

It send the 0.0001 btc but still with aq 0.0005 transaction fee.

Anyone got any ideas? 0.1 btc reward for the one that can help me out.


Title: Re: Help needed writing script for send bitcoins from command line - will pay reward
Post by: moderate on November 30, 2013, 02:34:53 PM
Still no luck:

When i give the command:
"bitcoind settxfee 0.0001"

the computer give the message "true"

When i then give the command
"bitcoind sendtoaddress somebitcoinaddress 0.0001"

It send the 0.0001 btc but still with aq 0.0005 transaction fee.

Anyone got any ideas? 0.1 btc reward for the one that can help me out.

You are likely using an old version of the bitcoind, install the latest one and retry.


Title: Re: Help needed writing script for send bitcoins from command line - will pay reward
Post by: bitcoinspot.nl on November 30, 2013, 02:36:13 PM
Does that come included with the latest version of the bitcoin-client or can i do that seperately ?


Title: Re: Help needed writing script for send bitcoins from command line - will pay reward
Post by: moderate on November 30, 2013, 02:40:04 PM
Does that come included with the latest version of the bitcoin-client or can i do that seperately ?

Are you talking about bitcoin-qt ? Yes, bitcoind comes with it.


Title: Re: Help needed writing script for send bitcoins from command line - will pay reward
Post by: KieranJones1 on November 30, 2013, 09:19:42 PM
Does that come included with the latest version of the bitcoin-client or can i do that seperately ?
If you're on Windows, it installs by default to C:\Program Files (x86)\Bitcoin\daemon. You can run it from any directory, though, just copy it there.


Title: Re: Help needed writing script for send bitcoins from command line - will pay reward
Post by: bitcoinspot.nl on December 03, 2013, 01:46:39 PM
I have the latest version of the bitcoin-client.

Anyone willing to help me out? i just dont have the time to figure it all out.

Will pay 0,25 btc reward.


Title: Re: Help needed writing script for send bitcoins from command line - will pay reward
Post by: moderate on December 03, 2013, 02:04:53 PM
I have the latest version of the bitcoin-client.

Anyone willing to help me out? i just dont have the time to figure it all out.

Will pay 0,25 btc reward.

Check your PM please.


Title: Re: Help needed writing script for send bitcoins from command line - will pay reward
Post by: loquitus_of_borg on December 04, 2013, 01:42:25 AM
Yes. Sending out the transaction using the raw API, instead of using the higher level commands.

If you don't put in enough fee or violate other "rules", your TX may not propagate right away and/or might get delayed in being confirmed.

bitcoind lets you set the fee but I recall it had limits how low you could set it.

Raw lets you do it to any level. Even zero, I guess.

bitcoind settxfee 0.0001
bitcoind sendtoaddress somebitcoinaddress 0.0001

That will very likely cause a fee of 0.0001 to be used, unless you have way too many, and only, dust.

wow is it that simple, just use 2 seperate commands ?
i tried to use it all in 1 command.

ill try it out asap :)

raw ?