fromUrl

fun fromUrl(serviceAddress: String, httpClient: HttpClient? = null, httpRequestHeaders: Map<String, String>? = null): Sep06Service

Creates a Sep06Service from a known transfer server URL.

Use this method when you already know the transfer server URL and don't need to discover it from stellar.toml.

Return

Sep06Service configured with the specified transfer server endpoint

Example:

val sep06 = Sep06Service.fromUrl("https://api.anchor.example.com/sep6")

Parameters

serviceAddress

The base URL of the anchor's SEP-6 transfer server

httpClient

Optional custom HTTP client for testing

httpRequestHeaders

Optional custom headers for requests