package
0.0.0-20220716165939-4a17716cd27b
Repository: https://github.com/pranav292gpt/zecutil.git
Documentation: pkg.go.dev
# Functions
DefaultClientOptions returns ClientOptions with the default settings.
NewAddressDecoder constructs a new AddressDecoder with the chain specific configurations.
NewAddressEncodeDecoder constructs a new AddressEncodeDecoder with the chain specific configurations.
NewAddressEncoder constructs a new AddressEncoder with the chain specific configurations.
NewClient returns a new Client.
NewGasEstimator returns a simple gas estimator that always returns the given number of SATs-per-byte.
NewTxBuilder returns a transaction builder that builds UTXO-compatible Bitcoin transactions for the given chain configuration (this means that it can be used for regnet, testnet, and mainnet, but also for networks that are minimally modified forks of the Bitcoin network).
# Constants
DefaultClientHost used by the Client.
DefaultClientPassword used by the Client.
DefaultClientTimeout used by the Client.
DefaultClientTimeoutRetry used by the Client.
DefaultClientUser used by the Client.
Version of Bitcoin transactions supported by the multichain.
# Structs
AddressDecoder encapsulates the chain specific configurations and implements the address.Decoder interface.
AddressEncodeDecoder implements the address.EncodeDecoder interface.
AddressEncoder encapsulates the chain specific configurations and implements the address.Encoder interface.
ClientOptions are used to parameterise the behaviour of the Client.
A GasEstimator returns the SATs-per-byte that is needed in order to confirm transactions with an estimated maximum delay of one block.
Tx represents a simple Bitcoin transaction that implements the Bitcoin Compat API.
The TxBuilder is an implementation of a UTXO-compatible transaction builder for Bitcoin.
# Interfaces
A Client interacts with an instance of the Bitcoin network using the RPC interface exposed by a Bitcoin node.