Documentation ¶
Index ¶
- Variables
- func DerivePrivateKey(mnemonic, hdPath, password string) (*ecdsa.PrivateKey, error)
- func GetConfiguredPrivateKey(mnemonic, hdPath, privKeyStr, password string) (*ecdsa.PrivateKey, error)
- func NewHSMTransactOpts(ctx context.Context, hsmAPIName string, hsmAddress string, chainID *big.Int, ...) (*bind.TransactOpts, error)
- func ParseAddress(address string) (common.Address, error)
- func ParsePrivateKeyStr(privKeyStr string) (*ecdsa.PrivateKey, error)
- func ParseWalletPrivKeyAndContractAddr(name string, mnemonic string, hdPath string, privKeyStr string, ...) (*ecdsa.PrivateKey, common.Address, error)
- func PrivateKeySignerFn(key *ecdsa.PrivateKey, chainID *big.Int) bind.SignerFn
- func WeiToEth64(wei *big.Int) float64
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultTimeout = 15 * time.Second ErrMaxPriorityFeePerGasNotFound = errors.New( "Method eth_maxPriorityFeePerGas not found", ) FallbackGasTipCap = big.NewInt(1500000000) )
View Source
var (
ErrCannotGetPrivateKey = errors.New("invalid combination of private key or mnemonic + hdpath")
)
Functions ¶
func DerivePrivateKey ¶
func DerivePrivateKey(mnemonic, hdPath, password string) (*ecdsa.PrivateKey, error)
func GetConfiguredPrivateKey ¶
func GetConfiguredPrivateKey(mnemonic, hdPath, privKeyStr, password string) (*ecdsa.PrivateKey, error)
func NewHSMTransactOpts ¶
func ParsePrivateKeyStr ¶
func ParsePrivateKeyStr(privKeyStr string) (*ecdsa.PrivateKey, error)
func PrivateKeySignerFn ¶
func WeiToEth64 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.