GetEventsResponse
extends SorobanRpcResponse
in package
Response of the getEvents request.
Tags
Table of Contents
Properties
- $cursor : string|null
- $error : SorobanRpcErrorResponse|null
- $events : array<string|int, EventInfo>|null
- $jsonResponse : array<string|int, mixed>
- $latestLedger : int|null
- $latestLedgerCloseTime : int|null
- $oldestLedger : int|null
- $oldestLedgerCloseTime : int|null
Methods
- __construct() : mixed
- fromJson() : static
- Creates an instance from JSON-RPC response data
- getCursor() : string|null
- getError() : SorobanRpcErrorResponse|null
- getEvents() : array<string|int, EventInfo>|null
- getJsonResponse() : array<string|int, mixed>
- getLatestLedger() : int|null
- getLatestLedgerCloseTime() : int|null
- getOldestLedger() : int|null
- getOldestLedgerCloseTime() : int|null
- setCursor() : void
- setError() : void
- setEvents() : void
- setJsonResponse() : void
- setLatestLedger() : void
- setLatestLedgerCloseTime() : void
- setOldestLedger() : void
- setOldestLedgerCloseTime() : void
Properties
$cursor
public
string|null
$cursor
= null
Pagination cursor for retrieving additional results (protocol >= 22)
$error
public
SorobanRpcErrorResponse|null
$error
= null
Error data if the response is an error response
$events
public
array<string|int, EventInfo>|null
$events
= null
Found events matching the filter criteria
$jsonResponse
public
array<string|int, mixed>
$jsonResponse
$latestLedger
public
int|null
$latestLedger
= null
The sequence number of the latest ledger known to Soroban RPC at the time it handled the request
$latestLedgerCloseTime
public
int|null
$latestLedgerCloseTime
= null
Unix timestamp of the latest ledger close time
$oldestLedger
public
int|null
$oldestLedger
= null
The sequence number of the oldest ledger in the search range
$oldestLedgerCloseTime
public
int|null
$oldestLedgerCloseTime
= null
Unix timestamp of the oldest ledger close time
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
getCursor()
public
getCursor() : string|null
Return values
string|null —Pagination cursor for retrieving additional results (protocol >= 22)
getError()
public
getError() : SorobanRpcErrorResponse|null
Return values
SorobanRpcErrorResponse|null —Error data if the response is an error response
getEvents()
public
getEvents() : array<string|int, EventInfo>|null
Return values
array<string|int, EventInfo>|null —Found events matching the filter criteria
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
getLatestLedgerCloseTime()
public
getLatestLedgerCloseTime() : int|null
Return values
int|null —Unix timestamp of the latest ledger close time
getOldestLedger()
public
getOldestLedger() : int|null
Return values
int|null —The sequence number of the oldest ledger in the search range
getOldestLedgerCloseTime()
public
getOldestLedgerCloseTime() : int|null
Return values
int|null —Unix timestamp of the oldest ledger close time
setCursor()
public
setCursor(string|null $cursor) : void
Parameters
- $cursor : string|null
-
Pagination cursor for retrieving additional results (protocol >= 22)
setError()
public
setError(SorobanRpcErrorResponse|null $error) : void
Parameters
- $error : SorobanRpcErrorResponse|null
-
Error data if the response is an error response
setEvents()
public
setEvents(array<string|int, EventInfo>|null $events) : void
Parameters
- $events : array<string|int, EventInfo>|null
-
Found events matching the filter criteria
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 known to Soroban RPC at the time it handled the request
setLatestLedgerCloseTime()
public
setLatestLedgerCloseTime(int|null $latestLedgerCloseTime) : void
Parameters
- $latestLedgerCloseTime : int|null
-
Unix timestamp of the latest ledger close time
setOldestLedger()
public
setOldestLedger(int|null $oldestLedger) : void
Parameters
- $oldestLedger : int|null
-
The sequence number of the oldest ledger in the search range
setOldestLedgerCloseTime()
public
setOldestLedgerCloseTime(int|null $oldestLedgerCloseTime) : void
Parameters
- $oldestLedgerCloseTime : int|null
-
Unix timestamp of the oldest ledger close time