1
I am new to Bitcoin, can anyone tell me how I can access to my RPC console and type in commands. I am using Bitcoin Core on my PC. If there is a tutorial for beginners to access to RPC please notify me.
1
I am new to Bitcoin, can anyone tell me how I can access to my RPC console and type in commands. I am using Bitcoin Core on my PC. If there is a tutorial for beginners to access to RPC please notify me.
2
Here is a Step-by-Step tutorial
rpcuser=user <br>
rpcpassword=password <br>
rpcallowip=172.28.128.1 # The ip of your machine. Use 127.0.0.1 if you use local machine<br>
bitcoind -server=1 -daemon
python setup.py install
from jsonrpc import ServiceProxy
access = ServiceProxy("http://user:password@172.28.128.4:8332")
print(access.getbalance())
1
console >, type helpYou'll need a Bitcoin.conf file setup, which lives in your home directory (what OS?)
1
If you are using Bitcoin-QT then simply go to Help->Debug Window->Console. This gives you full RPC capability inside of the wallet. If you want to work with the data you output, then you will need to use an RPC wrapper of your choice.
Re:
rpcallowip=172.28.128.1 # The ip of your machine. Use 127.0.0.1 if you use local machine; is the local host allowed by default? Also, could you provide clarification on whether using both rpcallowip lines - ie 172.28.128.1 & 127.0.0.1, respectively, is problematic in the above conf file eg? I.e. Is there any harm adding local machine in addition to the machine IP? – Wizard Of Ozzie – 2015-04-03T10:32:54.703Yes, local host is allowed by default.. – moshaholo – 2015-04-06T13:32:03.487