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 + func GetAddressFromPrivateKey(privateKey *ecdsa.PrivateKey) string + type Account struct + func NewAccountFromMnemonic(mnemonic string, password string, index int64) (*Account, error) + func NewAccountFromSeed(seed []byte, index int64) (*Account, error) + func (Self *Account) Chain() common.Chain + func (Self *Account) GetAddress() (string, error) + func (Self *Account) GetPrivateKey() (*secp256k1.PrivateKey, error) + type ChainClient struct + func NewChainClient(nodes map[string]int, apiKeys []string, currencies map[string]Currency) *ChainClient + func (Self *ChainClient) Chain() common.Chain + func (Self *ChainClient) GetBalance(address string, currency string, args any) (float64, error) + func (Self *ChainClient) GetCurrentHeight() (uint64, error) + func (Self *ChainClient) GetTransaction(txHash string) (*common.Transaction, error) + func (Self *ChainClient) Transfer(privateKey *ecdsa.PrivateKey, to string, currency string, value float64, ...) (string, error) + type Currency struct + Contract string + Decimals int + type GetBalanceParameter struct + type TransferParameter struct