i used bitcoind with jsonrpc service.
but i added regtest=1
in bitcoin.conf
at .bitcoin
folder.
used:
bitcoin-cli -regtest generate 101
bitcoin-cli -regtest getbalance
50.00000000
but I can't see the balance in php.
$bitcoin->getbalance()
it doesn't show me the balance. it returns nothing.
if I remove regtest=1
from bitcoin.conf
and start bitcoind -daemon
.
$bitcoin->getbalance() it gives me the the real server balance.
what is solution for this problem???
$bitcoin->getbalance()
? Also, what error logging level do you have set?