Stellar PHP SDK API Documentation

FeeRequest

Request parameters for querying fee information via SEP-06.

Used to query the fee that would be charged for a specific deposit or withdrawal operation. Important when anchors have complex fee schedules that cannot be fully expressed through the simple fee_fixed, fee_percent, and fee_minimum fields in the info endpoint response.

Required fields are operation (deposit/withdraw), assetCode, and amount. Optional type field helps specify the deposit/withdrawal method.

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

SEP-06 Specification

see
TransferServerService::fee()
see
FeeResponse

Table of Contents

Properties

$amount  : float
$assetCode  : string
$jwt  : string|null
$operation  : string
$type  : string|null

Methods

__construct()  : mixed

Properties

Methods

__construct()

public __construct(string $operation, string $assetCode, float $amount[, string|null $type = null ][, string|null $jwt = null ]) : mixed
Parameters
$operation : string

Kind of operation (deposit or withdraw).

$assetCode : string

Stellar asset code.

$amount : float

Amount of the asset that will be deposited/withdrawn.

$type : string|null = null

Type of deposit or withdrawal (SEPA, bank_account, cash, etc...).

$jwt : string|null = null

jwt previously received from the anchor via the SEP-10 authentication flow


        
On this page

Search results