FeeDetailsDetails

public struct FeeDetailsDetails : Decodable, Sendable

Individual fee component in the fee breakdown.

Provides details about a specific fee component, allowing anchors to show itemized pricing to users.

See SEP-6 Transaction Object

  • The name of the fee, for example ACH fee, Brazilian conciliation fee, Service fee, etc.

    Declaration

    Swift

    public let name: String
  • The amount of asset applied. If fee_details.details is provided, sum(fee_details.details.amount) should be equals fee_details.total.

    Declaration

    Swift

    public let amount: String
  • (optional) A text describing the fee.

    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