bitcoin

package
v0.0.0-...-594978b Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backend

func Backend() *backend

func Factory

Factory creates a new usable instance of this secrets engine.

func Fatal

func Fatal(err error, msgs ...string)

Fatal panics on error First parameter of msgs is used each following variadic arg is dropped

func GetCurrentFee

func GetCurrentFee() (float64, error)

GetCurrentFee gets the current fee in bitcoin

func GetCurrentFeeRate

func GetCurrentFeeRate() (*big.Int, error)

GetCurrentFeeRate gets the current fee in satoshis per kb

func Log

func Log(err error, msgs ...string)

Log logs an error + stack trace directly to console or file Use this at the top level to publish errors without creating a new error object

func Recover

func Recover(errs ...*error)

Recover recovers a panic introduced by Fatal, any other function which calls panics

or a memory corruption. Logs the error when called without args.

Must be used at the top of the function defered defer Recover() or defer Recover(&err)

Types

type Account

type Account struct {
	Address      string   `json:"address"`
	WIF          string   `json:"wif"`
	TxSpendLimit string   `json:"tx_spend_limit"`
	Whitelist    []string `json:"whitelist"`
	Blacklist    []string `json:"blacklist"`
}

Account is a Bitcoin account

Jump to

Keyboard shortcuts

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