Sep38FeeDetails

public struct Sep38FeeDetails : Decodable, Sendable

Detailed information about a specific fee component.

This structure describes an individual fee charge that contributes to the total fee amount in a quote or price.

  • The name of this fee component.

    Example: “Service fee”, “Network fee”, “Processing fee”

    Declaration

    Swift

    public let name: String
  • The amount of this fee component.

    Represented as a decimal string in the fee asset’s units.

    Declaration

    Swift

    public let amount: String
  • Optional human-readable description of this fee component.

    Provides additional context about what this fee covers.

    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