HorizonErrorResponseExtras
in package
Represents additional error information for transaction failures
Contains extra details about failed transactions including XDR representations, result codes, and transaction hash. This information helps diagnose why a transaction was rejected by Stellar Core.
Tags
Table of Contents
Methods
- fromJson() : HorizonErrorResponseExtras
- getEnvelopeXdr() : string|null
- Gets the base64-encoded TransactionEnvelope XDR
- getResultCodesOperation() : array<string|int, string>|null
- Gets the operation result codes
- getResultCodesTransaction() : string|null
- Gets the transaction result code
- getResultXdr() : string|null
- Gets the base64-encoded TransactionResult XDR
- getTxHash() : string|null
- Gets the transaction hash
- loadFromJson() : void
Methods
fromJson()
public
static fromJson(array<string|int, mixed> $json) : HorizonErrorResponseExtras
Parameters
- $json : array<string|int, mixed>
Return values
HorizonErrorResponseExtrasgetEnvelopeXdr()
Gets the base64-encoded TransactionEnvelope XDR
public
getEnvelopeXdr() : string|null
Represents the transaction envelope whose failure triggered this response.
Return values
string|null —The envelope XDR, or null if not available
getResultCodesOperation()
Gets the operation result codes
public
getResultCodesOperation() : array<string|int, string>|null
An array of result codes returned by Stellar Core for each operation. These codes can be used to look up more information about errors in the documentation.
Return values
array<string|int, string>|null —The operation result codes, or null if not available
getResultCodesTransaction()
Gets the transaction result code
public
getResultCodesTransaction() : string|null
The result code returned by Stellar Core can be used to look up more information about the error in the documentation.
Return values
string|null —The transaction result code, or null if not available
getResultXdr()
Gets the base64-encoded TransactionResult XDR
public
getResultXdr() : string|null
Represents the transaction result returned by Stellar Core when submitting this transaction.
Return values
string|null —The result XDR, or null if not available
getTxHash()
Gets the transaction hash
public
getTxHash() : string|null
The hash of the transaction if it was submitted.
Return values
string|null —The transaction hash, or null if not available
loadFromJson()
protected
loadFromJson(array<string|int, mixed> $json) : void
Parameters
- $json : array<string|int, mixed>