Stellar PHP SDK API Documentation

GetVersionInfoResponse extends SorobanRpcResponse

Response for version information query.

Tags
see
https://developers.stellar.org/network/soroban-rpc/api-reference/methods/getVersionInfo

Table of Contents

Properties

$buildTimeStamp  : string|null
$captiveCoreVersion  : string|null
$commitHash  : string|null
$error  : SorobanRpcErrorResponse|null
$jsonResponse  : array<string|int, mixed>
$protocolVersion  : int|null
$version  : string|null

Methods

__construct()  : mixed
fromJson()  : static
Creates an instance from JSON-RPC response data
getError()  : SorobanRpcErrorResponse|null
getJsonResponse()  : array<string|int, mixed>
setError()  : void
setJsonResponse()  : void

Properties

$captiveCoreVersion

public string|null $captiveCoreVersion = null

The version of the Captive Core

Methods

__construct()

public __construct(array<string|int, mixed> $jsonResponse) : mixed
Parameters
$jsonResponse : array<string|int, mixed>

The complete JSON response as data array

fromJson()

Creates an instance from JSON-RPC response data

public static fromJson(array<string, mixed> $json) : static
Parameters
$json : array<string, mixed>

The JSON response data

Return values
static

The created instance

getJsonResponse()

public getJsonResponse() : array<string|int, mixed>
Return values
array<string|int, mixed>

The complete JSON response as data array

setJsonResponse()

public setJsonResponse(array<string|int, mixed> $jsonResponse) : void
Parameters
$jsonResponse : array<string|int, mixed>

The complete JSON response as data array


        
On this page

Search results