Documentation ¶
Overview ¶
Package account provides functionality for managing Tron network accounts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalAccount ¶
type LocalAccount struct {
// contains filtered or unexported fields
}
LocalAccount is a private key address pair. TODO(271): Add more functionality to this.
func FromPrivateKeyHex ¶
func FromPrivateKeyHex(hex string) (*LocalAccount, error)
FromPrivateKeyHex derives an account from a hexadecimal private key string.
func NewLocalAccount ¶
func NewLocalAccount() *LocalAccount
func (*LocalAccount) Address ¶
func (a *LocalAccount) Address() address.Address
Address returns the address of the account.
func (*LocalAccount) PrivateKey ¶
func (a *LocalAccount) PrivateKey() string
func (*LocalAccount) Sign ¶
func (a *LocalAccount) Sign(signable tron.Signable) error
Sign signs a signable object with the account's private key.
Click to show internal directories.
Click to hide internal directories.