Bitcoin API calls
May be some of you have a task to run Bitcoin server, you know hot to install it, but can’t find information about bitcoin.conf.
So the simplest way to start Bitcoin server and to use JSON-RPC API is:
1. Edit you bitcoin.conf:
server=1
daemon=1
rpcuser=rpcuser
prcpassword=MySecurePassIPromiseToChangeIt
rpctimeout=30
rpcport=8332
rpcconnect=127.0.0.1
gen=0
keypool=100
If you need additional information you can visit, for example, Ubuntu man5 page – bitcoin.conf.
2. Now you can call bitcoind from command line and you will have Bitcoin daemon in your system.
3. Here is an example how to call Bitcoin method:
$bitcoin = new JsonRpcClient(' '); var_dump($bitcoin->getinfo);