info
Gets anchor capabilities and supported assets.
Returns information about what assets the anchor supports for deposit and withdrawal, including limits, fees, and feature support.
Return
Sep06InfoResponse containing anchor capabilities
Parameters
language
Optional language code (RFC 4646, e.g., "en", "es") for localized messages
jwt
Optional SEP-10 JWT token if the anchor requires authentication for /info
Throws
On anchor server error
Example:
val info = sep06.info()
// Check deposit assets
info.deposit?.forEach { (code, assetInfo) ->
if (assetInfo.enabled) {
println("$code: min=${assetInfo.minAmount}, max=${assetInfo.maxAmount}")
}
}
// Check feature support
if (info.features?.claimableBalances == true) {
println("Anchor supports claimable balances")
}Content copied to clipboard