AnchorInfoResponse
public struct AnchorInfoResponse : Decodable, Sendable
Response returned by the GET /info endpoint describing anchor capabilities.
This response provides information about which assets the anchor supports for deposits and withdrawals, along with fee structures, transaction limits, and required fields. It is the first endpoint wallets should call to understand what operations are supported.
See SEP-6 Info
-
Information about assets available for deposit, keyed by asset code.
Declaration
Swift
public let deposit: [String : DepositAsset]? -
Information about assets available for deposit with exchange, keyed by asset code.
Declaration
Swift
public let depositExchange: [String : DepositExchangeAsset]? -
Information about assets available for withdrawal, keyed by asset code.
Declaration
Swift
public let withdraw: [String : WithdrawAsset]? -
Information about assets available for withdrawal with exchange, keyed by asset code.
Declaration
Swift
public let withdrawExchange: [String : WithdrawExchangeAsset]? -
Information about the GET /transactions endpoint support.
Declaration
Swift
public let transactions: AnchorTransactionsInfo? -
Information about the GET /transaction endpoint support.
Declaration
Swift
public let transaction: AnchorTransactionInfo? -
Information about the GET /fee endpoint support.
Declaration
Swift
public let fee: AnchorFeeInfo? -
Feature flags indicating additional anchor capabilities.
Declaration
Swift
public let features: AnchorFeatureFlags? -
Initializer - creates a new instance by decoding from the given decoder.
Declaration
Swift
public init(from decoder: Decoder) throwsParameters
decoderThe decoder containing the data
View on GitHub
Install in Dash