Stellar PHP SDK API Documentation

GetNetworkResponse extends SorobanRpcResponse

Response for the getNetwork request.

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

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

$friendbotUrl

public string|null $friendbotUrl = null

URL of this network's friendbot faucet

$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

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

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


        
On this page

Search results