Stellar PHP SDK API Documentation

XdrLiquidityPoolWithdrawOperation extends XdrLiquidityPoolWithdrawOperationBase
in package

Table of Contents

Properties

$amount  : BigInteger
$liquidityPoolID  : string
$minAmountA  : BigInteger
$minAmountB  : BigInteger

Methods

__construct()  : mixed
decode()  : static
encode()  : string
fromBase64Xdr()  : static
fromTxRep()  : static
Override fromTxRep to read the pool ID as a hex string directly (the base class converts hex→binary bytes via hexToBytes, which breaks encode()).
getAmount()  : BigInteger
getLiquidityPoolID()  : string
getMinAmountA()  : BigInteger
getMinAmountB()  : BigInteger
setAmount()  : void
setLiquidityPoolID()  : void
setMinAmountA()  : void
setMinAmountB()  : void
toBase64Xdr()  : string
toTxRep()  : void
Override toTxRep because this class stores $liquidityPoolID as a hex string, not as raw binary bytes (which the base class assumes via bytesToHex).

Properties

Methods

__construct()

public __construct(string $liquidityPoolID, BigInteger $amount, BigInteger $minAmountA, BigInteger $minAmountB) : mixed
Parameters
$liquidityPoolID : string
$amount : BigInteger
$minAmountA : BigInteger
$minAmountB : BigInteger

fromTxRep()

Override fromTxRep to read the pool ID as a hex string directly (the base class converts hex→binary bytes via hexToBytes, which breaks encode()).

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

toTxRep()

Override toTxRep because this class stores $liquidityPoolID as a hex string, not as raw binary bytes (which the base class assumes via bytesToHex).

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

        
On this page

Search results