GetVersionInfoResponse
extends SorobanRpcResponse
in package
Response for version information query.
Tags
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
$buildTimeStamp
public
string|null
$buildTimeStamp
= null
The build timestamp of the RPC server
$captiveCoreVersion
public
string|null
$captiveCoreVersion
= null
The version of the Captive Core
$commitHash
public
string|null
$commitHash
= null
The commit hash of the RPC server
$error
public
SorobanRpcErrorResponse|null
$error
= null
Error data if the response is an error response
$jsonResponse
public
array<string|int, mixed>
$jsonResponse
$protocolVersion
public
int|null
$protocolVersion
= null
The protocol version
$version
public
string|null
$version
= null
The version of the RPC server
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
getError()
public
getError() : SorobanRpcErrorResponse|null
Return values
SorobanRpcErrorResponse|null —Error data if the response is an error response
getJsonResponse()
public
getJsonResponse() : array<string|int, mixed>
Return values
array<string|int, mixed> —The complete JSON response as data array
setError()
public
setError(SorobanRpcErrorResponse|null $error) : void
Parameters
- $error : SorobanRpcErrorResponse|null
-
Error data if the response is an error response
setJsonResponse()
public
setJsonResponse(array<string|int, mixed> $jsonResponse) : void
Parameters
- $jsonResponse : array<string|int, mixed>
-
The complete JSON response as data array