Documentation
¶
Index ¶
- func DecodeBase58(b string) []byte
- type Balance
- type ElectrumError
- type ElectrumRequest
- type ElectrumResponse
- type ElectrumServer
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBase58 ¶
Types ¶
type ElectrumError ¶
ElectrumError represents the structure of an error returned by the Electrum server.
type ElectrumRequest ¶
type ElectrumRequest struct {
ID int `json:"id"`
Method string `json:"method"`
Params []interface{} `json:"params"`
Jsonrpc string `json:"jsonrpc"`
}
ElectrumRequest represents the structure of an Electrum request.
type ElectrumResponse ¶
type ElectrumResponse struct {
ID int `json:"id"`
Result json.RawMessage `json:"result"`
Error *ElectrumError `json:"error,omitempty"`
}
ElectrumResponse represents the structure of an Electrum response.
type ElectrumServer ¶
func (*ElectrumServer) GetBalance ¶
func (s *ElectrumServer) GetBalance(address string) (int64, int64, error)
func (*ElectrumServer) GetTxHistory ¶
func (s *ElectrumServer) GetTxHistory(address string) ([]TxHistory, string, error)
func (*ElectrumServer) ListenForNotification ¶
func (s *ElectrumServer) ListenForNotification()
func (*ElectrumServer) SendPing ¶
func (s *ElectrumServer) SendPing() error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.