StellarConfiguration

data class StellarConfiguration(network: Network, horizonUrl: String, baseFee: ULong, defaultTimeout: Duration, horizonClient: OkHttpClient?, submitClient: OkHttpClient?)

Configuration for all Stellar-related activity.

Constructors

Link copied to clipboard
fun StellarConfiguration(network: Network, horizonUrl: String, baseFee: ULong, defaultTimeout: Duration = Duration.ofMinutes(3), horizonClient: OkHttpClient? = null, submitClient: OkHttpClient? = null)

Create empty Stellar configuration

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val baseFee: ULong

Default base fee (https://developers.stellar.org/docs/encyclopedia/fees-surge-pricing-fee-strategies#network-fees-on-stellar)

Link copied to clipboard
val defaultTimeout: Duration

default transaction timeout

Link copied to clipboard
val horizonClient: OkHttpClient? = null

optional HTTP client configuration to be used for Horizon calls.

Link copied to clipboard
val horizonUrl: String

URL of the Horizons server.

Link copied to clipboard
val network: Network

network to be used

Link copied to clipboard
var server: Server
Link copied to clipboard
val submitClient: OkHttpClient? = null

optional HTTP client configuration to be used for transaction submission.