Bitcoin Forum
May 07, 2024, 06:52:48 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Making sure exact amount of BTC arrived  (Read 699 times)
Fizpok (OP)
Sr. Member
****
Offline Offline

Activity: 344
Merit: 250


View Profile WWW
November 06, 2013, 02:48:04 PM
 #1

Hi,
I just did a payment of 0.005 BTC.
During the payment, I was asked to pay a comission, which I did.
Now, the recipient got 0.00499999999999998 BTC, I am not sure if it was related to a comission or not, but it never happened before.
Which is bad, as I am writing a payment system, that would reject a payment, if the amount is insufficient.

How can I make sure, that amount my recipient receives is what I sent, and not what I sent minus comission (or whatever the reason was)?

Thanks.

Ethereum Programming Guide
Create Solidity contracts: Step-by Step Hands-on Guides.
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715107968
Hero Member
*
Offline Offline

Posts: 1715107968

View Profile Personal Message (Offline)

Ignore
1715107968
Reply with quote  #2

1715107968
Report to moderator
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
November 06, 2013, 04:01:53 PM
 #2

Hi,
I just did a payment of 0.005 BTC.
During the payment, I was asked to pay a comission, which I did.
Now, the recipient got 0.00499999999999998 BTC, I am not sure if it was related to a comission or not, but it never happened before.
Which is bad, as I am writing a payment system, that would reject a payment, if the amount is insufficient.

How can I make sure, that amount my recipient receives is what I sent, and not what I sent minus comission (or whatever the reason was)?

Thanks.

Transaction ID?

What wallet did you use to make the payment? Bitcoin-Qt? MultiBit? Electrum? Armory?

It isn't possible for a bitcoin payment to be 0.00499999999999998 BTC.  Bitcoin currently only extends to 8 decimal places.
tampazeus
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1000


Lick me like a lolipop


View Profile
November 06, 2013, 04:09:05 PM
 #3

I just did a payment of 0.005 BTC.
During the payment, I was asked to pay a comission, which I did.
Now, the recipient got 0.00499999999999998 BTC, I am not sure if it was related to a comission or not,


Seems just like rouding error of some client

Minimum increment is 0,00000001
Fizpok (OP)
Sr. Member
****
Offline Offline

Activity: 344
Merit: 250


View Profile WWW
November 07, 2013, 07:17:10 AM
 #4

I just did a payment of 0.005 BTC.
During the payment, I was asked to pay a comission, which I did.
Now, the recipient got 0.00499999999999998 BTC, I am not sure if it was related to a comission or not,


Seems just like rouding error of some client

Minimum increment is 0,00000001

Thanks. You are correct. It was my rounding error.

Ethereum Programming Guide
Create Solidity contracts: Step-by Step Hands-on Guides.
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!