FeeRequest
in package
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
Table of Contents
Properties
- $amount : float
- $assetCode : string
- $jwt : string|null
- $operation : string
- $type : string|null
Methods
- __construct() : mixed
Properties
$amount
public
float
$amount
$assetCode
public
string
$assetCode
$jwt
public
string|null
$jwt
= null
$operation
public
string
$operation
$type
public
string|null
$type
= null
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