Author

Topic: Empty amount sent with bitcoind (Read 904 times)

legendary
Activity: 3472
Merit: 4801
April 24, 2014, 08:42:57 PM
#17
Red transaction removed from my account or 0.0BTC when send 0.002 BTC

Correct.

Transaction sent -0.002 BTC from the wallet, and received +0.002 BTC into the wallet (since the transaction sent from the wallet to a receiving address in the wallet).

-0.002 BTC +0.002 BTC = 0.0 BTC.

No problem.  Working exactly as it is supposed to.

You really should be using testnet for this sort of testing and learning, or you are likely to make a very expensive mistake.
legendary
Activity: 4542
Merit: 3393
Vile Vixen and Miss Bitcointalk 2021-2023
April 24, 2014, 08:35:11 PM
#16
Red transaction removed from my account or 0.0BTC when send 0.002 BTC
These are your own addresses, right? So no coins have entered or left your wallet. You're just taking money out of your left pocket and putting it in your right pocket. You still have the exact same amount of money in your pockets as you started with. You have lost nothing, and you have gained nothing, so the amount transacted is zero. It is not BTC0.002, because that would mean that you have BTC0.002 less than you started with, which is impossible because the money never left your wallet.
sr. member
Activity: 299
Merit: 256
April 24, 2014, 12:36:32 PM
#15
Please see this picture from my blockchain:



Red transaction removed from my account or 0.0BTC when send 0.002 BTC

Green transaction made with success

All from bitcoind.
legendary
Activity: 3472
Merit: 4801
April 24, 2014, 10:49:05 AM
#14
First, those are NOT transactionIDs, those are bitcoin addresses.  I always get a bit concerned when someone who can't tell the difference between a transactionID and a bitcoin address is writing a bitcoin based program.  It can't possibly end well.

Secondly, why aren't you testing this on testnet?  You are wasting a lot of money testing something you don't understand.

Third of all, I don't see ANY transactions that send 0.00 bitcoins to or from any of those addresses.

Lets take a look, shall we?


Sometime around 2014-04-23 11:51:55 UTC
TransactionID 9a55b29f578348c105c5ea6c48855eb3d637af643746e8b0c26576612f2fdd01
Spent output #1
From transactionID 560368a080d1e1aa8ae0f884d93d766777dc61db4f93766c328f2f0e61bcc764
Supplying a total of 0.0029 BTC in value to the transaction
After paying a 0.0001 BTC transaction fee
0.002 BTC were sent to 18jX8X1qkgzsQCLKHyNR2Wvd4X98E4hYjZ (output #0)
0.0008 BTC were sent to 1Epzx2j11MVxCq6JdPCeJEQjWrQsupRBC8 (output #1)
(Don't see any 0.0 BTC transaction here)

Sometime around 2014-04-23 12:05:57 UTC
TransactionID b45032146fb160bbc8b5c51a9826f9782cd29c6dceb06e2672f026382d9eeba4
Spent output #0
From transactionID 79695db10b39a8ceef81a9f7d3ddc587db5a36e86177ef3c594aa822389f5b7a
And spent output #1
From transactionID 9a55b29f578348c105c5ea6c48855eb3d637af643746e8b0c26576612f2fdd01 (previously received at address 1Epzx2j11MVxCq6JdPCeJEQjWrQsupRBC8)
Supplying a total of 0.0028 BTC in value to the transaction
After paying a 0.0005 BTC transaction fee
0.0003 BTC were sent to 1KHgnxJ5z7RaZD6GPKri7Q114GmYbSMhE6 (output #0)
0.002 BTC were sent to 18jX8X1qkgzsQCLKHyNR2Wvd4X98E4hYjZ (output #1)
(Don't see any 0.0 BTC transaction here)


Sometime around 2014-04-23 11:48:02 UTC
TransactionID 6b3566ea60b72f4b9fbc5ce41cd45113a49b180bcffccf71d27b98be578322f7
Spent output #0
From transactionID e8f7775f2702f7a3f2ba39caab8a84308e8544bdf173fbad406f8d6e0713a8ac
And spent output #0
From transactionID 560368a080d1e1aa8ae0f884d93d766777dc61db4f93766c328f2f0e61bcc764
Supplying a total of 0.0026 BTC in value to the transaction
After paying a 0.0001 BTC transaction fee
0.0005 BTC were sent to 1KdpS8etwws8C6V6KnReWJJRZZJSMLj3Tp (output #0)
0.002 BTC were sent to 18jX8X1qkgzsQCLKHyNR2Wvd4X98E4hYjZ (output #1)
(Don't see any 0.0 BTC transaction here)

Sometime around 2014-04-23 11:56:10 UTC
TransactionID 79695db10b39a8ceef81a9f7d3ddc587db5a36e86177ef3c594aa822389f5b7a
Spent output #1
From transactionID e8f7775f2702f7a3f2ba39caab8a84308e8544bdf173fbad406f8d6e0713a8ac
And spent output #0
From transactionID 6b3566ea60b72f4b9fbc5ce41cd45113a49b180bcffccf71d27b98be578322f7 (previously received at address 1KdpS8etwws8C6V6KnReWJJRZZJSMLj3Tp)
Supplying a total of 0.0025 BTC in value to the transaction
After paying a 0.0001 BTC transaction fee
0.002 BTC were sent to 18jX8X1qkgzsQCLKHyNR2Wvd4X98E4hYjZ (output #0)
0.0004 BTC were sent to 1CRD8RGUGkdKMmt3saCqExqWC9dDz3iZ9Q (output #1)
(Don't see any 0.0 BTC transaction here)


Sometime around 2014-04-23 11:35:53 UTC
TransactionID e8f7775f2702f7a3f2ba39caab8a84308e8544bdf173fbad406f8d6e0713a8ac
Spent output #0
From transactionID 4bfc65430a8fbd862b415d3c60ad02909fb40d0d8027228f832ee2e2c36fc94c
And spent output #1
From transactionID 4bfc65430a8fbd862b415d3c60ad02909fb40d0d8027228f832ee2e2c36fc94c
Supplying a total of 0.0027 BTC in value to the transaction
After paying a 0.0001 BTC transaction fee
0.0006 BTC were sent to 1KF9unVp8gT7k9eWSrQcNkpTRiiew7uiw2 (output #0)
0.002 BTC were sent to 18jX8X1qkgzsQCLKHyNR2Wvd4X98E4hYjZ (output #1)
(Don't see any 0.0 BTC transaction here)

Sometime around 2014-04-23 11:48:02 UTC
TransactionID 6b3566ea60b72f4b9fbc5ce41cd45113a49b180bcffccf71d27b98be578322f7
Spent output #0
From transactionID 560368a080d1e1aa8ae0f884d93d766777dc61db4f93766c328f2f0e61bcc764
And spent output #0
From transactionID e8f7775f2702f7a3f2ba39caab8a84308e8544bdf173fbad406f8d6e0713a8ac (previously received at address 1KF9unVp8gT7k9eWSrQcNkpTRiiew7uiw2)
Supplying a total of 0.0026 BTC in value to the transaction
After paying a 0.0001 BTC transaction fee
0.0005 BTC were sent to 1KdpS8etwws8C6V6KnReWJJRZZJSMLj3Tp (output #0)
0.002 BTC were sent to 18jX8X1qkgzsQCLKHyNR2Wvd4X98E4hYjZ (output #1)
(Don't see any 0.0 BTC transaction here)


Sometime around 2014-04-23 11:29:53 UTC
TransactionID 4bfc65430a8fbd862b415d3c60ad02909fb40d0d8027228f832ee2e2c36fc94c
Spent output #0
From transactionID f8421f678374da67fccf72147d6a5eaf894d23695bc240d7069d88e14186076a
And spent output #1
From transactionID f8421f678374da67fccf72147d6a5eaf894d23695bc240d7069d88e14186076a
Supplying a total of 0.0028 BTC in value to the transaction
After paying a 0.0001 BTC transaction fee
0.0007 BTC were sent to 18LMW6CtwmyMzfEBiMX5ftTDcNDq3cYiRh (output #0)
0.002 BTC were sent to 18jX8X1qkgzsQCLKHyNR2Wvd4X98E4hYjZ (output #1)
(Don't see any 0.0 BTC transaction here)

Sometime around 2014-04-23 11:35:53 UTC
TransactionID e8f7775f2702f7a3f2ba39caab8a84308e8544bdf173fbad406f8d6e0713a8ac
Spent output #0
From transactionID 4bfc65430a8fbd862b415d3c60ad02909fb40d0d8027228f832ee2e2c36fc94c (previously received at address 18LMW6CtwmyMzfEBiMX5ftTDcNDq3cYiRh)
And spent output #1
From transactionID 4bfc65430a8fbd862b415d3c60ad02909fb40d0d8027228f832ee2e2c36fc94c
Supplying a total of 0.0027 BTC in value to the transaction
After paying a 0.0001 BTC transaction fee
0.0006 BTC were sent to 1KF9unVp8gT7k9eWSrQcNkpTRiiew7uiw2 (output #0)
0.002 BTC were sent to 18jX8X1qkgzsQCLKHyNR2Wvd4X98E4hYjZ (output #1)
(Don't see any 0.0 BTC transaction here)


Sometime around 2014-04-23 11:28:50 UTC
TransactionID f8421f678374da67fccf72147d6a5eaf894d23695bc240d7069d88e14186076a
Spent output #0
From transactionID ac59bdca2001aa94be15716ae736dbf497a658bc2c91b664d88cdbd76c0b5109
And spent output #1
From transactionID ac59bdca2001aa94be15716ae736dbf497a658bc2c91b664d88cdbd76c0b5109
Supplying a total of 0.0029 BTC in value to the transaction
After paying a 0.0001 BTC transaction fee
0.0008 BTC were sent to 1Cye85ZzwA999gVJUkP1vUynXoRMXgbEsJ (output #0)
0.002 BTC were sent to 18jX8X1qkgzsQCLKHyNR2Wvd4X98E4hYjZ (output #1)
(Don't see any 0.0 BTC transaction here)

Sometime around 2014-04-23 11:29:53 UTC
TransactionID 4bfc65430a8fbd862b415d3c60ad02909fb40d0d8027228f832ee2e2c36fc94c
Spent output #0
From transactionID f8421f678374da67fccf72147d6a5eaf894d23695bc240d7069d88e14186076a (previously received at address 1Cye85ZzwA999gVJUkP1vUynXoRMXgbEsJ)
And spent output #1
From transactionID f8421f678374da67fccf72147d6a5eaf894d23695bc240d7069d88e14186076a
Supplying a total of 0.0028 BTC in value to the transaction
After paying a 0.0001 BTC transaction fee
0.0007 BTC were sent to 18LMW6CtwmyMzfEBiMX5ftTDcNDq3cYiRh (output #0)
0.002 BTC were sent to 18jX8X1qkgzsQCLKHyNR2Wvd4X98E4hYjZ (output #1)
(Don't see any 0.0 BTC transaction here)


Sometime around 2014-04-23 11:25:02 UTC
TransactionID ac59bdca2001aa94be15716ae736dbf497a658bc2c91b664d88cdbd76c0b5109
Spent output #0
From transactionID 1a1dd16e2ba3604c90900d09f973c997da4d715a5b9b7d89b920c9cb974a2b98
Supplying a total of 0.003 BTC in value to the transaction
After paying a 0.0001 BTC transaction fee
0.0009 BTC were sent to 1F4xV7HMjK7JTZf3nrEbtnYqvi4zGBVMcn (output #0)
0.002 BTC were sent to 18jX8X1qkgzsQCLKHyNR2Wvd4X98E4hYjZ (output #1)
(Don't see any 0.0 BTC transaction here)

Sometime around 2014-04-23 11:28:50 UTC
TransactionID f8421f678374da67fccf72147d6a5eaf894d23695bc240d7069d88e14186076a
Spent output #0
From transactionID ac59bdca2001aa94be15716ae736dbf497a658bc2c91b664d88cdbd76c0b5109 (previously received at address 1F4xV7HMjK7JTZf3nrEbtnYqvi4zGBVMcn)
And spent output #1
From transactionID ac59bdca2001aa94be15716ae736dbf497a658bc2c91b664d88cdbd76c0b5109
Supplying a total of 0.0029 BTC in value to the transaction
After paying a 0.0001 BTC transaction fee
0.0008 BTC were sent to 1Cye85ZzwA999gVJUkP1vUynXoRMXgbEsJ (output #0)
0.002 BTC were sent to 18jX8X1qkgzsQCLKHyNR2Wvd4X98E4hYjZ (output #1)
(Don't see any 0.0 BTC transaction here)
sr. member
Activity: 299
Merit: 256
April 24, 2014, 07:17:24 AM
#13
The problem is when i send many time to this one, most transaction received are 0.0 BTC or money removed from 18jX8X1qkgzsQCLKHyNR2Wvd4X98E4hYjZ (Receiver), like i show you in the TOP PAGE (see the transactions)

Purhapse problem come from fees or bug in my bitcoind
legendary
Activity: 4542
Merit: 3393
Vile Vixen and Miss Bitcointalk 2021-2023
April 24, 2014, 06:52:58 AM
#12
So what's the problem? 18jX8X1qkgzsQCLKHyNR2Wvd4X98E4hYjZ is your address, right? So each time you send money to that address, you've neither gained nor lost anything (except the transaction fee). You had BTC0.002 in an address that you own, and now you have BTC0.002 in another address that you also own. Net difference to your total balance: zero (minus transaction fees).
sr. member
Activity: 299
Merit: 256
April 24, 2014, 06:40:22 AM
#11
I am paying only one person (i send money to my own address)

$amount i put directly 0.002 without flat or any other command.

I used JSON RPC to send money then same with sendtoaddress command (Yes i used this one) i didn't used sendtomany only for one person, i sent lot of time to my own address Smiley
sr. member
Activity: 412
Merit: 287
April 24, 2014, 06:17:47 AM
#10
I'm still not entirely sure what your problem is. Transactions you made previously were paying two people, has now stopped, and you're only paying one person?

One thing I'm wondering is could the assignment of $amount have returned FALSE?
echo (float)FALSE;
-> Gives you zero, same for int.

Also, please tell me this, did you use the sendtoaddress command for the first few transactions? Or sendtomany? I haven't used that command for a while, but you don't normally get multiple outputs for a sendtoaddress?
legendary
Activity: 3472
Merit: 4801
April 23, 2014, 09:35:30 PM
#8
please post the transaction ID so we can see what's really going on.

I tried asking that right away.  Probably could have had this resolved by now if the OP was a bit more cooperative.
legendary
Activity: 4542
Merit: 3393
Vile Vixen and Miss Bitcointalk 2021-2023
April 23, 2014, 09:02:59 PM
#7
Is it possible $amount was set to zero.
No, it isn't. The server returns "Invalid amount" in that case.

Normally, the only way a transaction can appear to send a zero amount is when sending coins to another address in the same wallet; the net amount will always be zero (minus fees) regardless of how much was actually sent, as the wallet is receiving the same amount that was sent. Take a dollar out of your left pocket and put it in your right pocket; how much money have you sent? Zero, obviously. Note that these transactions still incur a transaction fee, so this is not an efficient way of managing your wallet.

If sending coins to another address in the same wallet isn't what you were trying to do, please post the transaction ID so we can see what's really going on.
legendary
Activity: 4256
Merit: 1313
April 23, 2014, 07:47:42 PM
#6
I won't rehash what others have pointed out about the current version, posting the transaction id etc, but you also might consider using the testnet until you have the bugs worked out.  
hero member
Activity: 533
Merit: 500
^Bitcoin Library of Congress.
April 23, 2014, 07:25:32 PM
#5
Can i change the version without lost blockchain , wallet , balance and others ?
Yes, but it's always a good idea to backup your wallet before you upgrade.
sr. member
Activity: 299
Merit: 256
April 23, 2014, 12:16:47 PM
#4
Here information about bitcoind version, i am using UBUNTU (bitcoind deamon)

Code:
[version] => 80500 [protocolversion] => 70001 [walletversion] => 60000

Amount are not set to ZERO ! i wrote directly 0.002 ! sometimes transaction made successfully, sometime i receive 0.0 BTC charged with fees !
I followed the tutorial shown here:
http://bitcoin.stackexchange.com/questions/20336/problem-integrating-bitcoin-daemon-with-php

I dont know why are 80500 version installed! !!

Can i change the version without lost blockchain , wallet , balance and others ?

Thank's
donator
Activity: 1218
Merit: 1079
Gerald Davis
April 23, 2014, 11:36:30 AM
#3
As Danny pointed out you are going to need to provide a lot more details.

1) The latest version of bitcoind is 0.9.1.0 (90100 per getinfo) https://bitcoin.org/en/download
2) You are passing a variable ($amount) to bitcoind.  Is it possible $amount was set to zero.  Do you have any logging of values prior to the RPC call?
3) Do you have any issues calling bitcoind manually with static values (i.e. bitcoin-cli sendtoaddress 1abcdef 0.02)?
4) Any time you have unexpected transactions, post the TxId.  However in this case my guess is the bug is in your code and bitcoind did exactly what you "asked" (send 0 BTC to the specified address).
legendary
Activity: 3472
Merit: 4801
April 23, 2014, 11:25:24 AM
#2
Hi, i am usng JSON PHP to send money from my address to another one,

He send the first time normally, tested with (0.002 BTC)

And when i test second one, he send empty AMOUNT (0.0 BTC) and charge for fees 0.0001 BTC.

Code:
$bitcoin = new jsonRPCClient('http://'.json_username.':'.json_password.'@'.json_server.':'.json_port.'/');
$bitcoin->sendtoaddress($address, $amount);

Someone can help please to resolve the problem ?

I think problem come from FEES.

I am using last version of bitcoind ( [version] => 80500 )

Thank's.

TransactionIDs?
sr. member
Activity: 299
Merit: 256
April 23, 2014, 07:56:39 AM
#1
Hi, i am usng JSON PHP to send money from my address to another one,

He send the first time normally, tested with (0.002 BTC)

And when i test second one, he send empty AMOUNT (0.0 BTC) and charge for fees 0.0001 BTC.

Code:
$bitcoin = new jsonRPCClient('http://'.json_username.':'.json_password.'@'.json_server.':'.json_port.'/');
$bitcoin->sendtoaddress($address, $amount);

Someone can help please to resolve the problem ?

I think problem come from FEES.

I am using last version of bitcoind ( [version] => 80500 )

Thank's.
Jump to: