EAWF / BTC-Toolbox

A collection of simple programming tools to aid entities in the action of accepting BTC payments directly to HD Wallets within their control.
The Unlicense
9 stars 6 forks source link

getBTCBalance tool should divide amount by 100000000, not multiply #19

Closed Septem151 closed 4 years ago

Septem151 commented 4 years ago

The amount value returned from the getBTCBalance API call is in satoshis, of which there are 100000000 per bitcoin. Therefore, to go from satoshi to bitcoin, you would need to divide the satoshi amount received by 100000000, not multiply.