Documentation
¶
Index ¶
- func Assert(condition bool, quiet bool, msg string)
- func Check(condition bool, quiet bool, msg string)
- func DefaultDataDir() string
- func Err(quiet bool, msg string)
- func ErrAssert(condition bool, err error, quiet bool, msg string)
- func ErrCheck(err error, quiet bool, msg string)
- func ObtainAccount(wallet *accounts.Wallet, address *common.Address, passphrase string) (*accounts.Account, error)
- func ObtainWallet(chainID *big.Int, address common.Address, debug bool) (accounts.Wallet, error)
- func ObtainWalletAndAccount(chainID *big.Int, address common.Address, debug bool) (accounts.Wallet, *accounts.Account, error)
- func ObtainWallets(chainID *big.Int, debug bool) ([]accounts.Wallet, error)
- func VerifyPassphrase(wallet accounts.Wallet, account accounts.Account, passphrase string) bool
- func Warn(quiet bool, msg string)
- func WarnCheck(err error, quiet bool, msg string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDataDir ¶
func DefaultDataDir() string
DefaultDataDir is the default data directory to use for the databases and other persistence requirements.
func ObtainAccount ¶
func ObtainAccount(wallet *accounts.Wallet, address *common.Address, passphrase string) (*accounts.Account, error)
ObtainAccount fetches the account for a given address.
func ObtainWallet ¶
ObtainWallet fetches the wallet for a given address.
func ObtainWalletAndAccount ¶
func ObtainWalletAndAccount(chainID *big.Int, address common.Address, debug bool) (accounts.Wallet, *accounts.Account, error)
ObtainWalletAndAccount obtains the wallet and account for an address.
func ObtainWallets ¶
ObtainWallets obtains all known wallets for a given chain.
func VerifyPassphrase ¶
VerifyPassphrase confirms that a passphrase is correct for an account.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.