Versions in this module Expand all Collapse all v0 v0.2.0 Apr 27, 2024 v0.1.0 Apr 27, 2024 Changes in this version + var ErrInvalidIndex = errors.New("the index is invalid") + var ErrInvalidMnemonic = errors.New("the mnemonic is invalid") + var ErrInvalidTransaction = errors.New("the transaction is invalid") + var ErrSendTransactionFailed = errors.New("send transaction failed") + var ErrTransactionNotFound = errors.New("the transaction is not found") + var ErrUnsupportedAddressType = errors.New("the address type is unsupported") + var ErrUnsupportedChain = errors.New("the chain is unsupported") + var ErrUnsupportedCurrency = errors.New("the 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 (AddressType 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