Electrum
Electrum protocol client
Install / Use
/learn @fairbank-io/ElectrumREADME
Electrum Client
Provides a pure Go electrum protocol client implementation.
Features include:
- Simple to use
- Subscriptions are managed via channels and context
- Full TCP and TSL support
- Safe for concurrent execution
Example
// Start a new client instance
client, _ := electrum.New(&electrum.Options{
Address: "node.xbt.eu:50002",
KeepAlive: true,
})
// Execute synchronous operation
version, _ := client.ServerVersion()
// Start a subscription, will terminate automatically after 30 seconds
ctx, cancel := context.WithTimeout(context.Background(), 30 * time.Second)
defer cancel()
headers, _ := client.NotifyBlockHeaders(ctx)
for header := range headers {
// Use header
}
// Finish client execution
client.Close()
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
