BlockchainConfig

sealed class BlockchainConfig

Type that can contain any of the blockchain configurations defined by the library.

Samples


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

Types

Link copied to clipboard
data class Electrum(val config: ElectrumConfig) : BlockchainConfig

Electrum client.

Link copied to clipboard
data class Esplora(val config: EsploraConfig) : BlockchainConfig

Esplora client.

Link copied to clipboard
data class Rpc(val config: RpcConfig) : BlockchainConfig

Bitcoin Core RPC client.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard