Saltar al contenido principal

getVersionInfo

Version information about the RPC and Captive core. RPC manages its own, pared-down version of Stellar Core optimized for its own subset of needs. we'll refer to this as a "Captive Core" instance.

Params

(0)

Result

(getVersionInfoResult)
version
string

The version of the RPC server.

Example:
23.0.1
commitHash
string

The commit hash of the RPC server.

Example:
fcd2f0523f04279bae4502f3e3fa00ca627e6f6a
buildTimestamp
string

The build timestamp of the RPC server.

Example:
2025-05-10T11:18:38
captiveCoreVersion
string

The version of the Captive Core.

Example:
stellar-core 23.0.1 (050eacf11a15afb2e95560dfb5723dfdcf78070f)
protocolVersion
integer

The protocol version.

Example:
23

Example

Example request to the getVersionInfo method

Request

curl -X POST \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 8675309,
"method": "getVersionInfo"
}' \
https://soroban-testnet.stellar.org | jq

Result

{
"jsonrpc": "2.0",
"id": 8675309,
"result": {
"version": "23.0.1",
"commit_hash": "fcd2f0523f04279bae4502f3e3fa00ca627e6f6a",
"build_time_stamp": "2025-05-10T11:18:38",
"captive_core_version": "stellar-core 23.0.1 (050eacf11a15afb2e95560dfb5723dfdcf78070f)",
"protocol_version": 23
}
}

Usar el Laboratorio

El método getVersionInfo proporciona detalles de versión sobre el servicio RPC y su Captive Core subyacente, una versión reducida y embebida de Stellar Core optimizada específicamente para operaciones de RPC de Soroban.

Esto es útil para depuración, admitir o asegurar la compatibilidad entre diferentes componentes en tus entornos de desarrollo o producción.

👉 Ver Información de Versión en el Laboratorio

Laboratorio: getVersionInfo