Skip to main content

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
required

The version of the RPC server.

Example:
21.1.0
commit_hash
string
required

The commit hash of the RPC server.

Example:
fcd2f0523f04279bae4502f3e3fa00ca627e6f6a
build_time_stamp
string
required

The build timestamp of the RPC server.

Example:
2024-05-10T11:18:38
captive_core_version
string
required

The version of the Captive Core.

Example:
stellar-core 21.0.0.rc2 (c6f474133738ae5f6d11b07963ca841909210273)
protocol_version
integer
required

The protocol version.

Example:
21

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:443 | jq

Result

{
"jsonrpc": "2.0",
"id": 8675309,
"result": {
"version": "21.1.0",
"commit_hash": "fcd2f0523f04279bae4502f3e3fa00ca627e6f6a",
"build_time_stamp": "2024-05-10T11:18:38",
"captive_core_version": "stellar-core 21.0.0.rc2 (c6f474133738ae5f6d11b07963ca841909210273)",
"protocol_version": 21
}
}