bitcoin

package
v0.0.0-...-d0dd730 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	// contains filtered or unexported fields
}

Channel reprensents the connection to the eth blochain

func NewBitcoinChannel

func NewBitcoinChannel(DB *db.DB, cnf *config.Config) *Channel

NewBitcoinChannel connects the btc-client

func (*Channel) GeneratePaymentAddress

func (l *Channel) GeneratePaymentAddress() (Address string, Seed string, err error)

GeneratePaymentAddress generates a ethereum address and seed

func (*Channel) Name

func (l *Channel) Name() string

Name returns the name of the channel

func (*Channel) Start

func (l *Channel) Start() error

Start starts the bitcoin listener

func (*Channel) TransferAmount

func (l *Channel) TransferAmount(Order *m.UserOrder, inTx *m.IncomingTransaction, Amount *big.Int, fromAddress string, PaymentType string, BTCOutIndex int) error

TransferAmount transfers the given amount to the given address in the btc network also adds the transaction logs

Jump to

Keyboard shortcuts

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