AnchorFeeInfo

public struct AnchorFeeInfo : Decodable, Sendable

Information about the anchor’s GET /fee endpoint availability and requirements.

Indicates whether the endpoint for querying detailed fee information is supported and if authentication is required to access it.

See SEP-6 Fee

  • Indicates whether the GET /fee endpoint is supported by the anchor.

    Declaration

    Swift

    public let enabled: Bool
  • Indicates whether authentication is required to access the fee endpoint.

    Declaration

    Swift

    public let authenticationRequired: Bool?
  • Optional. A description of how the fee is calculated, to be shown to the user. This is especially relevant when the GET /fee endpoint is not supported and fees cannot be modeled with fixed and percentage values per asset.

    Declaration

    Swift

    public let description: String?
  • Initializer - creates a new instance by decoding from the given decoder.

    Declaration

    Swift

    public init(from decoder: Decoder) throws

    Parameters

    decoder

    The decoder containing the data