Sep24FeeRequest
public struct Sep24FeeRequest : Sendable
Request parameters for querying transaction fees via SEP-0024.
This struct encapsulates the parameters needed to request fee information from an anchor before initiating a deposit or withdrawal transaction.
See also:
- [InteractiveService.getFee] for the method that uses this request
- SEP-0024
-
Kind of operation (deposit or withdraw).
Declaration
Swift
public var operation: String -
Type of deposit or withdrawal (SEPA, bank_account, cash, etc.).
Declaration
Swift
public var type: String? -
Asset code.
Declaration
Swift
public var assetCode: String -
Amount of the asset that will be deposited/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? -
Creates a new fee request.
Declaration
Swift
public init(operation: String, type: String? = nil, assetCode: String, amount: Double, jwt: String? = nil)Parameters
operationKind of operation (deposit or withdraw)
typeType of deposit or withdrawal (optional)
assetCodeAsset code
amountAmount of the asset that will be deposited/withdrawn
jwtJWT from SEP-10 authentication (optional)
View on GitHub
Install in Dash