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
Bitcoin Stack Exchange is a question and answer site for Bitcoin users, developers, and enthusiasts. It only takes a minute to sign up.
Sign up to join this communityEDIT: As of 0.16.0, use getnetworkinfo
to get the version of bitcoind:
Send a getinfo
command 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": ""
}
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.
90100
. I guess the format is 00.09.01.00 with leading zeros being truncated.
Aug 7, 2014 at 20:28
getinfo
is deprecated as of 0.16.0. Use getnetworkinfo
instead.
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)"
}
Like GetInfo, the GetNetworkInfo RPC call provides:
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).
curl code for achieve that (using JSON-RPC)
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
If you do not like reading json output, get the jq
command do it for you
bitcoin-cli getnetworkinfo | jq .version
dpkg -p bitcoind