I am using the
easybitcoin.php library and in my application. I use the
getreceivedbyaddress method in php. It returns 0, but in my shell when I use bitcoin-cli it returns 0.000000000.
My question is, how can I return in php the same as the shell?
$ data2 = shell_exec ('bitcoin-cli getreceivedbyaddress address'); and it returns 0.00000000, but is there another way?