Sep31InfoResponse

data class Sep31InfoResponse(val receiveAssets: Map<String, Sep31ReceiveAssetInfo>)

Response payload returned by the SEP-31 GET /info endpoint.

Lists every Stellar asset the Receiving Anchor supports for cross-border payments, keyed by asset code. Each entry describes that asset's transaction limits, fee configuration, SEP-12 customer requirements, SEP-38 quote availability, and the funding methods the anchor can use to deliver the off-chain asset.

Callers typically look up a specific asset by code, then inspect the per-asset configuration before constructing a Sep31PostTransactionsRequest.

Usage

val info = sep31Service.info(jwt = jwt)
val usdc = info.receiveAssets["USDC"] ?: error("Anchor does not accept USDC")
println("Min: ${usdc.minAmount} Max: ${usdc.maxAmount}")
println("Sender types: ${usdc.sep12Info.senderTypes}")

Example JSON

{
"receive": {
"USDC": {
"min_amount": 0.1,
"max_amount": 1000,
"sep12": { "sender": { "types": {} }, "receiver": { "types": {} } }
}
}
}

See also

Constructors

Link copied to clipboard
constructor(receiveAssets: Map<String, Sep31ReceiveAssetInfo>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Map of asset code to per-asset configuration. Empty if the anchor does not currently accept any assets.