Bitcoin Forum
December 03, 2016, 06:56:44 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Cannot send unconfirmed coins from rpc.  (Read 1290 times)
mb300sd
Legendary
*
Offline Offline

Activity: 1232

Drunk Posts


View Profile WWW
June 19, 2012, 11:08:45 PM
 #1

I cannot seem to get bitcoind to allow me to send 0-confirm coins. Is this by design, or a bug? I'm using the latest version from the ubuntu ppa.

I've tried both sendfrom and sendmany.

sendfrom <fromaccount> <tobitcoinaddress> <amount> [minconf=1] [comment] [comment-to]
sendmany <fromaccount> {address:amount,...} [minconf=1] [comment]

root@bt:~# bitcoind getbalance
2.8245

root@bt:~# bitcoind getbalance "" 0
23.7164

root@bt:~# bitcoind sendfrom "" 1Meb94yEgFWN8SQ5JYVNTXU12qBa7a1eiY 20 0
error: {"code":-4,"message":"Insufficient funds"}

1D7FJWRzeKa4SLmTznd3JpeNU13L1ErEco
1480748204
Hero Member
*
Offline Offline

Posts: 1480748204

View Profile Personal Message (Offline)

Ignore
1480748204
Reply with quote  #2

1480748204
Report to moderator
1480748204
Hero Member
*
Offline Offline

Posts: 1480748204

View Profile Personal Message (Offline)

Ignore
1480748204
Reply with quote  #2

1480748204
Report to moderator
1480748204
Hero Member
*
Offline Offline

Posts: 1480748204

View Profile Personal Message (Offline)

Ignore
1480748204
Reply with quote  #2

1480748204
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480748204
Hero Member
*
Offline Offline

Posts: 1480748204

View Profile Personal Message (Offline)

Ignore
1480748204
Reply with quote  #2

1480748204
Report to moderator
1480748204
Hero Member
*
Offline Offline

Posts: 1480748204

View Profile Personal Message (Offline)

Ignore
1480748204
Reply with quote  #2

1480748204
Report to moderator
1480748204
Hero Member
*
Offline Offline

Posts: 1480748204

View Profile Personal Message (Offline)

Ignore
1480748204
Reply with quote  #2

1480748204
Report to moderator
Aseras
Hero Member
*****
Offline Offline

Activity: 658


View Profile
June 19, 2012, 11:44:20 PM
 #2

0 confirm coins don't exist they aren't included in a block yet. Theres no header to include. You don't know what block they will be included in.
mcorlett
Donator
Sr. Member
*
Offline Offline

Activity: 308



View Profile
June 19, 2012, 11:46:04 PM
 #3

0 confirm coins don't exist they aren't included in a block yet. Theres no header to include. You don't know what block they will be included in.
What are you talking about?! You reference previous transactions, not blocks or block headers.

Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652


Chief Scientist


View Profile WWW
June 19, 2012, 11:52:48 PM
 #4

The RPC and GUI won't let you spend 0-confirmation transactions unless they are 'change' outputs from yourself.

If you REALLY want to shoot yourself in the foot, I've got a pull request for the 0.7 release that adds 'raw transaction' RPC commands that will let you do all sorts of dangerous things, including counting your chickens before they've hatched spending unconfirmed-from-somewhere-else inputs.

How often do you get the chance to work on a potentially world-changing project?
mcorlett
Donator
Sr. Member
*
Offline Offline

Activity: 308



View Profile
June 19, 2012, 11:54:12 PM
 #5

If you REALLY want to shoot yourself in the foot, I've got a pull request for the 0.7 release that adds 'raw transaction' RPC commands that will let you do all sorts of dangerous things, including counting your chickens before they've hatched spending unconfirmed-from-somewhere-else inputs.
...there is also Brainwallet's transaction composer. Very handy, and I think it'll do unconfirmed transactions just fine!

mb300sd
Legendary
*
Offline Offline

Activity: 1232

Drunk Posts


View Profile WWW
June 19, 2012, 11:55:29 PM
 #6

The RPC and GUI won't let you spend 0-confirmation transactions unless they are 'change' outputs from yourself.

If you REALLY want to shoot yourself in the foot, I've got a pull request for the 0.7 release that adds 'raw transaction' RPC commands that will let you do all sorts of dangerous things, including counting your chickens before they've hatched spending unconfirmed-from-somewhere-else inputs.


Thanks. That works for me, the 20BTC transaction was just an example I could post quickly, I'm really writing a satoshidice bot, and I'd like to keep it's balance very low...

I've never noticed that it didn't allow it before, I use coin control and send to myself fairly often, I'm guessing those transactions are included as "change"

1D7FJWRzeKa4SLmTznd3JpeNU13L1ErEco
BasementMiner!
Member
**
Offline Offline

Activity: 109



View Profile
June 20, 2012, 01:32:11 AM
 #7

The RPC and GUI won't let you spend 0-confirmation transactions unless they are 'change' outputs from yourself.

If you REALLY want to shoot yourself in the foot, I've got a pull request for the 0.7 release that adds 'raw transaction' RPC commands that will let you do all sorts of dangerous things, including counting your chickens before they've hatched spending unconfirmed-from-somewhere-else inputs.


I'll be looking out for short-lived 10 million Bitcoin transactions on blockchain.info! Cheesy
mcorlett
Donator
Sr. Member
*
Offline Offline

Activity: 308



View Profile
June 20, 2012, 02:22:02 AM
 #8

The RPC and GUI won't let you spend 0-confirmation transactions unless they are 'change' outputs from yourself.

If you REALLY want to shoot yourself in the foot, I've got a pull request for the 0.7 release that adds 'raw transaction' RPC commands that will let you do all sorts of dangerous things, including counting your chickens before they've hatched spending unconfirmed-from-somewhere-else inputs.

I'll be looking out for short-lived 10 million Bitcoin transactions on blockchain.info! Cheesy
The ability to spend unconfirmed outputs doesn't mean you can create coins out of thin air. Sorry to disappoint.

BasementMiner!
Member
**
Offline Offline

Activity: 109



View Profile
June 20, 2012, 02:46:09 AM
 #9

The RPC and GUI won't let you spend 0-confirmation transactions unless they are 'change' outputs from yourself.

If you REALLY want to shoot yourself in the foot, I've got a pull request for the 0.7 release that adds 'raw transaction' RPC commands that will let you do all sorts of dangerous things, including counting your chickens before they've hatched spending unconfirmed-from-somewhere-else inputs.

I'll be looking out for short-lived 10 million Bitcoin transactions on blockchain.info! Cheesy
The ability to spend unconfirmed outputs doesn't mean you can create coins out of thin air. Sorry to disappoint.
I had seen a 21 million transaction in a unconfirmed state a while back. It soon disappeared, though.
mcorlett
Donator
Sr. Member
*
Offline Offline

Activity: 308



View Profile
June 20, 2012, 02:53:45 AM
 #10

I had seen a 21 million transaction in a unconfirmed state a while back. It soon disappeared, though.
Impossible. Perhaps 21 million base units, but not bitcoins.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!