Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "get_wallet_details" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Get wallet details.", Category: "wallet", Config: DefaultConfig(), Outputs: []types.TaskOutputDefinition{ { Name: "address", Type: "string", Description: "The wallet address.", }, { Name: "balance", Type: "string", Description: "The wallet balance in wei as a string.", }, { Name: "nonce", Type: "uint64", Description: "The current nonce of the wallet.", }, { Name: "summary", Type: "object", Description: "Summary object with wallet details.", }, }, NewTask: NewTask, } )
Functions ¶
func NewTask ¶
func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)
Types ¶
type Config ¶
type Config struct {
PrivateKey string `yaml:"privateKey" json:"privateKey" require:"A.1" desc:"Private key of the wallet to get details for."`
Address string `yaml:"address" json:"address" require:"A.2" desc:"Address of the wallet to get details for (alternative to privateKey)."`
}
func DefaultConfig ¶
func DefaultConfig() Config
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.