<p>My favorate tool to test an API endpoint is always <code>curl</code></p>
<pre><code>curl --user user --data-binary '{&quot;jsonrpc&quot;: &quot;1.0&quot;, &quot;id&quot;:&quot;curltest&quot;, &quot;method&quot;: &quot;getblockchaininfo&quot;, &quot;params&quot;: [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/
</code></pre>
<p>source: <a href="https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Command_line_.28cURL.29" rel="nofollow noreferrer">https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Command_line_.28cURL.29</a></p>

CC BY-SA 4.0
2021-09-08T07:33:57.237Z
2021-09-08T07:33:57.237Z
Michael Altfield
<p>I can't find any tool to test RPC interface. I am looking for something like Postman (Chrome extenstion). I would like to send request (with login and password) and see their responses in JSON.</p>

CC BY-SA 4.0
2019-11-05T10:32:05.153Z
I'm looking for something similar as well. Or at the very least, a tutorial
Robert Johnstone
CC BY-SA 4.0
2019-11-05T10:43:28.770Z
Not to worry. Found what I needed here: https://en.bitcoin.it/wiki/API_reference_%28JSON-RPC%29, and here: https://github.com/jgarzik/python-bitcoinrpc
Robert Johnstone
<json-rpc>
How to test Bitcoin's RPC interface?
user57451
# How to test Bitcoin's RPC interface?

(Asked by: username_0 on 2017-08-14)

I can't find any tool to test RPC interface. I am looking for something like Postman (Chrome extenstion). I would like to send request (with login and password) and see their responses in JSON.

**Tags:** json-rpc

> **Comments:**
> **username_1**: I'm looking for something similar as well. Or at the very least, a tutorial  
> **username_1**: Not to worry. Found what I needed here: https://en.bitcoin.it/wiki/API_reference_%28JSON-RPC%29, and here: https://github.com/jgarzik/python-bitcoinrpc  

---

## 1 answers

### Answer by username_2 on 2021-09-08. Score: 2

My favorate tool to test an API endpoint is always `curl`

```
curl --user user --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockchaininfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/

```

source: <https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#Command_line_.28cURL.29>


---

