-
- All Implemented Interfaces:
public final class EsploraConfig
Configuration for an Esplora blockchain.
-
-
Method Summary
Modifier and Type Method Description final String
getBaseUrl()
Base URL of the esplora service, e.g. final Unit
setBaseUrl(String baseUrl)
Base URL of the esplora service, e.g. final String
getProxy()
Optional URL of the proxy to use to make requests to the Esplora server. final Unit
setProxy(String proxy)
Optional URL of the proxy to use to make requests to the Esplora server. final UByte
getConcurrency()
Number of parallel requests sent to the esplora service (default: 4). final Unit
setConcurrency(UByte concurrency)
Number of parallel requests sent to the esplora service (default: 4). 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 ULong
getTimeout()
Socket timeout. final Unit
setTimeout(ULong timeout)
Socket timeout. -
-
Method Detail
-
getBaseUrl
final String getBaseUrl()
Base URL of the esplora service, e.g.
https://blockstream.info/api/
.
-
setBaseUrl
final Unit setBaseUrl(String baseUrl)
Base URL of the esplora service, e.g.
https://blockstream.info/api/
.
-
getProxy
final String getProxy()
Optional URL of the proxy to use to make requests to the Esplora server.
-
setProxy
final Unit setProxy(String proxy)
Optional URL of the proxy to use to make requests to the Esplora server.
-
getConcurrency
final UByte getConcurrency()
Number of parallel requests sent to the esplora service (default: 4).
-
setConcurrency
final Unit setConcurrency(UByte concurrency)
Number of parallel requests sent to the esplora service (default: 4).
-
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.
-
getTimeout
final ULong getTimeout()
Socket timeout.
-
setTimeout
final Unit setTimeout(ULong timeout)
Socket timeout.
-
-
-
-