GetNetworkResponse
extends SorobanRpcResponse
in package
Response for the getNetwork request.
Tags
Table of Contents
Properties
- $error : SorobanRpcErrorResponse|null
- $friendbotUrl : string|null
- $jsonResponse : array<string|int, mixed>
- $passphrase : string|null
- $protocolVersion : int|null
Methods
- __construct() : mixed
- fromJson() : static
- Creates an instance from JSON-RPC response data
- getError() : SorobanRpcErrorResponse|null
- getFriendbotUrl() : string|null
- getJsonResponse() : array<string|int, mixed>
- getPassphrase() : string|null
- getProtocolVersion() : int|null
- setError() : void
- setFriendbotUrl() : void
- setJsonResponse() : void
- setPassphrase() : void
- setProtocolVersion() : void
Properties
$error
public
SorobanRpcErrorResponse|null
$error
= null
Error data if the response is an error response
$friendbotUrl
public
string|null
$friendbotUrl
= null
URL of this network's friendbot faucet
$jsonResponse
public
array<string|int, mixed>
$jsonResponse
$passphrase
public
string|null
$passphrase
= null
Network passphrase configured for this Soroban RPC node
$protocolVersion
public
int|null
$protocolVersion
= null
Stellar Core protocol version associated with the latest ledger
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
getFriendbotUrl()
public
getFriendbotUrl() : string|null
Return values
string|null —URL of this network's friendbot faucet
getJsonResponse()
public
getJsonResponse() : array<string|int, mixed>
Return values
array<string|int, mixed> —The complete JSON response as data array
getPassphrase()
public
getPassphrase() : string|null
Return values
string|null —Network passphrase configured for this Soroban RPC node
getProtocolVersion()
public
getProtocolVersion() : int|null
Return values
int|null —Stellar Core protocol version associated with the latest ledger
setError()
public
setError(SorobanRpcErrorResponse|null $error) : void
Parameters
- $error : SorobanRpcErrorResponse|null
-
Error data if the response is an error response
setFriendbotUrl()
public
setFriendbotUrl(string|null $friendbotUrl) : void
Parameters
- $friendbotUrl : string|null
-
URL of the friendbot faucet
setJsonResponse()
public
setJsonResponse(array<string|int, mixed> $jsonResponse) : void
Parameters
- $jsonResponse : array<string|int, mixed>
-
The complete JSON response as data array
setPassphrase()
public
setPassphrase(string|null $passphrase) : void
Parameters
- $passphrase : string|null
-
Network passphrase
setProtocolVersion()
public
setProtocolVersion(int|null $protocolVersion) : void
Parameters
- $protocolVersion : int|null
-
Stellar Core protocol version