Documentation ¶
Index ¶
- Variables
- type AccountApi
- func (accountapi *AccountApi) AddressList() ([]*crypto.CommonAddress, error)
- func (accountapi *AccountApi) Close()
- func (accountapi *AccountApi) CreateAccount() (*crypto.CommonAddress, error)
- func (accountapi *AccountApi) DumpPrikey(address *crypto.CommonAddress) (*secp256k1.PrivateKey, error)
- func (accountapi *AccountApi) Lock() error
- func (accountapi *AccountApi) Open(password string) error
- func (accountapi *AccountApi) UnLock(password string) error
- type AccountService
- func (accountService *AccountService) Api() []app.API
- func (accountService *AccountService) Flags() []cli.Flag
- func (accountService *AccountService) Init(executeContext *app.ExecuteContext) error
- func (accountService *AccountService) Name() string
- func (accountService *AccountService) Start(executeContext *app.ExecuteContext) error
- func (accountService *AccountService) Stop(executeContext *app.ExecuteContext) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
KeyStoreDirFlag = common.DirectoryFlag{
Name: "keystore",
Usage: "Directory for the keystore (default = inside the homedir)",
}
)
Functions ¶
This section is empty.
Types ¶
type AccountApi ¶
type AccountApi struct {
Wallet *accountCommponent.Wallet
}
func (*AccountApi) AddressList ¶
func (accountapi *AccountApi) AddressList() ([]*crypto.CommonAddress, error)
func (*AccountApi) Close ¶
func (accountapi *AccountApi) Close()
func (*AccountApi) CreateAccount ¶
func (accountapi *AccountApi) CreateAccount() (*crypto.CommonAddress, error)
CreateAccount create a new account and return address
func (*AccountApi) DumpPrikey ¶
func (accountapi *AccountApi) DumpPrikey(address *crypto.CommonAddress) (*secp256k1.PrivateKey, error)
DumpPrikey dumpPrivate
func (*AccountApi) Lock ¶
func (accountapi *AccountApi) Lock() error
Lock lock the wallet to protect private key
func (*AccountApi) Open ¶
func (accountapi *AccountApi) Open(password string) error
func (*AccountApi) UnLock ¶
func (accountapi *AccountApi) UnLock(password string) error
UnLock unlock the wallet
type AccountService ¶
type AccountService struct {
// contains filtered or unexported fields
}
CliService provides an interactive command line window
func (*AccountService) Flags ¶
func (accountService *AccountService) Flags() []cli.Flag
Flags flags enable load js and execute before run
func (*AccountService) Init ¶
func (accountService *AccountService) Init(executeContext *app.ExecuteContext) error
Init set console config
func (*AccountService) Start ¶
func (accountService *AccountService) Start(executeContext *app.ExecuteContext) error
func (*AccountService) Stop ¶
func (accountService *AccountService) Stop(executeContext *app.ExecuteContext) error
Click to show internal directories.
Click to hide internal directories.