Stellar PHP SDK API Documentation

TransactionInfo

Represents a single transaction in the getTransactions response

Tags
see
https://developers.stellar.org/docs/data/rpc/api-reference/methods/getTransactions

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

Properties

$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)

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


        
On this page

Search results