Stellar PHP SDK API Documentation

XdrSCSpecType
in package

Table of Contents

Constants

SC_SPEC_TYPE_ADDRESS  : mixed = 19
SC_SPEC_TYPE_BOOL  : mixed = 1
SC_SPEC_TYPE_BYTES  : mixed = 14
SC_SPEC_TYPE_BYTES_N  : mixed = 1006
SC_SPEC_TYPE_DURATION  : mixed = 9
SC_SPEC_TYPE_ERROR  : mixed = 3
SC_SPEC_TYPE_I128  : mixed = 11
SC_SPEC_TYPE_I256  : mixed = 13
SC_SPEC_TYPE_I32  : mixed = 5
SC_SPEC_TYPE_I64  : mixed = 7
SC_SPEC_TYPE_MAP  : mixed = 1004
SC_SPEC_TYPE_MUXED_ADDRESS  : mixed = 20
SC_SPEC_TYPE_OPTION  : mixed = 1000
SC_SPEC_TYPE_RESULT  : mixed = 1001
SC_SPEC_TYPE_STRING  : mixed = 16
SC_SPEC_TYPE_SYMBOL  : mixed = 17
SC_SPEC_TYPE_TIMEPOINT  : mixed = 8
SC_SPEC_TYPE_TUPLE  : mixed = 1005
SC_SPEC_TYPE_U128  : mixed = 10
SC_SPEC_TYPE_U256  : mixed = 12
SC_SPEC_TYPE_U32  : mixed = 4
SC_SPEC_TYPE_U64  : mixed = 6
SC_SPEC_TYPE_UDT  : mixed = 2000
SC_SPEC_TYPE_VAL  : mixed = 0
SC_SPEC_TYPE_VEC  : mixed = 1002
SC_SPEC_TYPE_VOID  : mixed = 2

Properties

$value  : int

Methods

__construct()  : mixed
ADDRESS()  : XdrSCSpecType
BOOL()  : XdrSCSpecType
BYTES()  : XdrSCSpecType
BYTES_N()  : XdrSCSpecType
decode()  : XdrSCSpecType
DURATION()  : XdrSCSpecType
encode()  : string
ERROR()  : XdrSCSpecType
fromBase64Xdr()  : static
fromJson()  : static
fromJsonValue()  : static
getValue()  : int
I128()  : XdrSCSpecType
I256()  : XdrSCSpecType
I32()  : XdrSCSpecType
I64()  : XdrSCSpecType
MAP()  : XdrSCSpecType
MUXED_ADDRESS()  : XdrSCSpecType
OPTION()  : XdrSCSpecType
RESULT()  : XdrSCSpecType
STRING()  : XdrSCSpecType
SYMBOL()  : XdrSCSpecType
TIMEPOINT()  : XdrSCSpecType
toBase64Xdr()  : string
toJson()  : string
toJsonValue()  : string
TUPLE()  : XdrSCSpecType
U128()  : XdrSCSpecType
U256()  : XdrSCSpecType
U32()  : XdrSCSpecType
U64()  : XdrSCSpecType
UDT()  : XdrSCSpecType
VAL()  : XdrSCSpecType
VEC()  : XdrSCSpecType
VOID()  : XdrSCSpecType

Constants

SC_SPEC_TYPE_BYTES_N

public mixed SC_SPEC_TYPE_BYTES_N = 1006

SC_SPEC_TYPE_DURATION

public mixed SC_SPEC_TYPE_DURATION = 9

SC_SPEC_TYPE_MUXED_ADDRESS

public mixed SC_SPEC_TYPE_MUXED_ADDRESS = 20

SC_SPEC_TYPE_TIMEPOINT

public mixed SC_SPEC_TYPE_TIMEPOINT = 8

Properties

Methods

__construct()

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

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

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
On this page

Search results