-
- All Implemented Interfaces:
public final class ElectrumConfig
Configuration for an Electrum blockchain.
-
-
Method Summary
Modifier and Type Method Description final String
getUrl()
URL of the Electrum server (such as ElectrumX, Esplora, BWT) may start with ssl://
ortcp://
and include a port, e.g.final Unit
setUrl(String url)
URL of the Electrum server (such as ElectrumX, Esplora, BWT) may start with ssl://
ortcp://
and include a port, e.g.final String
getSocks5()
URL of the socks5 proxy server or a Tor service. final Unit
setSocks5(String socks5)
URL of the socks5 proxy server or a Tor service. final UByte
getRetry()
Request retry count. final Unit
setRetry(UByte retry)
Request retry count. final UByte
getTimeout()
Request timeout (seconds). final Unit
setTimeout(UByte timeout)
Request timeout (seconds). final ULong
getStopGap()
Stop searching addresses for transactions after finding an unused gap of this length. final Unit
setStopGap(ULong stopGap)
Stop searching addresses for transactions after finding an unused gap of this length. final Boolean
getValidateDomain()
Validate the domain when using SSL. final Unit
setValidateDomain(Boolean validateDomain)
Validate the domain when using SSL. -
-
Method Detail
-
getUrl
final String getUrl()
URL of the Electrum server (such as ElectrumX, Esplora, BWT) may start with
ssl://
ortcp://
and include a port, e.g.ssl://electrum.blockstream.info:60002
.
-
setUrl
final Unit setUrl(String url)
URL of the Electrum server (such as ElectrumX, Esplora, BWT) may start with
ssl://
ortcp://
and include a port, e.g.ssl://electrum.blockstream.info:60002
.
-
getTimeout
final UByte getTimeout()
Request timeout (seconds).
-
setTimeout
final Unit setTimeout(UByte timeout)
Request timeout (seconds).
-
getStopGap
final ULong getStopGap()
Stop searching addresses for transactions after finding an unused gap of this length.
-
setStopGap
final Unit setStopGap(ULong stopGap)
Stop searching addresses for transactions after finding an unused gap of this length.
-
getValidateDomain
final Boolean getValidateDomain()
Validate the domain when using SSL.
-
setValidateDomain
final Unit setValidateDomain(Boolean validateDomain)
Validate the domain when using SSL.
-
-
-
-