Stellar PHP SDK API Documentation

XdrAccountMergeOperation
in package

Table of Contents

Methods

__construct()  : mixed
decode()  : XdrAccountMergeOperation
encode()  : string
fromBase64Xdr()  : static
fromJson()  : static
fromJsonValue()  : static
SEP-51 wire form delegates fully to XdrMuxedAccount with no envelope.
fromTxRep()  : XdrAccountMergeOperation
Reconstruct from a TxRep map.
getDestination()  : XdrMuxedAccount
toBase64Xdr()  : string
toJson()  : string
toJsonValue()  : mixed
SEP-51 wire form delegates fully to XdrMuxedAccount with no envelope.
toTxRep()  : void
Emit the destination address as a TxRep value at the given key.

Methods

fromBase64Xdr()

public static fromBase64Xdr(string $xdr) : static
Parameters
$xdr : string
Return values
static

fromJson()

public static fromJson(string $json) : static
Parameters
$json : string
Return values
static

fromJsonValue()

SEP-51 wire form delegates fully to XdrMuxedAccount with no envelope.

public static fromJsonValue(mixed $value) : static
Parameters
$value : mixed
Return values
static

fromTxRep()

Reconstruct from a TxRep map.

public static fromTxRep(array<string, string> $map, string $prefix) : XdrAccountMergeOperation

The caller passes the full key (e.g. tx.operations[0].body.destination) as $prefix; we read the value directly at that key.

Parameters
$map : array<string, string>

Parsed TxRep key/value map.

$prefix : string

Full TxRep key including .destination.

Return values
XdrAccountMergeOperation

toJsonValue()

SEP-51 wire form delegates fully to XdrMuxedAccount with no envelope.

public toJsonValue() : mixed

toTxRep()

Emit the destination address as a TxRep value at the given key.

public toTxRep(string $prefix, array<string, string> &$lines) : void

ACCOUNT_MERGE in SEP-0011 serialises as a bare destination key (e.g. tx.operations[0].body.destination: G...). The caller in XdrOperationBody already appends .destination to the prefix before passing it here, so this method writes the value directly at $prefix.

Parameters
$prefix : string

Full TxRep key including .destination.

$lines : array<string, string>

Output map.

On this page

Search results