TransactionInfo
in package
Represents a single transaction in the getTransactions response
Tags
Table of Contents
Constants
- STATUS_FAILED = "FAILED"
- STATUS_NOT_FOUND = "NOT_FOUND"
- STATUS_SUCCESS = "SUCCESS"
Properties
- $applicationOrder : int
- $createdAt : int
- $diagnosticEventsXdr : array<string|int, string>|null
- $envelopeXdr : string
- $events : TransactionEvents|null
- $feeBump : bool
- $ledger : int
- $resultMetaXdr : string
- $resultXdr : string
- $status : string
- $txHash : string|null
Methods
- __construct() : mixed
- fromJson() : static
- Creates an instance from JSON-RPC response data
Constants
STATUS_FAILED
public
mixed
STATUS_FAILED
= "FAILED"
STATUS_NOT_FOUND
public
mixed
STATUS_NOT_FOUND
= "NOT_FOUND"
STATUS_SUCCESS
public
mixed
STATUS_SUCCESS
= "SUCCESS"
Properties
$applicationOrder
public
int
$applicationOrder
$createdAt
public
int
$createdAt
$diagnosticEventsXdr
public
array<string|int, string>|null
$diagnosticEventsXdr
= null
Base64-encoded slice of xdr.DiagnosticEvent (deprecated, only present if ENABLE_SOROBAN_DIAGNOSTIC_EVENTS is enabled in stellar-core config)
$envelopeXdr
public
string
$envelopeXdr
$events
public
TransactionEvents|null
$events
= null
Events for the transaction (only available for protocol version >= 23)
$feeBump
public
bool
$feeBump
$ledger
public
int
$ledger
$resultMetaXdr
public
string
$resultMetaXdr
$resultXdr
public
string
$resultXdr
$status
public
string
$status
$txHash
public
string|null
$txHash
= null
Methods
__construct()
public
__construct(string $status, int $applicationOrder, bool $feeBump, string $envelopeXdr, string $resultXdr, string $resultMetaXdr, int $ledger, int $createdAt[, string|null $txHash = null ][, array<string|int, string>|null $diagnosticEventsXdr = null ][, TransactionEvents|null $events = null ]) : mixed
Parameters
- $status : string
-
Indicates whether the transaction was successful or not
- $applicationOrder : int
-
The 1-based index of the transaction among all transactions included in the ledger
- $feeBump : bool
-
Indicates whether the transaction was fee bumped
- $envelopeXdr : string
-
Base64-encoded TransactionEnvelope XDR struct for this transaction
- $resultXdr : string
-
Base64-encoded TransactionResult XDR struct for this transaction
- $resultMetaXdr : string
-
Base64-encoded TransactionMeta XDR struct for this transaction
- $ledger : int
-
The sequence number of the ledger which included the transaction
- $createdAt : int
-
Unix timestamp of when the transaction was included in the ledger
- $txHash : string|null = null
-
Hex-encoded transaction hash string (only available for protocol version >= 22)
- $diagnosticEventsXdr : array<string|int, string>|null = null
-
Base64-encoded slice of xdr.DiagnosticEvent (deprecated)
- $events : TransactionEvents|null = null
-
Events for the transaction (only available for protocol version >= 23)
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