I want to make API calls to my Bitcoin Core wallet from my webpage but when I try to connect it gives me Internal Server Error
I'm using easybitcoin.php JSON from Github.
I'm trying with this JSON RPC call:
require_once('easybitcoin.php'); $bitcoin = new Bitcoin('myusername','mypassword','myip','8332'); $bitcoin->getinfo();
My bitcoin.conf file has:
- rpcallowip=0.0.0.0/0 (Before I put my IP address here but it didn't solve too)
When I use bitcoin-cli.exe client to send commands to my Bitcoin Core server via 127.0.0.1 (localhost) it works perfectly.
What I'm doing wrong?