Stellar PHP SDK API Documentation

XdrMuxedAccount extends XdrMuxedAccountBase
in package

Table of Contents

Properties

$ed25519  : string|null
$med25519  : XdrMuxedAccountMed25519|null
$type  : XdrCryptoKeyType

Methods

__construct()  : mixed
Constructor. Provide $ed25519 or $med25519.
decode()  : static
encode()  : string
fromBase64Xdr()  : static
fromTxRep()  : static
Deserialize from a compact StrKey address string (G... or M...).
getDiscriminant()  : int
getEd25519()  : string|null
getMed25519()  : XdrMuxedAccountMed25519|null
getType()  : XdrCryptoKeyType
setEd25519()  : void
setMed25519()  : void
setType()  : void
toBase64Xdr()  : string
toTxRep()  : void
Serialize as a compact StrKey address string.

Properties

Methods

fromBase64Xdr()

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

fromTxRep()

Deserialize from a compact StrKey address string (G... or M...).

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

Constructs a plain Ed25519 muxed account from a G... address, or a muxed ed25519 account from an M... address.

Parameters
$map : array<string, string>

Parsed TxRep map.

$prefix : string

Key prefix.

Tags
throws
InvalidArgumentException

If the value is missing or invalid.

Return values
static

setEd25519()

public setEd25519(string|null $ed25519) : void
Parameters
$ed25519 : string|null

toTxRep()

Serialize as a compact StrKey address string.

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

Returns a G... address for plain Ed25519 accounts, or an M... address for muxed (med25519) accounts. Overrides the generated base method, which would expand discriminant and sub-field lines.

Parameters
$prefix : string

Key prefix for the TxRep map.

$lines : array<string, string>

Output map (modified in place).


        
On this page

Search results