Electrum Client
class ElectrumClient(val chainSelector: ChainSelector, val name: String, val port: Int = DEFAULT_NEXA_SSL_ELECTRUM_PORT, val logName: String = name + ":" + port, autostart: Boolean = true, val useSSL: Boolean = true, connectTimeoutMs: Long = JsonRpc.CONNECT_TIMEOUT, accessTimeoutMs: Long = JsonRpc.ACCESS_TIMEOUT) : JsonRpc
Open a JSON-RPC over TCP connection to an Electrum X server
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
Link copied to clipboard
Link copied to clipboard
@Serializable
Link copied to clipboard
Link copied to clipboard
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getBalance(address: PayAddress, timeoutInMs: Int = requestTimeout): ElectrumClient.BalanceResult
Link copied to clipboard
fun getBchUtxo(hexTxHash: String, outIdx: Int, timeoutInMs: Int = requestTimeout): ElectrumClient.GetUtxoResult
Link copied to clipboard
fun getFirstUse(scriptHash: String, timeoutInMs: Int = requestTimeout): ElectrumClient.FirstUseResult
fun getFirstUse(script: SatoshiScript, timeoutInMs: Int = requestTimeout): ElectrumClient.FirstUseResult
fun getFirstUse(scriptHash: Hash256, timeoutInMs: Int = requestTimeout): ElectrumClient.FirstUseResult
Get confirmed and unconfirmed activity in a script
Link copied to clipboard
fun getHeadersFor(cs: ChainSelector, height: Int, count: Int, timeoutInMs: Int = requestTimeout): List<iBlockHeader>
Return serialized headers for the blocks beginning at the supplied height
Link copied to clipboard
Get confirmed and unconfirmed activity in a script
Link copied to clipboard
Get the current blockchain tip
Link copied to clipboard
fun getTokenBalance(address: String, timeoutInMs: Int = requestTimeout): ElectrumClient.TokenGetBalanceResult
fun getTokenBalance(address: PayAddress, timeoutInMs: Int = requestTimeout): ElectrumClient.TokenGetBalanceResult
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getTokenUnspent(address: String, tokenId: String? = null, cursor: String? = null, timeoutInMs: Int = requestTimeout): ElectrumClient.TokenListUnspentResult
Link copied to clipboard
Get a transaction by hash
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get spendable output for a pay destination you own.
Link copied to clipboard
Subscribe to blockchain headers. Issues a callback with the blockchain tip when a new block is found.
Link copied to clipboard
Unsubscribes from blockchain headers.