Stellar PHP SDK API Documentation

XdrSCValType
in package

Table of Contents

Constants

SCV_ADDRESS  : mixed = 18
SCV_BOOL  : mixed = 0
SCV_BYTES  : mixed = 13
SCV_CONTRACT_INSTANCE  : mixed = 19
SCV_DURATION  : mixed = 8
SCV_ERROR  : mixed = 2
SCV_I128  : mixed = 10
SCV_I256  : mixed = 12
SCV_I32  : mixed = 4
SCV_I64  : mixed = 6
SCV_LEDGER_KEY_CONTRACT_INSTANCE  : mixed = 20
SCV_LEDGER_KEY_NONCE  : mixed = 21
SCV_MAP  : mixed = 17
SCV_STRING  : mixed = 14
SCV_SYMBOL  : mixed = 15
SCV_TIMEPOINT  : mixed = 7
SCV_U128  : mixed = 9
SCV_U256  : mixed = 11
SCV_U32  : mixed = 3
SCV_U64  : mixed = 5
SCV_VEC  : mixed = 16
SCV_VOID  : mixed = 1

Properties

$value  : int

Methods

__construct()  : mixed
ADDRESS()  : XdrSCValType
BOOL()  : XdrSCValType
BYTES()  : XdrSCValType
decode()  : XdrSCValType
DURATION()  : XdrSCValType
encode()  : string
enumName()  : string
ERROR()  : XdrSCValType
fromBase64Xdr()  : static
fromJson()  : static
fromJsonValue()  : static
fromTxRep()  : static
fromTxRepName()  : static
getValue()  : int
I128()  : XdrSCValType
I256()  : XdrSCValType
I32()  : XdrSCValType
I64()  : XdrSCValType
LEDGER_KEY_NONCE()  : XdrSCValType
MAP()  : XdrSCValType
SCV_CONTRACT_INSTANCE()  : XdrSCValType
SCV_LEDGER_KEY_CONTRACT_INSTANCE()  : XdrSCValType
STRING()  : XdrSCValType
SYMBOL()  : XdrSCValType
TIMEPOINT()  : XdrSCValType
toBase64Xdr()  : string
toJson()  : string
toJsonValue()  : string
toTxRep()  : void
U128()  : XdrSCValType
U256()  : XdrSCValType
U32()  : XdrSCValType
U64()  : XdrSCValType
VEC()  : XdrSCValType
VOID()  : XdrSCValType

Constants

SCV_CONTRACT_INSTANCE

public mixed SCV_CONTRACT_INSTANCE = 19

SCV_LEDGER_KEY_CONTRACT_INSTANCE

public mixed SCV_LEDGER_KEY_CONTRACT_INSTANCE = 20

SCV_LEDGER_KEY_NONCE

public mixed SCV_LEDGER_KEY_NONCE = 21

Properties

Methods

__construct()

public __construct(int $value) : mixed
Parameters
$value : int

enumName()

public enumName() : string
Return values
string

fromBase64Xdr()

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

fromJson()

public static fromJson(string $json) : static
Parameters
$json : string
Tags
throws
JsonException

If $json is not syntactically valid JSON.

InvalidArgumentException

If the JSON shape does not match this type.

Return values
static

fromJsonValue()

public static fromJsonValue(mixed $value) : static
Parameters
$value : mixed
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

fromTxRepName()

public static fromTxRepName(string $name) : static
Parameters
$name : string
Return values
static

toBase64Xdr()

public toBase64Xdr() : string
Return values
string

toJson()

public toJson() : string
Tags
throws
JsonException

If the value contains structures that cannot be encoded as JSON.

Return values
string

toJsonValue()

public toJsonValue() : string
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