Stellar PHP SDK API Documentation

XdrSCAddress
in package

Table of Contents

Properties

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

Methods

__construct()  : mixed
decode()  : XdrSCAddress
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
getAccountId()  : XdrAccountID|null
getClaimableBalanceId()  : string|null
getContractId()  : string|null
getLiquidityPoolId()  : string|null
getMuxedAccount()  : XdrMuxedAccountMed25519|null
getType()  : XdrSCAddressType
setAccountId()  : void
setClaimableBalanceId()  : void
setContractId()  : void
setLiquidityPoolId()  : void
setMuxedAccount()  : void
setType()  : void
toStrKey()  : string
Returns the StrKey representation of the address.

Properties

$claimableBalanceId

public string|null $claimableBalanceId = null

hex

$contractId

public string|null $contractId = null

hex or strkey representation ('C...')

$liquidityPoolId

public string|null $liquidityPoolId = null

hex

Methods

forAccountId()

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

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

"C..." 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

getClaimableBalanceId()

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

getContractId()

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

getLiquidityPoolId()

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

setClaimableBalanceId()

public setClaimableBalanceId(string|null $claimableBalanceId) : void
Parameters
$claimableBalanceId : 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

        
On this page

Search results