Stellar PHP SDK API Documentation

SEP38FeeDetails
in package

Individual fee component within a quote or price fee breakdown.

This class represents a single itemized fee component, such as network fees, service fees, or processing fees. Multiple instances combine to form the complete fee structure.

Tags
see
https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0038.md#fee-details-schema
see
SEP38Fee

Table of Contents

Properties

$amount  : string
$description  : string|null
$name  : string

Methods

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

Properties

Methods

__construct()

public __construct(string $name, string $amount[, string|null $description = null ]) : mixed
Parameters
$name : string

The name of the fee component.

$amount : string

The amount of this fee component.

$description : string|null = null

Optional description of what this fee component covers.

fromJson()

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

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

the data to construct the object from.

Return values
SEP38FeeDetails

the object containing the parsed data.


        
On this page

Search results