ElectrumConfig

data class ElectrumConfig(    var url: String,     var socks5: String?,     var retry: UByte,     var timeout: UByte?,     var stopGap: ULong,     var validateDomain: Boolean)

Configuration for an Electrum blockchain.

Samples


fun main() { 
   //sampleStart 
   val blockchainConfig = BlockchainConfig.Electrum(
    ElectrumConfig(
        url = "ssl://electrum.blockstream.info:60002",
        socks5 = null,
        retry = 5u,
        timeout = null,
        stopGap = 200u
    )
) 
   //sampleEnd
}

Constructors

Link copied to clipboard
fun ElectrumConfig(    url: String,     socks5: String?,     retry: UByte,     timeout: UByte?,     stopGap: ULong,     validateDomain: Boolean)

Properties

Link copied to clipboard
var retry: UByte

Request retry count.

Link copied to clipboard
var socks5: String?

URL of the socks5 proxy server or a Tor service.

Link copied to clipboard
var stopGap: ULong

Stop searching addresses for transactions after finding an unused gap of this length.

Link copied to clipboard
var timeout: UByte?

Request timeout (seconds).

Link copied to clipboard
var url: String

URL of the Electrum server (such as ElectrumX, Esplora, BWT) may start with ssl:// or tcp:// and include a port, e.g. ssl://electrum.blockstream.info:60002.

Link copied to clipboard
var validateDomain: Boolean

Validate the domain when using SSL.