bnb

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Network string = "testnet"
View Source
var Sep string = "_"

Functions

This section is empty.

Types

type BNBHandler

type BNBHandler struct {
	Symbol string
}

func NewBEP2Handler

func NewBEP2Handler(symbol string) *BNBHandler

func NewBNBHandler

func NewBNBHandler() *BNBHandler

func (*BNBHandler) BNB_buildSendTx

func (h *BNBHandler) BNB_buildSendTx(fromAddress, fromPublicKey, toAddress string, amount *big.Int) (transaction BNBTx, hexMsg []byte, err error)

func (*BNBHandler) BuildUnsignedTransaction

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

func (*BNBHandler) GetAddressBalance

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

func (*BNBHandler) GetDefaultFee

func (h *BNBHandler) GetDefaultFee() (fee types.Value)

func (*BNBHandler) GetSymbol

func (h *BNBHandler) GetSymbol() string

func (*BNBHandler) GetTransactionInfo

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

func (*BNBHandler) IsToken

func (h *BNBHandler) IsToken() bool

func (*BNBHandler) MakeSignedTransaction

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

func (*BNBHandler) PublicKeyToAddress

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

func (*BNBHandler) SignTransaction

func (h *BNBHandler) SignTransaction(hexTx []byte, privateKey interface{}) (rsv []string, err error)

func (*BNBHandler) SubmitTransaction

func (h *BNBHandler) SubmitTransaction(signedTransaction interface{}) (txhash string, err error)

type BNBTx

type BNBTx struct {
	SignMsg tx.StdSignMsg
	Pubkey  string
}

Jump to

Keyboard shortcuts

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