Versions in this module Expand all Collapse all v0 v0.1.0 Apr 29, 2024 Changes in this version + var ErrInvalidIndex = errors.New("index is invalid") + var ErrInvalidMnemonic = errors.New("mnemonic is invalid") + var ErrInvalidTransaction = errors.New("transaction is invalid") + var ErrSendTransactionFailed = errors.New("send transaction failed") + var ErrTransactionNotFound = errors.New("transaction is not found") + var ErrUnsupportedAddressType = errors.New("address type is unsupported") + var ErrUnsupportedChain = errors.New("chain is unsupported") + var ErrUnsupportedCurrency = errors.New("currency is unsupported") + type AddressType int8 + const AddressType_BSC + const AddressType_BTC_LEGACY + const AddressType_BTC_NATIVE_SEGWIT + const AddressType_BTC_NESTED_SEGWIT + const AddressType_BTC_TAPROOT + const AddressType_ETH + const AddressType_TRON + func ParseAddressType(AddressType string) (AddressType, error) + func (Self AddressType) ToString() (string, error) + type Chain int8 + const Chain_BSC + const Chain_BTC + const Chain_ETH + const Chain_TRON + func ParseChain(chain string) (Chain, error) + func (chian Chain) ToString() (string, error) + type Transaction struct + Chain Chain + Confirms uint64 + Currency string + From string + Hash string + Height uint64 + Result bool + TimeStamp uint64 + To string + Value float64 Other modules containing this package github.com/DwGoing/transfer_lib