package
1.1.1
Repository: https://github.com/setavenger/go-electrum.git
Documentation: pkg.go.dev

# Functions

AddressToElectrumScriptHash converts valid bitcoin address to electrum scriptHash sha256 encoded, reversed and encoded in hex https://electrumx.readthedocs.io/en/latest/protocol-basics.html#script-hashes.
NewClientSSL initialize a new client for remote server and connects to the remote server using SSL.
NewClientTCP initialize a new client for remote server and connects to the remote server using TCP.
NewSSLTransport opens a new SSL connection to the remote server.
NewTCPTransport opens a new TCP connection to the remote server.

# Constants

ClientVersion identifies the client version/name to the remote server.
ProtocolVersion identifies the support protocol version to the remote server.

# Variables

DebugMode provides debug output on communications with the remote server if enabled.
ErrCheckpointHeight is thrown if the checkpoint height is smaller than the block height.
ErrDeprecated throws an error if this RPC call is deprecated.
ErrNotImplemented throws an error if this RPC call has not been implemented yet.
ErrServerConnected throws an error if remote server is already connected.
ErrServerShutdown throws an error if remote server has shutdown.
ErrTimeout throws an error if request has timed out.

# Structs

Client stores information about the remote server.
GetBalanceResp represents the response to GetBalance().
GetBalanceResult represents the content of the result field in the response to GetBalance().
GetBlockHeaderResp represents the response to GetBlockHeader().
GetBlockHeaderResult represents the content of the result field in the response to GetBlockHeader().
GetBlockHeadersResp represents the response to GetBlockHeaders().
GetBlockHeadersResult represents the content of the result field in the response to GetBlockHeaders().
GetFeeResp represents the response to GetFee().
GetMempoolResp represents the response to GetHistory() and GetMempool().
GetMempoolResult represents the content of the result field in the response to GetHistory() and GetMempool().
GetMerkleProofFromPosResp represents the response to GetMerkleProofFromPosition().
GetMerkleProofFromPosResult represents the content of the result field in the response to GetMerkleProofFromPosition().
GetMerkleProofResp represents the response to GetMerkleProof().
GetMerkleProofResult represents the content of the result field in the response to GetMerkleProof().
GetTransactionResp represents the response to GetTransaction().
GetTransactionResult represents the content of the result field in the response to GetTransaction().
ListUnspentResp represents the response to ListUnspent().
ListUnspentResult represents the content of the result field in the response to ListUnspent().
ScripthashSubscription ...
ScriptPubkey represents the script of that transaction output.
ScriptSig represents the signature script for that transaction input.
ServerFeaturesResp represent the response to GetFeatures().
ServerFeaturesResult represent the data sent or receive in RPC call "server.features" and "server.add_peer".
ServerVersionResp represent the response to ServerVersion().
SubscribeHeadersNotif represent the notification to SubscribeHeaders().
SubscribeHeadersResp represent the response to SubscribeHeaders().
SubscribeHeadersResult represents the content of the result field in the response to SubscribeHeaders().
SubscribeNotif represent the notification to SubscribeScripthash() and SubscribeMasternode().
TCPTransport store information about the TCP transport.
Vin represents the input side of a transaction.
Vout represents the output side of a transaction.

# Interfaces

Transport provides interface to server transport.