Versions in this module Expand all Collapse all v1 v1.0.0 Jul 14, 2023 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 + FrozenBalanceV2 int64 + FrozenResources []FrozenResource + FrozenResourcesV2 []FrozenResource + ID string + IsElected bool + IsWitness bool + LastWithdraw int64 + MaxCanDelegateBandwidth int64 + MaxCanDelegateEnergy int64 + Name string + Rewards int64 + TronPower int64 + TronPowerUsed int64 + Type string + UnfreezeLeft int64 + UnfrozenResource []UnfrozenResource + Votes map[string]int64 + WithdrawableBalance 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 + type UnfrozenResource struct + Amount int64 + Expire int64 + Type core.ResourceCode