TxRep
in package
SEP-0011 TxRep: human-readable representation of Stellar transactions.
Thin facade over the generated XDR toTxRep/fromTxRep methods. Handles the envelope-level structure (type header, fee-bump wrapper, inner-tx type line, signatures, and the sorobanData path) which cannot be expressed by purely generic generated code. All inner transaction fields are delegated to the generated XdrTransaction::toTxRep / fromTxRep methods.
Public API is backwards-compatible with the previous monolithic implementation.
Tags
Table of Contents
Methods
- fromTransactionEnvelopeXdrBase64() : string
- Convert a base64-encoded transaction envelope XDR to TxRep text.
- transactionEnvelopeXdrBase64FromTxRep() : string
- Convert TxRep text to a base64-encoded transaction envelope XDR.
Methods
fromTransactionEnvelopeXdrBase64()
Convert a base64-encoded transaction envelope XDR to TxRep text.
public
static fromTransactionEnvelopeXdrBase64(string $transactionEnvelopeXdrBase64) : string
Parameters
- $transactionEnvelopeXdrBase64 : string
-
Base64-encoded XDR.
Tags
Return values
string —TxRep text (key: value lines joined by PHP_EOL).
transactionEnvelopeXdrBase64FromTxRep()
Convert TxRep text to a base64-encoded transaction envelope XDR.
public
static transactionEnvelopeXdrBase64FromTxRep(string $txRep) : string
Parameters
- $txRep : string
-
TxRep text.
Tags
Return values
string —Base64-encoded XDR.