AnchorFeeInfo
in package
Describes the availability and requirements for the fee endpoint.
Contains information about whether the fee endpoint is enabled and if authentication is required to access it.
Tags
Table of Contents
Properties
- $authenticationRequired : bool|null
- $description : string|null
- $enabled : bool|null
Methods
- fromJson() : AnchorFeeInfo
- Constructs a new instance of AnchorFeeInfo by using the given data.
Properties
$authenticationRequired
public
bool|null
$authenticationRequired
= null
true if client must be authenticated before accessing the endpoint.
$description
public
string|null
$description
= null
Optional. Anchors are encouraged to add a description field to the fee object returned in GET /info containing a short explanation of how fees are calculated so client applications will be able to display this message to their users. This is especially important if the GET /fee endpoint is not supported and fees cannot be models using fixed and percentage values for each Stellar asset.
$enabled
public
bool|null
$enabled
= null
true if the endpoint is available.
Methods
fromJson()
Constructs a new instance of AnchorFeeInfo by using the given data.
public
static fromJson(array<string|int, mixed> $json) : AnchorFeeInfo
Parameters
- $json : array<string|int, mixed>
-
the data to construct the object from.
Return values
AnchorFeeInfo —the object containing the parsed data.