Versions in this module Expand all Collapse all v0 v0.0.1 Dec 15, 2023 Changes in this version + func CalTxHash(rawTx string) string + func DecodeTx(rawTx string) (string, error) + func EcRecover(signature, message string, addPrefix bool) string + func GenerateMnemonic() (string, error) + func GenerateRawTransactionWithSignature(txType int, chainId, unsignedRawTx, r, s, v string) (string, error) + func GetDerivedPath(index int) string + func GetDerivedPrivateKey(mnemonic string, hdPath string) (string, error) + func GetEthereumMessagePrefix(message string) string + func GetNewAddress(prvHex string) string + func MessageHash(data string) string + func SignEip1559Transaction(chainId *big.Int, tx *types.Transaction, prvKey *ecdsa.PrivateKey) ([]byte, string, error) + func SignTransaction(txJson, prvHex string) (string, error) + func ValidAddress(address string) bool + type SignParams struct + ChainId string + Data string + GasLimit string + MaxFeePerGas string + MaxPriorityFeePerGas string + Nonce string + To string + Type int + Value string + type SignedTx struct + Hash string + Hex string