SEP38InfoResponse
in package
Response containing supported assets and delivery methods from SEP-38 info endpoint.
This class represents the response from GET /info, listing all Stellar and off-chain assets available for trading, along with their supported delivery methods and country restrictions.
Tags
Table of Contents
Properties
- $assets : array<string|int, mixed>
Methods
- __construct() : mixed
- fromJson() : SEP38InfoResponse
- Constructs a new instance of SEP38InfoResponse by using the given data.
Properties
$assets
public
array<string|int, mixed>
$assets
Methods
__construct()
public
__construct(array<string|int, SEP38Asset> $assets) : mixed
Parameters
- $assets : array<string|int, SEP38Asset>
-
Array of supported assets with delivery methods and country restrictions.
fromJson()
Constructs a new instance of SEP38InfoResponse by using the given data.
public
static fromJson(array<string|int, mixed> $json) : SEP38InfoResponse
Parameters
- $json : array<string|int, mixed>
-
the data to construct the object from.
Return values
SEP38InfoResponse —the object containing the parsed data.