<p>Here is a Step-by-Step tutorial
<br></p>

<p><li> Set up bitcoin.conf.</p>

<pre><code>rpcuser=user &lt;br&gt;
rpcpassword=password &lt;br&gt;
rpcallowip=172.28.128.1 # The ip of your machine. Use 127.0.0.1 if you use local machine&lt;br&gt;
</code></pre>

<p></li></p>

<p><li>
Start a bitcoin client by</p>

<pre><code>bitcoind -server=1 -daemon
</code></pre>

<p></li></p>

<p><li> Download <a href="https://github.com/jgarzik/python-bitcoinrpc" rel="nofollow">this library</a> and install it by running <br></p>

<pre><code>python setup.py install 
</code></pre>

<p></li>
<li>
Create a python script to connect to RPC server.</p>

<pre><code>from jsonrpc import ServiceProxy
access = ServiceProxy("http://user:password@172.28.128.4:8332")
print(access.getbalance())
</code></pre>

<p></li></p>

CC BY-SA 3.0
2015-04-03T10:32:54.703Z
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
CC BY-SA 3.0
2015-04-06T13:32:03.487Z
Yes, local host is allowed by default..
moshaholo
CC BY-SA 3.0
2015-04-01T18:05:13.293Z
2015-04-01T18:05:13.293Z
moshaholo
<p>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.</p>

CC BY-SA 3.0
2015-04-02T04:12:54.640Z
2015-04-02T04:12:54.640Z
presstab
<ol>
<li><a href="https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list" rel="nofollow">RPC @ Bitcoin Wiki</a></li>
<li>*Mastering Bitcoin" (A. Antonopoulos)</li>
<li>Open <code>console &gt;</code>, type <code>help</code></li>
</ol>

<p>You'll need a <a href="https://en.bitcoin.it/wiki/Running_Bitcoin%23Bitcoin.conf_Configuration_File" rel="nofollow">Bitcoin.conf</a> file setup, which lives in your home directory (what OS?)</p>

<p><a href="https://en.bitcoin.it/wiki/Running_Bitcoin" rel="nofollow">Full instruction guide </a></p>

CC BY-SA 3.0
2015-04-01T14:46:20.930Z
2015-04-01T14:46:20.930Z
Wizard Of Ozzie
<p>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.</p>

<json-rpc>
Access to RPC console
Mohammad 
# Access to RPC console

(Asked by: username_0 on 2015-04-01)

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.

**Tags:** json-rpc


---

## 3 answers

### Answer by username_1 on 2015-04-01. Score: 2

Here is a Step-by-Step tutorial

 Set up bitcoin.conf.
rpcuser=user 
rpcpassword=password 
rpcallowip=172.28.128.1 # The ip of your machine. Use 127.0.0.1 if you use local machine



Start a bitcoin client by
bitcoind -server=1 -daemon


 Download this library and install it by running 
python setup.py install 



Create a python script to connect to RPC server.
from jsonrpc import ServiceProxy
access = ServiceProxy("http://user:password@172.28.128.4:8332")
print(access.getbalance())

> **Comments:**
> **username_2**: 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?  
> **username_1**: Yes, local host is allowed by default..  

---

### Answer by username_3 on 2015-04-02. Score: 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.


---

### Answer by username_2 on 2015-04-01. Score: 1

1. [RPC @ Bitcoin Wiki](https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list)
2. \*Mastering Bitcoin" (A. Antonopoulos)
3. Open `console >`, type `help`

You'll need a [Bitcoin.conf](https://en.bitcoin.it/wiki/Running_Bitcoin%23Bitcoin.conf_Configuration_File) file setup, which lives in your home directory (what OS?)

[Full instruction guide](https://en.bitcoin.it/wiki/Running_Bitcoin)


---

