Stellar PHP SDK API Documentation

XdrSCAddress extends XdrSCAddressBase
in package

Table of Contents

Properties

$accountId  : XdrAccountID|null
$claimableBalanceId  : XdrClaimableBalanceID|null
$contractId  : string|null
$liquidityPoolId  : string|null
$muxedAccount  : XdrMuxedAccountMed25519|null
$type  : XdrSCAddressType

Methods

__construct()  : mixed
decode()  : static
encode()  : string
forAccountId()  : XdrSCAddress
Accepts ed25519 "G..." and muxed ("M...") account ids.
forClaimableBalanceId()  : XdrSCAddress
Accepts hex values
forContractId()  : XdrSCAddress
Accepts hex or strkey values ("C...")
forLiquidityPoolId()  : XdrSCAddress
fromBase64Xdr()  : static
fromTxRep()  : static
getAccountId()  : XdrAccountID|null
getClaimableBalanceId()  : XdrClaimableBalanceID|null
getContractId()  : string|null
getLiquidityPoolId()  : string|null
getMuxedAccount()  : XdrMuxedAccountMed25519|null
getType()  : XdrSCAddressType
setAccountId()  : void
setClaimableBalanceId()  : void
setContractId()  : void
setLiquidityPoolId()  : void
setMuxedAccount()  : void
setType()  : void
toBase64Xdr()  : string
toStrKey()  : string
Returns the StrKey representation of the address.
toTxRep()  : void

Properties

Methods

forAccountId()

Accepts ed25519 "G..." and muxed ("M...") account ids.

public static forAccountId(string $accountId) : XdrSCAddress
Parameters
$accountId : string

"G..." or "M..."

Return values
XdrSCAddress

forClaimableBalanceId()

Accepts hex values

public static forClaimableBalanceId(string $claimableBalanceId) : XdrSCAddress
Parameters
$claimableBalanceId : string

hex string

Return values
XdrSCAddress

forContractId()

Accepts hex or strkey values ("C...")

public static forContractId(string $contractId) : XdrSCAddress
Parameters
$contractId : string

hex or "C..."

Return values
XdrSCAddress

fromBase64Xdr()

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

fromTxRep()

public static fromTxRep(array<string|int, mixed> $map, string $prefix) : static
Parameters
$map : array<string|int, mixed>
$prefix : string
Return values
static

getContractId()

public getContractId() : string|null
Return values
string|null

getLiquidityPoolId()

public getLiquidityPoolId() : string|null
Return values
string|null

setContractId()

public setContractId(string|null $contractId) : void
Parameters
$contractId : string|null

setLiquidityPoolId()

public setLiquidityPoolId(string|null $liquidityPoolId) : void
Parameters
$liquidityPoolId : string|null

toStrKey()

Returns the StrKey representation of the address.

public toStrKey() : string
Tags
throws
Exception
Return values
string

toTxRep()

public toTxRep(string $prefix, array<string|int, mixed> &$lines) : void
Parameters
$prefix : string
$lines : array<string|int, mixed>

        
On this page

Search results