How To connect BItcoin Core with Php

How To connect BItcoin Core with Php

i installed a bitcoind core and i access bitcoin-cli command in linux terminal with developer command(getbalance, getaccountaddress etc.) but i want run this command in php file.

my php code is:

chdir('/home/itr/Downloads/bitcoin/bin');
$output = shell_exec("./bitcoin-cli getbalance");
echo var_dump($output); 

bitcoin-cli file path:

/home/itr/Downloads/bitcoin/bin

please tell me what i do?

https://ift.tt/2Nv3Tvo

Comments

Popular posts from this blog

How to discover startup flags or command-line options for bitcoind?

Is there any python library could be used to decodescript in output

Lightning network (lnd): What's the best way to report lnd server issues/ask for help with channels that won't close?