Versions in this module Expand all Collapse all v0 v0.2.0 Feb 22, 2025 Changes in this version + func AddressToScriptHash(address string) (string, error) + type ElectrumClient struct + Conn net.Conn + Network string + func NewElectrumClient(address, network string) (*ElectrumClient, error) + func (s *ElectrumClient) GetBalance(address string) (int64, int64, error) + func (s *ElectrumClient) GetTx(txid string, verbose bool) (*Tx, error) + func (s *ElectrumClient) GetTxHistory(address string) ([]TxHistory, string, error) + func (s *ElectrumClient) ListenForNotification() + func (s *ElectrumClient) SendPing() error + func (s *ElectrumClient) Subscribe(address string) (string, string, error) v0.1.3 Jun 12, 2024 Changes in this version type ElectrumServer + func (s *ElectrumServer) GetTx(txid string, verbose bool) (*Tx, error) + type ScriptPubKey struct + Address string + Addresses []string + Asm string + Desc string + Hex string + ReqSigs int + Type string + type ScriptSig struct + Asm string + Hex string + type Tx struct + BlockHash string + BlockTime int + Confirmations int + Hash string + Hex string + Locktime int + Size int + Time int + Txid string + Version int + Vin []Vin + Vout []Vout + Vsize int + Weight int + type Vin struct + ScriptSig ScriptSig + Sequence uint32 + Txid string + Txinwitness []string + Vout int + type Vout struct + N int + ScriptPubKey ScriptPubKey + Value float64 v0.1.2 Jun 8, 2024 Changes in this version + func DecodeBase58(b string) []byte + type Balance struct + Confirmed int64 + Unconfirmed int64 + type ElectrumError struct + Code int + Message string + type ElectrumRequest struct + ID int + Jsonrpc string + Method string + Params []interface{} + type ElectrumResponse struct + Error *ElectrumError + ID int + Result json.RawMessage + type ElectrumServer struct + Conn net.Conn + Network string + func (s *ElectrumServer) GetBalance(address string) (int64, int64, error) + func (s *ElectrumServer) GetTxHistory(address string) ([]TxHistory, string, error) + func (s *ElectrumServer) ListenForNotification() + func (s *ElectrumServer) SendPing() error + func (s *ElectrumServer) Subscribe(address string) (string, string, error) + type TxHistory struct + Height int + TxHash string