info
Fetches the Receiving Anchor's supported assets, limits, and KYC requirements.
Per SEP-31 §"Authentication", every endpoint — including GET /info — requires a SEP-10 JWT in the Authorization: Bearer <jwt> header. The call goes over the same transport the constructor validated: HTTPS for production hosts, or HTTP only against the loopback authorities accepted at construction time.
Pass lang to request a non-English variant of human-readable strings; the anchor advertises supported languages out-of-band.
Example:
val info = sep31Service.info(jwt = jwtToken)
val usdc = info.receiveAssets["USDC"] ?: error("USDC not supported")
println("Min: ${usdc.minAmount} Max: ${usdc.maxAmount}")Return
The parsed Sep31InfoResponse.
Parameters
SEP-10 authentication token.
Optional ISO 639-1 language code passed via the lang query parameter.
Throws
on HTTP 400.
on HTTP 401.
on HTTP 403 (spec-mandated auth failure path).
on HTTP 200 with a malformed body, unexpected Content-Type, or a response that exceeds 2 MB.
on any other HTTP status code (including 3xx, since followRedirects = false).