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

Configuration for an Electrum blockchain.


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


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


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.