SEP31InfoResponse
in package
Response containing supported receiving assets and KYC requirements from SEP-31 info endpoint.
This class represents the response from GET /info, listing all assets that the Receiving Anchor supports for cross-border payments, along with their transaction limits, fees, and required SEP-12 KYC types for senders and receivers.
Tags
Table of Contents
Properties
- $receiveAssets : array<string, SEP31ReceiveAssetInfo>
Methods
- __construct() : mixed
- fromJson() : SEP31InfoResponse
- Constructs a new instance of SEP31InfoResponse by using the given data.
Properties
$receiveAssets
public
array<string, SEP31ReceiveAssetInfo>
$receiveAssets
(asset code => info) about the assets that the Receiving Anchor supports receiving from the Sending Anchor.
Methods
__construct()
public
__construct(array<string, SEP31ReceiveAssetInfo> $receiveAssets) : mixed
Parameters
- $receiveAssets : array<string, SEP31ReceiveAssetInfo>
-
(asset code => info) about the assets that the Receiving Anchor supports receiving from the Sending Anchor.
fromJson()
Constructs a new instance of SEP31InfoResponse by using the given data.
public
static fromJson(array<string|int, mixed> $json) : SEP31InfoResponse
Parameters
- $json : array<string|int, mixed>
-
the data to construct the object from.
Return values
SEP31InfoResponse —the object containing the parsed data.