XdrClaimableBalanceID
in package
Table of Contents
Methods
- __construct() : mixed
- decode() : XdrClaimableBalanceID
- encode() : string
- forClaimableBalanceId() : XdrClaimableBalanceID
- getHash() : string
- getPaddedBalanceIdHex() : string
- Returns the balance id as hex string with leading zeros, so it can be used in horizon requests.
- getType() : XdrClaimableBalanceIDType
Methods
__construct()
public
__construct(XdrClaimableBalanceIDType $type, string $hash) : mixed
Parameters
- $type : XdrClaimableBalanceIDType
- $hash : string
decode()
public
static decode(XdrBuffer $xdr) : XdrClaimableBalanceID
Parameters
- $xdr : XdrBuffer
Return values
XdrClaimableBalanceIDencode()
public
encode() : string
Return values
stringforClaimableBalanceId()
public
static forClaimableBalanceId(string $claimableBalanceId) : XdrClaimableBalanceID
Parameters
- $claimableBalanceId : string
Return values
XdrClaimableBalanceIDgetHash()
public
getHash() : string
Return values
stringgetPaddedBalanceIdHex()
Returns the balance id as hex string with leading zeros, so it can be used in horizon requests.
public
getPaddedBalanceIdHex() : string
e.g. '000000003be9c4382b2e4acc74600f6eb1b68e51de5e5cc22ee2adcf68bd7fdfa1f40cf9' instead of '3be9c4382b2e4acc74600f6eb1b68e51de5e5cc22ee2adcf68bd7fdfa1f40cf9'
Return values
string —balance id as hex string with leading zeros, so it can be used in horizon requests.
getType()
public
getType() : XdrClaimableBalanceIDType