getVersionInfo - Stellar

Example code for the getVersionInfo JSON-RPC method. Complete guide on how to use getVersionInfo JSON-RPC in GetBlock Web3 documentation.

This method returns version information about the Stellar RPC server.

Parameters

  • None

Request

curl
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"
}'

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

version

string

Version of the Stellar RPC server

commitHash

string

Git commit hash of the build

buildTimestamp

string

Timestamp when the version was built

captiveCoreVersion

string

Version of Captive Stellar Core

protocolVersion

integer

Current protocol version

Use Case

The getVersionInfo method is essential for:

  • Version compatibility checking

  • Debugging node issues

  • Infrastructure monitoring

  • Feature availability detection

  • Client compatibility verification

  • Upgrade planning

Error Handling

Status Code
Error Message
Cause

403

Forbidden

Missing or invalid ACCESS-TOKEN

Last updated

Was this helpful?