account

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ValueCfx is the string representation of value in CFX.
	ValueCfx string

	// DefaultAccountManager is the default account manager under keystore folder.
	DefaultAccountManager *sdk.AccountManager = am
)
View Source
var ErrInvalidSig = errors.New("invalid transaction v, r, s values")

Functions

func AddAccountVar

func AddAccountVar(cmd *cobra.Command)

AddAccountVar adds account variable for specified command.

func AddFromVar added in v1.0.2

func AddFromVar(cmd *cobra.Command)

func AddGasPriceVar

func AddGasPriceVar(cmd *cobra.Command)

AddGasPriceVar addds price variable for specified command.

func CfxToEthTx added in v1.0.4

func EthToCfxTx added in v1.0.4

func EthToCfxTx(etx *types.Transaction, chainID uint32) *cfxtypes.UnsignedTransaction

func MustGetAccount added in v1.0.4

func MustGetAccount(ks *keystore.KeyStore, addr common.Address) accounts.Account

func MustInputPassword

func MustInputPassword(prompt string) string

MustInputPassword prompt user to input password.

func MustParseAccount

func MustParseAccount() *types.Address

MustParseAccount parse account from input parameter.

func MustParsePrice

func MustParsePrice() *big.Int

MustParsePrice parse gas price from input parameter.

func MustParseValue

func MustParseValue() *big.Int

MustParseValue parse value in CFX from input parameter.

func SetParent

func SetParent(parent *cobra.Command)

SetParent sets parent command

func SignEthLegacyTx added in v1.0.4

func SignEthLegacyTx(ks *keystore.KeyStore, from common.Address, tx *types.Transaction, chainID *big.Int) *types.Transaction

func SignEthLegacyTxWithPasswd added in v1.0.4

func SignEthLegacyTxWithPasswd(ks *keystore.KeyStore, from common.Address, tx *types.Transaction, chainID *big.Int, passwd string) *types.Transaction

Types

This section is empty.

Jump to

Keyboard shortcuts

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