ElectrumClient

class ElectrumClient(socketBuilder: TcpSocket.Builder?, scope: CoroutineScope) : CoroutineScope

Types

Companion
Link copied to clipboard
common
object Companion

Functions

connect
Link copied to clipboard
common
fun connect(serverAddress: ServerAddress)
disconnect
Link copied to clipboard
common
fun disconnect()
openNotificationsSubscription
Link copied to clipboard
common
fun openNotificationsSubscription(): ReceiveChannel<ElectrumMessage>
requestResponseTimestamps
Link copied to clipboard
common
fun requestResponseTimestamps(): List<RequestResponseTimestamp>?

Returns a list of requests, and when the most recent corresponding response was received.

sendElectrumRequest
Link copied to clipboard
common
fun sendElectrumRequest(request: ElectrumRequest)
sendMessage
Link copied to clipboard
common
fun sendMessage(message: ElectrumMessage)
stop
Link copied to clipboard
common
fun stop()

Properties

connectionState
Link copied to clipboard
common
val connectionState: StateFlow<Connection>
coroutineContext
Link copied to clipboard
common
open override val coroutineContext: CoroutineContext
socketBuilder
Link copied to clipboard
common
var socketBuilder: TcpSocket.Builder?