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

Update getBTCBalance.md #25

Closed EAWF closed 4 years ago

EAWF commented 4 years ago

Re-arrange and reformat $balance to match output from getBTCInvoice()

Septem151 commented 4 years ago

Explicit “float” type return needs to be changed to “string” instead if converting balance using number_format

EAWF commented 4 years ago

Hopefully removing the (float) completely will resolve this? Otherwise, I suppose replacing with (string) will resolve it?

Septem151 commented 4 years ago

Please revert commit 699a6c67, that is not what I meant. The function has “float” as it’s explicit return type (see the type after “:” in the function declaration)

function getBTCBalance(string $address, int $confirmations): float