Documentation ¶
Index ¶
- Variables
- type BNBHandler
- func (h *BNBHandler) BNB_buildSendTx(fromAddress, fromPublicKey, toAddress string, amount *big.Int) (transaction BNBTx, hexMsg []byte, err error)
- func (h *BNBHandler) BuildUnsignedTransaction(fromAddress, fromPublicKey, toAddress string, amount *big.Int, ...) (transaction interface{}, digests []string, err error)
- func (h *BNBHandler) GetAddressBalance(address string, jsonstring string) (balance types.Balance, err error)
- func (h *BNBHandler) GetDefaultFee() (fee types.Value)
- func (h *BNBHandler) GetSymbol() string
- func (h *BNBHandler) GetTransactionInfo(txhash string) (fromAddress string, txOutputs []types.TxOutput, jsonstring string, ...)
- func (h *BNBHandler) IsToken() bool
- func (h *BNBHandler) MakeSignedTransaction(rsv []string, transaction interface{}) (signedTransaction interface{}, err error)
- func (h *BNBHandler) PublicKeyToAddress(pubKeyHex string) (address string, err error)
- func (h *BNBHandler) SignTransaction(hexTx []byte, privateKey interface{}) (rsv []string, err error)
- func (h *BNBHandler) SubmitTransaction(signedTransaction interface{}) (txhash string, err error)
- type BNBTx
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 (*BNBHandler) BuildUnsignedTransaction ¶
func (*BNBHandler) GetAddressBalance ¶
func (*BNBHandler) GetDefaultFee ¶
func (h *BNBHandler) GetDefaultFee() (fee types.Value)
func (*BNBHandler) GetSymbol ¶
func (h *BNBHandler) GetSymbol() string
func (*BNBHandler) GetTransactionInfo ¶
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 }
Click to show internal directories.
Click to hide internal directories.