Stellar PHP SDK API Documentation

SEP38Fee
in package

Fee structure for a quote or price in SEP-38.

This class represents the total fee charged for an exchange operation, including the fee amount, the asset in which it is charged, and an optional breakdown of individual fee components.

Tags
see
https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0038.md#fee-object-schema
see
SEP38QuoteResponse
see
SEP38PriceResponse
see
SEP38FeeDetails

Table of Contents

Properties

$asset  : string
$details  : array<string|int, mixed>|null
$total  : string

Methods

__construct()  : mixed
fromJson()  : SEP38Fee
Constructs a new instance of SEP38Fee by using the given data.

Properties

$details

public array<string|int, mixed>|null $details = null

Methods

__construct()

public __construct(string $total, string $asset[, array<string|int, SEP38FeeDetails>|null $details = null ]) : mixed
Parameters
$total : string

The total fee amount.

$asset : string

The asset in which the fee is charged.

$details : array<string|int, SEP38FeeDetails>|null = null

Optional detailed breakdown of fee components.

fromJson()

Constructs a new instance of SEP38Fee by using the given data.

public static fromJson(array<string|int, mixed> $json) : SEP38Fee
Parameters
$json : array<string|int, mixed>

the data to construct the object from.

Return values
SEP38Fee

the object containing the parsed data.


        
On this page

Search results