1
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???
This might be a stupid question, but are you echoing the return value of
$bitcoin->getbalance()? Also, what error logging level do you have set? – Nick ODell – 2015-08-13T06:39:37.837I think you are the stupid one commented on this question. if i can see the error then I will definitely add in body. don't ignore those people who need to learn something. if you have power of knowledge then use this. if you don't understand my question then you can comment. – Md Shahadat Hossain – 2015-08-13T06:50:13.200
I wasn't trying to insult you or your question. In this context, "This might be a stupid question" means that I'm about to ask you about a debugging step that I think you've probably done, but I don't know for sure. – Nick ODell – 2015-08-13T06:59:41.767