Stellar PHP SDK API Documentation

FeeDetails

Describes fee information for a transfer operation.

Contains the total fee amount, the asset in which the fee is charged, and optional detailed breakdown of fee components.

Tags
see
https://github.com/stellar/stellar-protocol/blob/v4.3.0/ecosystem/sep-0006.md

SEP-06 Specification

Table of Contents

Properties

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

Methods

__construct()  : mixed
fromJson()  : FeeDetails
Constructs a new instance of FeeDetails 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, FeeDetailsDetails>|null $details = null ]) : mixed
Parameters
$total : string

The total amount of fee applied.

$asset : string

The asset in which the fee is applied, represented through the Asset Identification Format.

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

An array of objects detailing the fees that were used to calculate the conversion price. This can be used to detail the price components for the end-user.

fromJson()

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

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

the data to construct the object from.

Return values
FeeDetails

the object containing the parsed data.


        
On this page

Search results