<p>Please consider using <code>getnetworkinfo</code> info instead of getinfo since bitcoin 0.16.0 </p>

<p><strong><code>bitcoin-cli getnetworkinfo</code></strong></p>

<pre><code>{
  "version": 160000,
  "subversion": "/Satoshi:0.16.0/",
  "protocolversion": 70015,
  "localservices": "000000000000040d",
  "localrelay": true,
  "timeoffset": 0,
  "networkactive": true,
  "connections": 5,
  "networks": [
    {
      "name": "ipv4",
      "limited": false,
      "reachable": true,
      "proxy": "",
      "proxy_randomize_credentials": false
    },
    {
      "name": "ipv6",
      "limited": false,
      "reachable": true,
      "proxy": "",
      "proxy_randomize_credentials": false
    },
    {
      "name": "onion",
      "limited": true,
      "reachable": false,
      "proxy": "",
      "proxy_randomize_credentials": false
    }
  ],
  "relayfee": 0.00001000,
  "incrementalfee": 0.00001000,
  "localaddresses": [
  ],
  "warnings": "Warning: unknown new rules activated (versionbit 28)"
}
</code></pre>

CC BY-SA 3.0
2018-02-28T07:53:44.790Z
2018-02-28T07:53:44.790Z
Tailer
<p>Like GetInfo, the <a href="https://bitcoin.org/en/developer-reference#getnetworkinfo" rel="nofollow">GetNetworkInfo</a> RPC call provides:</p>

<ul>
<li>version: The numeric Bitcoin Core (bitcoind) server software version (e.g. 100000)</li>
<li>protocolversion: The numeric Bitcoin protocol version of the software (e.g. 70002)</li>
</ul>

<p>In addition, GetNetworkInfo provides the "subversion" user agent string (e.g "/Satoshi:0.10.0/").</p>

<p>Note that the GetInfo call has been deprecated and may be removed in a future version of the software (<a href="https://bitcoin.org/en/developer-reference#getinfo" rel="nofollow">source</a>). </p>

CC BY-SA 3.0
2015-05-31T19:31:52.963Z
2015-05-31T19:31:52.963Z
Chris Arnesen
<p>curl code for achieve that (using <a href="http://jsonrpcphp.org/" rel="nofollow">JSON-RPC</a>)</p>

<pre><code>curl --user YOUR_USER --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/
</code></pre>

<p>Then it will prompt</p>

<pre><code>Enter host password for user 'YOUR_USER':
</code></pre>

<p>Finally just hit your password and get the bitcoin server response</p>

<pre><code>{"result":{"version":666,"protocolversion":666,"walletversion":666,"balance":0.00000000,"blocks":366666,"timeoffset":-9,"connections":8,"proxy":"","difficulty":72722780642.54718018,"testnet":false,"keypoololdest":1448366656,"keypoolsize":666,"paytxfee":0.00000000,"relayfee":0.00001000,"errors":"Warning: Message"},"error":null,"id":"curltest"}
</code></pre>

<p>You will see something like after running the command-line above where version is what you want to see</p>

<p><strong>NOTE:</strong></p>

<p>I'm <a href="http://127.0.0.1:8332" rel="nofollow">http://127.0.0.1:8332</a> that means you have to </p>

<pre><code>ssh your_bitcoin_server
</code></pre>

<p>And also you must have your ~/.bitcoin/bitcoin.conf or /etc/bitcoin/bitcoin.conf (as a service) configuration file set to default port (8332)</p>

<p>Feel free to change this as required</p>

CC BY-SA 3.0
2015-12-02T21:56:04.737Z
2015-12-02T22:04:55.230Z
2015-12-02T22:04:55.230Z
d1jhoni1b
<p>If you do not like reading json output, get the <code>jq</code> command do it for you</p>
<pre><code>bitcoin-cli getnetworkinfo | jq .version
</code></pre>

CC BY-SA 4.0
2021-12-31T08:51:59.377Z
2021-12-31T08:51:59.377Z
GMaster
<p>EDIT: As of 0.16.0, use <code>getnetworkinfo</code> to get the version of bitcoind:</p>

<ul>
<li>getnetworkinfo: version, protocolversion, timeoffset, connections, proxy, relayfee, warnings</li>
</ul>

<p>Send a <code>getinfo</code> <a href="https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list" rel="noreferrer">command</a> to the server. It shows the version of bitcoind:</p>

<pre><code>{
  "version": 80400,
  "protocolversion": 70001,
  "walletversion": 60000,
  "balance": 102.2899977,
  "blocks": 104358,
  "timeoffset": 1,
  "connections": 15,
  "proxy": "",
  "difficulty": 1.0,
  "testnet": true,
  "keypoololdest": 1372886245,
  "keypoolsize": 101,
  "paytxfee": 0.0,
  "errors": ""
}
</code></pre>

CC BY-SA 3.0
2014-08-06T23:39:10.890Z
How does `version: 80400` relate to the Bitcoin Core version? I'm trying to check if my bitcoind is running version 0.9.1 of the core.
Dave Sag
CC BY-SA 3.0
2014-08-07T20:28:27.263Z
It should be `90100`. I guess the format is 00.09.01.00 with leading zeros being truncated.
ThePiachu
CC BY-SA 3.0
2014-08-08T00:36:26.733Z
Yep - chatting with the developer of [bitcoin-testnet-box](https://github.com/freewil/bitcoin-testnet-box) it's running quite an old version of bitcoind.  I'll look at updating it this weekend.
Dave Sag
CC BY-SA 3.0
2018-02-27T22:03:53.577Z
This answer is no longer valid as `getinfo` is deprecated as of 0.16.0. Use `getnetworkinfo` instead.
Ron
CC BY-SA 4.0
2013-09-08T20:52:19.833Z
2018-06-30T16:33:58.713Z
2018-06-30T16:33:58.713Z
ThePiachu
<p>I have a version of bitcoind on my server and I can't remember which version it is.</p>

<p>How can I find out what version my bitcoind is ?</p>

<p>eg: <code>./bitcoind -version</code> ..or such</p>

CC BY-SA 3.0
2013-09-08T03:32:11.870Z
What os is the server running?  For example with linux if you installed with apt you can try something like `dpkg -p bitcoind`
Neil Neyman
CC BY-SA 3.0
2013-09-08T20:45:16.290Z
It's running ubuntu 12.04 but the bitcoind was installed from the sourceforge site not the ubuntu apt package manager..
ManreeRist
CC BY-SA 3.0
2013-09-08T22:10:04.820Z
If it was installed more than 4 days ago (sep 4 2013$ then it's definitely **not** the latest ;) but it looks like thepiachu's answer should clear things up.   Run it as a server then send it getinfo.
Neil Neyman
<bitcoind>
Check which bitcoind version I am running
ManreeRist
# Check which bitcoind version I am running

(Asked by: username_0 on 2013-09-07)

I have a version of bitcoind on my server and I can't remember which version it is.

How can I find out what version my bitcoind is ?

eg: `./bitcoind -version` ..or such

**Tags:** bitcoind

> **Comments:**
> **username_1**: What os is the server running?  For example with linux if you installed with apt you can try something like `dpkg -p bitcoind`  
> **username_0**: It's running ubuntu 12.04 but the bitcoind was installed from the sourceforge site not the ubuntu apt package manager..  
> **username_1**: If it was installed more than 4 days ago (sep 4 2013$ then it's definitely **not** the latest ;) but it looks like username_6's answer should clear things up.   Run it as a server then send it getinfo.  

---

## 5 answers

### Answer by username_6 on 2013-09-08. Score: 20 | Accepted answer

EDIT: As of 0.16.0, use `getnetworkinfo` to get the version of bitcoind:

* getnetworkinfo: version, protocolversion, timeoffset, connections, proxy, relayfee, warnings

Send a `getinfo` [command](https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list) to the server. It shows the version of bitcoind:

```
{
  "version": 80400,
  "protocolversion": 70001,
  "walletversion": 60000,
  "balance": 102.2899977,
  "blocks": 104358,
  "timeoffset": 1,
  "connections": 15,
  "proxy": "",
  "difficulty": 1.0,
  "testnet": true,
  "keypoololdest": 1372886245,
  "keypoolsize": 101,
  "paytxfee": 0.0,
  "errors": ""
}

```

> **Comments:**
> **username_7**: How does `version: 80400` relate to the Bitcoin Core version? I'm trying to check if my bitcoind is running version 0.9.1 of the core.  
> **username_6**: It should be `90100`. I guess the format is 00.09.01.00 with leading zeros being truncated.  
> **username_7**: Yep - chatting with the developer of [bitcoin-testnet-box](https://github.com/freewil/bitcoin-testnet-box) it's running quite an old version of bitcoind.  I'll look at updating it this weekend.  
> **username_8**: This answer is no longer valid as `getinfo` is deprecated as of 0.16.0. Use `getnetworkinfo` instead.  

---

### Answer by username_2 on 2018-02-28. Score: 6

Please consider using `getnetworkinfo` info instead of getinfo since bitcoin 0.16.0

**`bitcoin-cli getnetworkinfo`**

```
{
  "version": 160000,
  "subversion": "/Satoshi:0.16.0/",
  "protocolversion": 70015,
  "localservices": "000000000000040d",
  "localrelay": true,
  "timeoffset": 0,
  "networkactive": true,
  "connections": 5,
  "networks": [
    {
      "name": "ipv4",
      "limited": false,
      "reachable": true,
      "proxy": "",
      "proxy_randomize_credentials": false
    },
    {
      "name": "ipv6",
      "limited": false,
      "reachable": true,
      "proxy": "",
      "proxy_randomize_credentials": false
    },
    {
      "name": "onion",
      "limited": true,
      "reachable": false,
      "proxy": "",
      "proxy_randomize_credentials": false
    }
  ],
  "relayfee": 0.00001000,
  "incrementalfee": 0.00001000,
  "localaddresses": [
  ],
  "warnings": "Warning: unknown new rules activated (versionbit 28)"
}

```


---

### Answer by username_3 on 2015-05-31. Score: 4

Like GetInfo, the [GetNetworkInfo](https://bitcoin.org/en/developer-reference#getnetworkinfo) RPC call provides:

* version: The numeric Bitcoin Core (bitcoind) server software version (e.g. 100000)
* protocolversion: The numeric Bitcoin protocol version of the software (e.g. 70002)

In addition, GetNetworkInfo provides the "subversion" user agent string (e.g "/Satoshi:0.10.0/").

Note that the GetInfo call has been deprecated and may be removed in a future version of the software ([source](https://bitcoin.org/en/developer-reference#getinfo)).


---

### Answer by username_4 on 2015-12-02. Score: 1

curl code for achieve that (using [JSON-RPC](http://jsonrpcphp.org/))

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

```

Then it will prompt

```
Enter host password for user 'YOUR_USER':

```

Finally just hit your password and get the bitcoin server response

```
{"result":{"version":666,"protocolversion":666,"walletversion":666,"balance":0.00000000,"blocks":366666,"timeoffset":-9,"connections":8,"proxy":"","difficulty":72722780642.54718018,"testnet":false,"keypoololdest":1448366656,"keypoolsize":666,"paytxfee":0.00000000,"relayfee":0.00001000,"errors":"Warning: Message"},"error":null,"id":"curltest"}

```

You will see something like after running the command-line above where version is what you want to see

**NOTE:**

I'm <http://127.0.0.1:8332> that means you have to

```
ssh your_bitcoin_server

```

And also you must have your ~/.bitcoin/bitcoin.conf or /etc/bitcoin/bitcoin.conf (as a service) configuration file set to default port (8332)

Feel free to change this as required


---

### Answer by username_5 on 2021-12-31. Score: 0

If you do not like reading json output, get the `jq` command do it for you

```
bitcoin-cli getnetworkinfo | jq .version

```


---

