cmdhelp

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 11 Imported by: 1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL