<p>The correct answer is <em><strong>any</strong></em> version (that works!). Anybody is able to pick what they want. What matters is what <em><strong>you</strong></em> have in this case. If you feel your version is off, just download another one (Releases!), install it and run it!</p>

CC BY-SA 4.0
2022-01-08T05:23:07.703Z
True, but I was hoping to avoid a game of "trial and error".
Michael Daconta
CC BY-SA 4.0
2022-01-08T19:29:49.363Z
Welcome to software engineering! haha You could do it backwards. Think about possible errors and constraints to later build around that.
Wolfy
CC BY-SA 4.0
2022-01-07T00:42:27.863Z
2022-01-09T15:43:34.923Z
2022-01-09T15:43:34.923Z
Wolfy
<p>You could check your startup parameters and note the path to the config file you are using by using</p>
<pre><code>ps -ef | grep cardano-node
</code></pre>
<p>There should be a filename after --config</p>
<p>If unchanged, the testnet and mainnet config files are named as such; testnet-config.json and mainnet-config.json.</p>
<p>If the name doesn't suffice, you can check inside this config file which genesis files are used.</p>
<p>Or are you looking for the <strong>latest released</strong> version of cardano-node? This can be done with the following command:</p>
<pre><code>curl -s https://api.github.com/repos/input-output-hk/cardano-node/releases/latest | jq -r .tag_name
</code></pre>
<p>[Source: Guild Operators, Build Node/CLI section]</p>

CC BY-SA 4.0
2021-10-18T16:02:53.690Z
2021-10-18T16:02:53.690Z
MDe
<p>Not sure if this is checking a remote node, but are you maybe looking for: <code>cardano-node --version</code>?
Example Output:</p>
<pre><code>cardano-node 1.27.0 - linux-x86_64 - ghc-8.10
git rev 8fe46140a52810b6ca456be01d652ca08fe730bf
</code></pre>
<p>Or <code>cardano-cli --version</code>?
Example Output:</p>
<pre><code>cardano-cli 1.27.0 - linux-x86_64 - ghc-8.10
git rev 8fe46140a52810b6ca456be01d652ca08fe730bf
</code></pre>

CC BY-SA 4.0
2021-09-20T00:05:59.690Z
Unfortunately, no (or at least I don't think so).  cardano-node --version will get you what version YOU are running but NOT what version is on the test-net or main-net server(s).  So, I was wondering if the version was posted on some website or if there was a command that could be issued for them to report that info.
Michael Daconta
CC BY-SA 4.0
2021-09-16T19:38:36.297Z
2021-09-16T19:52:25.790Z
2021-09-16T19:52:25.790Z
Boommeister
<p>Since Cardano is a network of nodes interacting with each other, each node runs its own version, and as long as the versions are compatible, it should be no issue for them to communicate with one another.</p>
<p>If you want to find out the latest version you can run, just head over to the <a href="https://docs.cardano.org/tools/release-notes/" rel="nofollow noreferrer">Release Notes</a> (latest version as of this answer is 8.1.2). Alternatively, you can see their releases on their <a href="https://github.com/input-output-hk/cardano-node/releases" rel="nofollow noreferrer">github</a>.</p>

CC BY-SA 4.0
2023-10-17T14:35:48.343Z
2023-10-17T14:35:48.343Z
kfkhalili
<p>I recently ran into sync errors after building/installing cardano-node.  I am pretty sure that the problem was that I had built the wrong version, after re-building to exactly what the documentation stated, it synced fine.  So, this begs the question - is there an easy way to find out what version is running on a remote node?</p>

<cardano-node>
How can check what version of Cardano-node is running on testnet or mainnet?
# How can check what version of Cardano-node is running on testnet or mainnet?

(Asked by: username_0 on 2021-08-17)

I recently ran into sync errors after building/installing cardano-node. I am pretty sure that the problem was that I had built the wrong version, after re-building to exactly what the documentation stated, it synced fine. So, this begs the question - is there an easy way to find out what version is running on a remote node?

**Tags:** cardano-node

---

## 4 answers

### Answer by username_1 on 2022-01-07. Score: 1

The correct answer is ***any*** version (that works!). Anybody is able to pick what they want. What matters is what ***you*** have in this case. If you feel your version is off, just download another one (Releases!), install it and run it!

> **Comments:**
> **username_0**: True, but I was hoping to avoid a game of "trial and error".  
> **username_1**: Welcome to software engineering! haha You could do it backwards. Think about possible errors and constraints to later build around that.  

---

### Answer by username_2 on 2021-10-18. Score: 1

You could check your startup parameters and note the path to the config file you are using by using
ps -ef | grep cardano-node

There should be a filename after --config
If unchanged, the testnet and mainnet config files are named as such; testnet-config.json and mainnet-config.json.
If the name doesn't suffice, you can check inside this config file which genesis files are used.
Or are you looking for the latest released version of cardano-node? This can be done with the following command:
curl -s https://api.github.com/repos/input-output-hk/cardano-node/releases/latest | jq -r .tag_name

[Source: Guild Operators, Build Node/CLI section]


---

### Answer by username_3 on 2021-09-16. Score: 0

Not sure if this is checking a remote node, but are you maybe looking for: cardano-node --version?
Example Output:
cardano-node 1.27.0 - linux-x86_64 - ghc-8.10
git rev 8fe46140a52810b6ca456be01d652ca08fe730bf

Or cardano-cli --version?
Example Output:
cardano-cli 1.27.0 - linux-x86_64 - ghc-8.10
git rev 8fe46140a52810b6ca456be01d652ca08fe730bf

> **Comments:**
> **username_0**: Unfortunately, no (or at least I don't think so).  cardano-node --version will get you what version YOU are running but NOT what version is on the test-net or main-net server(s).  So, I was wondering if the version was posted on some website or if there was a command that could be issued for them to report that info.  

---

### Answer by username_4 on 2023-10-17. Score: 0

Since Cardano is a network of nodes interacting with each other, each node runs its own version, and as long as the versions are compatible, it should be no issue for them to communicate with one another.

If you want to find out the latest version you can run, just head over to the [Release Notes](https://docs.cardano.org/tools/release-notes/) (latest version as of this answer is 8.1.2). Alternatively, you can see their releases on their [github](https://github.com/input-output-hk/cardano-node/releases).


---

