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

    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

    operation

    Kind of operation (deposit or withdraw)

    type

    Type of deposit or withdrawal (optional)

    assetCode

    Asset code

    amount

    Amount of the asset that will be deposited/withdrawn

    jwt

    JWT from SEP-10 authentication (optional)