cryptocore

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: BSD-3-Clause Imports: 11 Imported by: 1

README

cryptocore

cryptocurrency wallet clients

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoBlock = errors.New("no block")
View Source
var ErrNonFinal = errors.New("non final")

Functions

This section is empty.

Types

type BlockFunc

type BlockFunc = func() (block.Block, error)

type BlockGenerator

type BlockGenerator interface {
	CanGenerateBlocksToAddress() bool
	GenerateBlocksToAddress(nBlocks int, addr string) ([]types.Bytes, error)
	CanGenerateBlocks() bool
	GenerateBlocks(nBlocks int) ([]types.Bytes, error)
}

type Client

type Client interface {
	NewAddress() (string, error)
	SendToAddress(addr string, value types.Amount) (types.Bytes, error)
	Balance(minConf int64) (types.Amount, error)
	BlockCount() (uint64, error)
	BlockHash(height uint64) (types.Bytes, error)
	RawBlock(hash types.Bytes) (types.Bytes, error)
	Block(hash types.Bytes) (block.Block, error)
	SendRawTransaction(tx types.Bytes) (types.Bytes, error)
	RawTransaction(hash types.Bytes) (types.Bytes, error)
	Transaction(hash types.Bytes) (tx.Tx, error)
	ReceivedByAddress(minConf, includeEmpty, includeWatchOnly interface{}) ([]*types.AddressFunds, error)

	BlockGenerator
	// contains filtered or unexported methods
}

func NewClientBCH

func NewClientBCH(addr, user, pass string, tlsConf *TLSConfig) Client

func NewClientBTC

func NewClientBTC(addr, user, pass string, tlsConf *TLSConfig) Client

func NewClientDCR

func NewClientDCR(addr, user, pass string, tlsConf *TLSConfig) Client

func NewClientDOGE

func NewClientDOGE(addr, user, pass string, tlsConf *TLSConfig) Client

func NewClientLTC

func NewClientLTC(addr, user, pass string, tlsConf *TLSConfig) Client

type ClientError

type ClientError struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

func (*ClientError) Error

func (we *ClientError) Error() string

type CloseFunc

type CloseFunc = func()

type TLSConfig

type TLSConfig struct {
	ClientCertificate string
	ClientKey         string
	CA                string
	SkipVerify        bool
}

type TransactionFunc

type TransactionFunc = func() (tx.Tx, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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