Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UserCmd = &cobra.Command{ Use: "user", Short: "Access and manage a user's personal resources", Long: ``, Run: func(cmd *cobra.Command, args []string) { _ = cmd.Help() }, }
UserCmd represents the user command
Functions ¶
Types ¶
type SendArgs ¶
type SendArgs struct {
// Recipient is the receiving address
Recipient string
// Value is amount of coin to send
Value float64
// Nonce is the next nonce of the signing key's account
Nonce uint64
// Fee is the transaction fee to be paid by the signing key
Fee float64
// SigningKey is the account whose key will be used to sign the transaction.
SigningKey string
// AccountPass is the passphrase for unlocking the signing key.
SigningKeyPass string
// RPCClient is the RPC client
RPCClient types.Client
// KeyUnlocker is a function for getting and unlocking a push key from keystore.
KeyUnlocker common.UnlockKeyFunc
// GetNextNonce is a function for getting the next nonce of an account
GetNextNonce api.NextNonceGetter
// SendCoin is a function for sending coins
SendCoin api.CoinSender
// ShowTxStatusTracker is a function tracking and displaying tx status
ShowTxStatusTracker common.TxStatusTrackerFunc
Stdout io.Writer
}
SendArgs contains arguments for SendCmd.
Click to show internal directories.
Click to hide internal directories.