Versions in this module Expand all Collapse all v1 v1.0.1 Jun 15, 2022 Changes in this version + func CreateNewLocalAccount(candidate *Creation) error + func ExportKeystore(address, path, passphrase string) (string, error) + func ExportPrivateKey(address, passphrase string) error + func ImportFromPrivateKey(privateKey, name, passphrase string) (string, error) + func ImportKeyStore(keyPath, name, passphrase string) (string, error) + func IsValidPassphrase(pass string) bool + func New() string + func RemoveAccount(name string) error + type Account struct + Address string + Allowance int64 + Assets map[string]int64 + BWTotal int64 + BWUsed int64 + Balance int64 + EnergyTotal int64 + EnergyUsed int64 + FrozenBalance int64 + FrozenResources []FrozenResource + ID string + IsElected bool + IsWitness bool + LastWithdraw int64 + Name string + TronPower int64 + TronPowerUsed int64 + Type string + Votes map[string]int64 + type Creation struct + HdAccountNumber *uint32 + HdIndexNumber *uint32 + Mnemonic string + MnemonicPassphrase string + Name string + Passphrase string + type FrozenResource struct + Amount int64 + DelegateTo string + Expire int64 + Type core.ResourceCode