Bitcoin Forum
May 22, 2024, 03:58:25 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Help needed writing script for send bitcoins from command line - will pay reward  (Read 1483 times)
bitcoinspot.nl (OP)
Sr. Member
****
Offline Offline

Activity: 300
Merit: 250



View Profile WWW
November 29, 2013, 10:38:31 AM
 #1

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 Smiley

Greetings
Roland.

- bitcoinspot.nl - Alles over bitcoin! -
moderate
Member
**
Offline Offline

Activity: 98
Merit: 10

nearly dead


View Profile
November 29, 2013, 10:46:28 AM
 #2

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.
loquitus_of_borg
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile
November 29, 2013, 10:57:54 AM
 #3

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 Smiley

Greetings
Roland.
bitcoinspot.nl (OP)
Sr. Member
****
Offline Offline

Activity: 300
Merit: 250



View Profile WWW
November 29, 2013, 02:03:16 PM
 #4

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 Smiley

- bitcoinspot.nl - Alles over bitcoin! -
loquitus_of_borg
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile
November 29, 2013, 08:32:19 PM
 #5

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 Smiley
bitcoinspot.nl (OP)
Sr. Member
****
Offline Offline

Activity: 300
Merit: 250



View Profile WWW
November 30, 2013, 06:55:53 AM
 #6

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 Smiley

raw ?

- bitcoinspot.nl - Alles over bitcoin! -
bitcoinspot.nl (OP)
Sr. Member
****
Offline Offline

Activity: 300
Merit: 250



View Profile WWW
November 30, 2013, 01:46:24 PM
 #7

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.

- bitcoinspot.nl - Alles over bitcoin! -
moderate
Member
**
Offline Offline

Activity: 98
Merit: 10

nearly dead


View Profile
November 30, 2013, 02:34:53 PM
 #8

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.
bitcoinspot.nl (OP)
Sr. Member
****
Offline Offline

Activity: 300
Merit: 250



View Profile WWW
November 30, 2013, 02:36:13 PM
 #9

Does that come included with the latest version of the bitcoin-client or can i do that seperately ?

- bitcoinspot.nl - Alles over bitcoin! -
moderate
Member
**
Offline Offline

Activity: 98
Merit: 10

nearly dead


View Profile
November 30, 2013, 02:40:04 PM
 #10

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.
KieranJones1
Member
**
Offline Offline

Activity: 126
Merit: 10


View Profile
November 30, 2013, 09:19:42 PM
 #11

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.
bitcoinspot.nl (OP)
Sr. Member
****
Offline Offline

Activity: 300
Merit: 250



View Profile WWW
December 03, 2013, 01:46:39 PM
 #12

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.

- bitcoinspot.nl - Alles over bitcoin! -
moderate
Member
**
Offline Offline

Activity: 98
Merit: 10

nearly dead


View Profile
December 03, 2013, 02:04:53 PM
 #13

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.
loquitus_of_borg
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile
December 04, 2013, 01:42:25 AM
 #14

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 Smiley

raw ?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!