DepositExchangeAsset

public struct DepositExchangeAsset : Decodable, Sendable

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

Similar to DepositAsset but used when deposits support on-chain asset exchange. Allows users to deposit one off-chain asset and receive a different on-chain Stellar asset.

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?
  • (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