bch

package
v0.0.0-...-eb4c3ac Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BCH_DEFAULT_FEE, _ = new(big.Int).SetString("50000", 10)

Functions

func BCHInit

func BCHInit()

func CovertToCashAddress

func CovertToCashAddress(btcaddrAddress string) (cashAddress string)

Types

type BCHHandler

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

func NewBCHHandler

func NewBCHHandler() *BCHHandler

func (*BCHHandler) BuildUnsignedTransaction

func (h *BCHHandler) BuildUnsignedTransaction(fromAddress, fromPublicKey, toAddress string, amount *big.Int, jsonstring string) (transaction interface{}, digests []string, err error)

NOT completed, may or not work

func (*BCHHandler) GetAddressBalance

func (h *BCHHandler) GetAddressBalance(address string, jsonstring string) (balance types.Balance, err error)

TODO

func (*BCHHandler) GetDefaultFee

func (h *BCHHandler) GetDefaultFee() types.Value

func (*BCHHandler) GetTransactionInfo

func (h *BCHHandler) GetTransactionInfo(txhash string) (fromAddress string, txOutputs []types.TxOutput, jsonstring string, confirmed bool, fee types.Value, err error)

func (*BCHHandler) IsToken

func (h *BCHHandler) IsToken() bool

func (*BCHHandler) MakeSignedTransaction

func (h *BCHHandler) MakeSignedTransaction(rsv []string, transaction interface{}) (signedTransaction interface{}, err error)

NOT completed, may or not work

func (*BCHHandler) PublicKeyToAddress

func (h *BCHHandler) PublicKeyToAddress(pubKeyHex string) (address string, err error)

func (*BCHHandler) SignTransaction

func (h *BCHHandler) SignTransaction(hash []string, wif interface{}) (rsv []string, err error)

NOT completed, may or not work

func (*BCHHandler) SubmitTransaction

func (h *BCHHandler) SubmitTransaction(signedTransaction interface{}) (ret string, err error)

NOT completed, may or not work

Jump to

Keyboard shortcuts

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