FeeRequest
public struct FeeRequest : Sendable
Request parameters for retrieving fee information via SEP-0006.
This struct encapsulates all the parameters needed to query the anchor’s fee structure for a specific deposit or withdrawal operation. The /fee endpoint is deprecated and optional, as fee information can typically be provided through the /info endpoint using fee_fixed and fee_percent fields.
Note: This endpoint is deprecated. Anchors are recommended to express fees through the /info endpoint to provide a better user experience, allowing users to see fee structures early in the process. This endpoint should only be used for complex fee structures that cannot be adequately represented in the /info endpoint.
See also:
-
Kind of operation: deposit or withdraw.
Declaration
Swift
public var operation: String -
Stellar asset code.
Declaration
Swift
public var assetCode: String -
Amount of the asset that will be deposited or withdrawn.
Declaration
Swift
public var amount: Double -
JWT previously received from the anchor via the SEP-10 authentication flow.
Declaration
Swift
public var jwt: String? -
Type of deposit or withdrawal. Examples: SEPA, bank_account, cash, etc.
Declaration
Swift
public var type: String? -
Creates a new fee request.
Declaration
Swift
public init(operation: String, type: String? = nil, assetCode: String, amount: Double, jwt: String? = nil)Parameters
operationThe kind of operation (deposit or withdraw)
typeOptional type of operation (SEPA, bank_account, etc)
assetCodeThe Stellar asset code
amountThe amount that will be deposited or withdrawn
jwtOptional JWT token from SEP-10 authentication
View on GitHub
Install in Dash