getVersion RPC Method
Returns the current Solana version running on the node
Parameters #
None
Result #
The result field will be a JSON object with the following fields:
solana-core
- software version of solana-core as astring
feature-set
- unique identifier of the current software's feature set as au32
Code sample #
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
{"jsonrpc":"2.0","id":1, "method":"getVersion"}
'
Response #
{
"jsonrpc": "2.0",
"result": { "feature-set": 2891131721, "solana-core": "1.16.7" },
"id": 1
}