GetTransactionsResponse
extends SorobanRpcResponse
in package
Response of the getTransactions request.
Tags
Table of Contents
Properties
- $cursor : string|null
- $error : SorobanRpcErrorResponse|null
- $jsonResponse : array<string|int, mixed>
- $latestLedger : int|null
- $latestLedgerCloseTimestamp : int|null
- $oldestLedger : int|null
- $oldestLedgerCloseTimestamp : int|null
- $transactions : array<string|int, TransactionInfo>|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
$cursor
public
string|null
$cursor
= null
for pagination.
$error
public
SorobanRpcErrorResponse|null
$error
= null
Error data if the response is an error response
$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.
$latestLedgerCloseTimestamp
public
int|null
$latestLedgerCloseTimestamp
= null
The unix timestamp of the close time of the latest ledger known to Soroban RPC at the time it handled the request.
$oldestLedger
public
int|null
$oldestLedger
= null
The sequence number of the oldest ledger ingested by Soroban RPC at the time it handled the request.
$oldestLedgerCloseTimestamp
public
int|null
$oldestLedgerCloseTimestamp
= null
The unix timestamp of the close time of the oldest ledger ingested by Soroban RPC at the time it handled the request.
$transactions
public
array<string|int, TransactionInfo>|null
$transactions
= null
transactions.
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