DepositInstruction
in package
Represents a deposit instruction field returned by the deposit endpoint.
Contains a key-value pair with a description providing information about how to complete the deposit operation.
Tags
Table of Contents
Properties
- $description : string
- $value : string
Methods
- __construct() : mixed
- fromJson() : DepositInstruction
- Constructs a new instance of DepositInstruction by using the given data.
Properties
$description
public
string
$description
$value
public
string
$value
Methods
__construct()
public
__construct(string $value, string $description) : mixed
Parameters
- $value : string
-
The value of the field.
- $description : string
-
A human-readable description of the field. This can be used by an anchor to provide any additional information about fields that are not defined in the SEP-9 standard.
fromJson()
Constructs a new instance of DepositInstruction by using the given data.
public
static fromJson(array<string|int, mixed> $json) : DepositInstruction
Parameters
- $json : array<string|int, mixed>
-
the data to construct the object from.
Return values
DepositInstruction —the object containing the parsed data.