Documentation ¶
Index ¶
- Variables
- func BCHInit()
- func CovertToCashAddress(btcaddrAddress string) (cashAddress string)
- type BCHHandler
- func (h *BCHHandler) BuildUnsignedTransaction(fromAddress, fromPublicKey, toAddress string, amount *big.Int, ...) (transaction interface{}, digests []string, err error)
- func (h *BCHHandler) GetAddressBalance(address string, jsonstring string) (balance types.Balance, err error)
- func (h *BCHHandler) GetDefaultFee() types.Value
- func (h *BCHHandler) GetTransactionInfo(txhash string) (fromAddress string, txOutputs []types.TxOutput, jsonstring string, ...)
- func (h *BCHHandler) IsToken() bool
- func (h *BCHHandler) MakeSignedTransaction(rsv []string, transaction interface{}) (signedTransaction interface{}, err error)
- func (h *BCHHandler) PublicKeyToAddress(pubKeyHex string) (address string, err error)
- func (h *BCHHandler) SignTransaction(hash []string, wif interface{}) (rsv []string, err error)
- func (h *BCHHandler) SubmitTransaction(signedTransaction interface{}) (ret string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var BCH_DEFAULT_FEE, _ = new(big.Int).SetString("50000", 10)
Functions ¶
func CovertToCashAddress ¶
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 (*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
Click to show internal directories.
Click to hide internal directories.