> ## Documentation Index
> Fetch the complete documentation index at: https://developers.stellar.org/llms.txt
> Use this file to discover all available pages before exploring further.

# getVersionInfo

> Returns version information

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.\
&#x20;Example: `27.1.1-7e712815319140618b9be8cf0846701a6f9a2cbe`

**commitHash** `string`

The commit hash of the RPC server. \
&#x20;Example: `7e712815319140618b9be8cf0846701a6f9a2cbe`

**buildTimestamp** `string`

The build timestamp of the RPC server.\
&#x20;Example: `2026-07-07T21:12:19`

**captiveCoreVersion** `string`

The version of the Captive Core.\
&#x20;Example: `stellar-core 27.1.0 (3589a696b0d4ef5a2cf2124e349c671d71886d9c)`

**protocolVersion** `integer`

The protocol version.\
&#x20;Example: `27`

## Example

Example request to the `getVersionInfo` method

**Request**

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

```js JavaScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
let requestBody = {
  jsonrpc: "2.0",
  id: 8675309,
  method: "getVersionInfo",
};
let res = await fetch("https://soroban-testnet.stellar.org", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
  },
  body: JSON.stringify(requestBody),
});
let json = await res.json();
console.log(json);
```

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
import json, requests
res = requests.post("https://soroban-testnet.stellar.org", json={
    "jsonrpc": "2.0",
    "id": 8675309,
    "method": "getVersionInfo"
})
print(json.dumps(res.json(), indent=4))
```

```json JSON theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "jsonrpc": "2.0",
  "id": 8675309,
  "method": "getVersionInfo"
}
```

**Result**

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "jsonrpc": "2.0",
  "id": 8675309,
  "result": {
    "version": "27.1.1-7e712815319140618b9be8cf0846701a6f9a2cbe",
    "commitHash": "7e712815319140618b9be8cf0846701a6f9a2cbe",
    "buildTimestamp": "2026-07-07T21:12:19",
    "captiveCoreVersion": "stellar-core 27.1.0 (3589a696b0d4ef5a2cf2124e349c671d71886d9c)",
    "protocolVersion": 27
  }
}
```

### Using the Lab

The `getVersionInfo` method provides **version details** about the RPC service and its underlying **Captive Core**—a pared-down, embedded version of Stellar Core optimized specifically for Soroban RPC operations.

This is useful for debugging, support, or ensuring compatibility between different components in your development or production environments.

👉 [View Version Info on the Lab](https://lab.stellar.org/endpoints/rpc/get-version-info?\$=network\$id=testnet\&label=Testnet\&horizonUrl=https:////horizon-testnet.stellar.org\&rpcUrl=https:////soroban-testnet.stellar.org\&passphrase=Test%20SDF%20Network%20/;%20September%202015;;)

![Lab: getVersionInfo](https://mintcdn.com/stellardevelopmentfoundation/1iVxlvEjme-PeN5h/assets/api/rpc/getversioninfo.png?fit=max\&auto=format\&n=1iVxlvEjme-PeN5h\&q=85\&s=03365b13363de1714ce7c2a2c9bfbe2f)
