Stellar PHP SDK API Documentation

GetLedgerEntriesResponse extends SorobanRpcResponse

Response when reading the current values of ledger entries.

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

Table of Contents

Properties

$entries  : array<string|int, LedgerEntry>|null
$error  : SorobanRpcErrorResponse|null
$jsonResponse  : array<string|int, mixed>
$latestLedger  : int|null

Methods

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

Properties

$latestLedger

public int|null $latestLedger = null

The sequence number of the latest ledger known to Soroban RPC at the time it handled the request

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

getLatestLedger()

public getLatestLedger() : int|null
Return values
int|null

The sequence number of the latest ledger known to Soroban RPC at the time it handled the request

setJsonResponse()

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

The complete JSON response as data array

setLatestLedger()

public setLatestLedger(int|null $latestLedger) : void
Parameters
$latestLedger : int|null

The sequence number of the latest ledger


        
On this page

Search results