Documentation
¶
Index ¶
Constants ¶
View Source
const WalletArgsString = "[--password=pass] [--gasprice==FloatInGwei]"
Variables ¶
This section is empty.
Functions ¶
func GetKeystore ¶
func GetKeystore( validatorFolder string, args WalletFlags, flags *flag.FlagSet, chainId *big.Int, ) (*bind.TransactOpts, error)
GetKeystore returns a transaction authorization based on an existing ethereum keystore located in validatorFolder/wallets or creates one if it does not exist. It accepts a password using the "password" command line argument or via an interactive prompt. It also sets the gas price of the auth via an optional "gasprice" arguement.
Types ¶
type WalletFlags ¶
type WalletFlags struct {
// contains filtered or unexported fields
}
func AddWalletFlags ¶
func AddWalletFlags(fs *flag.FlagSet) WalletFlags
Click to show internal directories.
Click to hide internal directories.