AnchorField

public struct AnchorField : Decodable, Sendable

Describes a field that must be provided by the user for deposit or withdrawal operations.

Used to specify required or optional fields for deposit and withdrawal requests. Anchors should use SEP-9 financial account fields where possible but can define custom fields.

See SEP-6 Info

  • Human-readable description explaining what this field is for.

    Declaration

    Swift

    public let description: String?
  • Indicates whether this field is optional for the user to provide.

    Declaration

    Swift

    public let optional: Bool?
  • List of allowed values for this field, if constrained to specific options.

    Declaration

    Swift

    public let choices: [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