package
0.0.8
Repository: https://github.com/guanzhenxing/go-ether-kit.git
Documentation: pkg.go.dev

# Functions

BuildContractInputData 构建合约的input data.
BuildPrivateKeyFromHex 从字符串私钥构建私钥对象.
BuildPrivateKeyFromMnemonic 从助记词获得私钥.
DecodeRawTxHex 解析rawTx.
GeneratePrivateKey 创建私钥.
GetABI 从abi字符串中获得ABI对象.
GetContractMethodId 获得合约的methodId 参数method,如:transfer(address,uint256).
GetEventTopic 获得事件的topic。event字符串如:transfer(address,uint256).
GetHexPrivateKey 创建十六进制的私钥(不以0x开头).
GetHexPublicKey 从私钥中获得十六进制的公钥(不以0x和04开头).
GetMaxUint256 获得合约中MaxUint256.
IsValidAddress 验证是否是十六进制地址.
No description provided by the author
No description provided by the author
NewSigner 创建一个默认的账号信息.
NewSignerFromHexPrivateKey 使用私钥创建一个账号信息.
NewSignerFromMnemonic 使用助记词创建一个账号信息.
NewSignerFromMnemonicAndAccountId 使用助记词创建一个账号信息.
NewSignerFromPrivateKey 使用私钥创建一个账号信息.
NewSignerFromRawPrivateKey 使用私钥创建一个账号信息.
NewTx 新建一个tx.
NewTxWithHexData 基于hexData构建一个Tx.
NewWallet 新建一个Wallet.
NewWallet1 新建Wallet.
PrivateKeyToAddress 从私钥中获得地址.
PublicKeyBytesToAddress 公钥到地址.
ToDecimal wei to decimals.
ToWei decimals to wei.
VerifySignature 验证签名 address: 用于签名的地址 digestHash: 用于验证的原始数据 signature: 需要进行验证的签名数据.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

EtherProvider 需要通过链上查询的,但是不需要账户的.
EtherSigner ETH账户.
EtherWallet 钱包信息.