DepositAsset

public struct DepositAsset : Decodable, Sendable

Information about an asset available for deposit operations via SEP-6.

Provides details about deposit capabilities including fee structure, transaction limits, authentication requirements, and any required fields for deposit transactions.

See SEP-6 Info

  • true if SEP-6 deposit for this asset is supported

    Declaration

    Swift

    public let enabled: Bool
  • Optional. true if client must be authenticated before accessing the deposit endpoint for this asset. false if not specified.

    Declaration

    Swift

    public let authenticationRequired: Bool?
  • Optional fixed (flat) fee for deposit, in units of the Stellar asset. Nil if there is no fee or the fee schedule is complex.

    Declaration

    Swift

    public let feeFixed: Double?
  • Optional percentage fee for deposit, in percentage points of the Stellar asset. Nil if there is no fee or the fee schedule is complex.

    Declaration

    Swift

    public let feePercent: Double?
  • Optional minimum amount. No limit if not specified.

    Declaration

    Swift

    public let minAmount: Double?
  • Optional maximum amount. No limit if not specified.

    Declaration

    Swift

    public let maxAmount: Double?
  • (Deprecated) Accepting personally identifiable information through request parameters is a security risk due to web server request logging. KYC information should be supplied to the Anchor via SEP-12).

    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