Package fr. acinq. lightning. blockchain. electrum
Types
Address Status
Link copied to clipboard
data class AddressStatus(address: String, status: String?) : ElectrumResponse
Content copied to clipboard
Ask For Header Subscription Update
Link copied to clipboard
Broadcast Transaction
Link copied to clipboard
Broadcast Transaction Response
Link copied to clipboard
data class BroadcastTransactionResponse(tx: Transaction, error: JsonRPCError?) : ElectrumResponse
Content copied to clipboard
Client State Update
Link copied to clipboard
Electrum Client
Link copied to clipboard
class ElectrumClient(socketBuilder: TcpSocket.Builder?, scope: CoroutineScope) : CoroutineScope
Content copied to clipboard
Electrum Message
Link copied to clipboard
sealed class ElectrumMessage
Content copied to clipboard
Common communication objects between ElectrumClient and external ressources (e.g. ElectrumWatcher) See the documentation for the ElectrumX protocol there: https://github.com/spesmilo/electrumx/
Electrum Request
Link copied to clipboard
sealed class ElectrumRequest
Content copied to clipboard
ElectrumClient requests / responses
Electrum Response
Link copied to clipboard
Electrum Response Deserializer
Link copied to clipboard
object ElectrumResponseDeserializer : KSerializer<Either<ElectrumResponse, JsonRPCResponse>>
Content copied to clipboard
ElectrumResponse deserializer
Electrum Subscription
Link copied to clipboard
Electrum Watcher
Link copied to clipboard
class ElectrumWatcher(client: ElectrumClient, scope: CoroutineScope) : CoroutineScope
Content copied to clipboard
Estimate Fee Response
Link copied to clipboard
data class EstimateFeeResponse(confirmations: Int, feerate: FeeratePerKw?) : ElectrumResponse
Content copied to clipboard
Estimate Fees
Link copied to clipboard
Get Header
Link copied to clipboard
Get Header Response
Link copied to clipboard
data class GetHeaderResponse(height: Int, header: BlockHeader) : ElectrumResponse
Content copied to clipboard
Get Headers
Link copied to clipboard
data class GetHeaders(start_height: Int, count: Int, cp_height: Int) : ElectrumRequest
Content copied to clipboard
Get Headers Response
Link copied to clipboard
data class GetHeadersResponse(start_height: Int, headers: List<BlockHeader>, max: Int) : ElectrumResponse
Content copied to clipboard
Get Merkle
Link copied to clipboard
data class GetMerkle(txid: ByteVector32, height: Int, contextOpt: Transaction?) : ElectrumRequest
Content copied to clipboard
Get Merkle Response
Link copied to clipboard
data class GetMerkleResponse(txid: ByteVector32, merkle: List<ByteVector32>, block_height: Int, pos: Int, contextOpt: Transaction?) : ElectrumResponse
Content copied to clipboard
Get Script Hash History
Link copied to clipboard
data class GetScriptHashHistory(scriptHash: ByteVector32) : ElectrumRequest
Content copied to clipboard
Get Script Hash History Response
Link copied to clipboard
data class GetScriptHashHistoryResponse(scriptHash: ByteVector32, history: List<TransactionHistoryItem>) : ElectrumResponse
Content copied to clipboard
Get Transaction
Link copied to clipboard
data class GetTransaction(txid: ByteVector32, contextOpt: Any?) : ElectrumRequest
Content copied to clipboard
Get Transaction Id From Position
Link copied to clipboard
data class GetTransactionIdFromPosition(height: Int, tx_pos: Int, merkle: Boolean) : ElectrumRequest
Content copied to clipboard
Get Transaction Id From Position Response
Link copied to clipboard
data class GetTransactionIdFromPositionResponse(txid: ByteVector32, height: Int, tx_pos: Int, merkle: List<ByteVector32>) : ElectrumResponse
Content copied to clipboard
Get Transaction Response
Link copied to clipboard
data class GetTransactionResponse(tx: Transaction, contextOpt: Any?) : ElectrumResponse
Content copied to clipboard
Get Tx With Meta Event
Link copied to clipboard
Header Subscription
Link copied to clipboard
Header Subscription Response
Link copied to clipboard
data class HeaderSubscriptionResponse(height: Int, header: BlockHeader) : ElectrumResponse
Content copied to clipboard
Json RPCResponse Deserializer
Link copied to clipboard
class JsonRPCResponseDeserializer(json: Json) : KSerializer<JsonRPCResponse>
Content copied to clipboard
Notify Event
Link copied to clipboard
sealed class NotifyEvent
Content copied to clipboard
Notify Tx Event
Link copied to clipboard
class NotifyTxEvent(channelId: ByteVector32, txWithMeta: GetTxWithMetaResponse) : NotifyEvent
Content copied to clipboard
Notify Up To Date Event
Link copied to clipboard
Notify Watch Event
Link copied to clipboard
Ping
Link copied to clipboard
Ping Response
Link copied to clipboard
Publish Asap Event
Link copied to clipboard
Received Message
Link copied to clipboard
Receive Watch
Link copied to clipboard
Receive Watch Event
Link copied to clipboard
Request Response Timestamp
Link copied to clipboard
data class RequestResponseTimestamp(id: Int, request: ElectrumRequest, lastResponseTimestamp: Long?)
Content copied to clipboard
Script Hash List Unspent
Link copied to clipboard
data class ScriptHashListUnspent(scriptHash: ByteVector32) : ElectrumRequest
Content copied to clipboard
Script Hash List Unspent Response
Link copied to clipboard
data class ScriptHashListUnspentResponse(scriptHash: ByteVector32, unspents: List<UnspentItem>) : ElectrumResponse
Content copied to clipboard
Script Hash Subscription
Link copied to clipboard
data class ScriptHashSubscription(scriptHash: ByteVector32) : ElectrumRequest
Content copied to clipboard
Script Hash Subscription Response
Link copied to clipboard
data class ScriptHashSubscriptionResponse(scriptHash: ByteVector32, status: String) : ElectrumResponse
Content copied to clipboard
Send Electrum Request
Link copied to clipboard
data class SendElectrumRequest(electrumRequest: ElectrumRequest) : ElectrumMessage
Content copied to clipboard
Server Error
Link copied to clipboard
data class ServerError(request: ElectrumRequest, error: JsonRPCError) : ElectrumResponse
Content copied to clipboard
Server Version
Link copied to clipboard
data class ServerVersion(clientName: String, protocolVersion: String) : ElectrumRequest
Content copied to clipboard
Server Version Response
Link copied to clipboard
data class ServerVersionResponse(clientName: String, protocolVersion: String) : ElectrumResponse
Content copied to clipboard
Transaction History
Link copied to clipboard
data class TransactionHistory(history: List<TransactionHistoryItem>) : ElectrumResponse
Content copied to clipboard
Other Electrum responses
Transaction History Item
Link copied to clipboard
Unspent Item
Link copied to clipboard
data class UnspentItem(tx_hash: ByteVector32, tx_pos: Int, value: Long, height: Long)
Content copied to clipboard
Watcher Event
Link copied to clipboard
sealed class WatcherEvent
Content copied to clipboard