Stellar PHP SDK API Documentation

SEP31FeeDetails

Detailed fee breakdown for a cross-border payment transaction via SEP-31.

This class represents the comprehensive fee structure applied to a transaction, including the total fee amount, the asset in which fees are charged, and an optional breakdown of individual fee components.

Tags
see
https://github.com/stellar/stellar-protocol/blob/v3.1.0/ecosystem/sep-0031.md#fee-details-object-schema
see
SEP31TransactionResponse
see
SEP31FeeDetailsDetails

Table of Contents

Properties

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

Methods

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

Properties

Methods

__construct()

public __construct(string $total, string $asset[, array<string|int, SEP31FeeDetailsDetails>|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, SEP31FeeDetailsDetails>|null = null

Optional array of detailed fee components that sum to the total.

fromJson()

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

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

the data to construct the object from.

Return values
SEP31FeeDetails

the object containing the parsed data.


        
On this page

Search results