getVersion
The getVersion method returns the current Solana software version running on the node. This information is crucial for understanding node capabilities, determining feature availability, and ensuring compatibility between clients and servers.
Solana's software is continuously evolving with new features, performance improvements, and bug fixes. Different versions support different RPC methods, have varying performance characteristics, and may implement different protocol features. Knowing the node's version helps developers determine which features are available, troubleshoot compatibility issues, and understand the node's capabilities.
This method is essential for monitoring tools tracking network version distribution, compatibility checking in applications that depend on specific features, debugging version-specific issues, and ensuring development environments match production configurations. It helps developers make informed decisions about which RPC methods and features they can reliably use.
Parameters
parameter | type | description |
|---|---|---|
config | object | Optional configuration object (currently no config options are available) |
Return Object
field | type | description |
|---|---|---|
solana-core | string | Software version of the Solana core (e.g., '1.18.15') |
feature-set | number | Unique identifier for the feature set supported by this version |
Request Example
Response Example
Tip: The feature-set is a unique identifier representing all activated features at the time of the build. Different minor versions may have different feature sets. Use this to verify compatibility or detect outdated nodes. Mainnet validators typically run recent stable versions.