getVersionInfo - Stellar
Example code for the getVersionInfo JSON-RPC method. Complete guide on how to use getVersionInfo JSON-RPC in GetBlock Web3 documentation.
Parameters
Request
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "getVersionInfo",
"id": "getblock.io"
}'import axios from 'axios';
const data = JSON.stringify({
"jsonrpc": "2.0",
"method": "getVersionInfo",
"id": "getblock.io"
});
const config = {
method: 'post',
url: 'https://go.getblock.io/<ACCESS-TOKEN>/',
headers: {
'Content-Type': 'application/json'
},
data: data
};
axios(config)
.then(response => console.log(JSON.stringify(response.data)))
.catch(error => console.log(error));Response
{
"jsonrpc": "2.0",
"id": "getblock.io",
"result": {
"version": "25.0.0-5084a53192b63655c8c5ef1cdc793d2098cf785a",
"commitHash": "5084a53192b63655c8c5ef1cdc793d2098cf785a",
"buildTimestamp": "2025-12-12T21:41:24",
"captiveCoreVersion": "stellar-core 25.0.0 (e9748b05a70d613437a52c8388dc0d8e68149394)",
"protocolVersion": 24
}
}Response Parameters
Field
Type
Description
Use Case
Error Handling
Status Code
Error Message
Cause
Last updated
Was this helpful?