btc

package
v0.0.0-...-a5eb945 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	Client      *rpc.Client
	ChainParams *chaincfg.Params
	Network     string
}

func Connect

func Connect(networkConfig network.Config) (Conn, error)

func ConnectWithParams

func ConnectWithParams(chain, url, user, password string) (Conn, error)

func (*Conn) FundRawTransaction

func (conn *Conn) FundRawTransaction(tx *wire.MsgTx) (fundedTx *wire.MsgTx, err error)

func (*Conn) FundTransaction

func (conn *Conn) FundTransaction(tx *wire.MsgTx, addresses []btcutil.Address) (fundedTx *wire.MsgTx, inputs []btcjson.RawTxInput, err error)

func (*Conn) PromptPublishTx

func (conn *Conn) PromptPublishTx(tx *wire.MsgTx, name string) (*chainhash.Hash, error)

func (*Conn) Shutdown

func (conn *Conn) Shutdown()

func (*Conn) SignTransaction

func (conn *Conn) SignTransaction(tx *wire.MsgTx) (*wire.MsgTx, bool, error)

TODO: Implement Sign Transaction logic here so that we do not have to import the privatekey onto the bitcoin node and people can submit signed transactions to arbitrary nodes.

func (*Conn) WaitForConfirmations

func (conn *Conn) WaitForConfirmations(txHash *chainhash.Hash, requiredConfirmations int64) error

Jump to

Keyboard shortcuts

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