WithdrawType

public struct WithdrawType : Decodable, Sendable

Describes a specific withdrawal type supported by the anchor.

Each withdrawal method (e.g., bank account, crypto address, mobile money) can have different field requirements. This structure specifies which fields are needed for a particular withdrawal type.

See SEP-6 Info

  • Additional fields required for this withdrawal type, keyed by field name.

    Declaration

    Swift

    public let fields: [String : AnchorField]?
  • 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