walletclient

package module
v0.0.0-...-0df4424 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2024 License: ISC Imports: 2 Imported by: 0

README

btcwallet-client

BtcWallet Client

Documentation

Index

Constants

View Source
const (
	BASE_DIR        = "~/Library/Application Support/"
	DIR             = "btcwalletclient"
	SERVER_RPC_CERT = "rpc.cert"
	RPCUSER         = "na-dev"
	RPCPASS         = "password123"
	SERVER_URI      = "127.0.0.1:5000"
	FALLBACK_HOST   = "127.0.0.1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Directory        string
	ServerRpcCert    string
	ServerUri        string
	PublicPassphrase []byte
	RpcUser          string
	RpcPass          string
	WsEndpoint       string
	// params refers to the bitcoin network i.e. testnet, mainnet, etc.
	Params     string
	DisableTLS bool
	// bytes for pem encoded cert chain used for the tls connection. No effect if the DisableTLS param is true.
	Certificates []byte
	// DisableAutoReconnect specifies the client should not automatically reconnect to the server if the connection is lost.
	DisableAutoReconnect bool
	// DisableConnectOnNew specifies the client should not automatically connect to the server when a new client is created.
	DisableConnectOnNew bool
	// HTTPPostMode instructs the client to run using multiple independent connections issuing HTTP POST requests instead of using the default
	// of websockets.
	HTTPPostMode bool
}

config struct

func NewConfig

func NewConfig(dir string, serverRpcCert string, serverUri string) *Config

func (*Config) GetAuth

func (config *Config) GetAuth() (username string, passphrase string, err error)

return values that are required for JSON-RPC Authentication

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL