Stellar PHP SDK API Documentation

DepositInstruction

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
see
https://github.com/stellar/stellar-protocol/blob/v4.3.0/ecosystem/sep-0006.md

SEP-06 Specification

see
DepositResponse

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

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.


        
On this page

Search results