Documentation ¶
Index ¶
- func CheckAddressChecksum(address string) (bool, error)
- func Decode(bytesString string, types []string) ([]interface{}, error)
- func Encode(method string, paramsJSON string) (string, error)
- func EncodeTransfer(to string, value string) (string, error)
- func HexToNumber(hex string) string
- func HexToUtf8(hexString string) (string, error)
- func IsAddress(address string) (bool, error)
- func NumberToHex(numString string) string
- func Sha3(str string) string
- func ToChecksumAddress(address string) (string, error)
- func Utf8ToHex(str string) (string, error)
- func Utf8decode(str string) ([]byte, error)
- func Utf8encode(str string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAddressChecksum ¶ added in v0.111.5
implementation referenced from https://github.com/ChainSafe/web3.js/blob/edcd215bf657a4bba62fabaafd08e6e70040976e/packages/web3-utils/src/utils.js#L107
func Decode ¶
bytesString e.g. 0x000000000000000000000000000000000000000000000000000000005bc741cd00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000013b86dbf1a83c9e6a492914a0ee39e8a5b7eb60700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d533152484e4a57414b356e426f6f57454d34654d644268707a35666e325764557473457357754a4b79356147000000000000000000000000000000000000 types e.g. []string{"uint256","bytes","address","uint256","uint256"}
func HexToNumber ¶
func HexToUtf8 ¶ added in v0.111.5
implementation referenced from https://github.com/ChainSafe/web3.js/blob/edcd215bf657a4bba62fabaafd08e6e70040976e/packages/web3-utils/src/utils.js#L193
func IsAddress ¶ added in v0.111.5
implementation referenced from https://github.com/ChainSafe/web3.js/blob/edcd215bf657a4bba62fabaafd08e6e70040976e/packages/web3-utils/src/utils.js#L85
func NumberToHex ¶
func ToChecksumAddress ¶ added in v0.111.5
implementation referenced from https://github.com/ChainSafe/web3.js/blob/2022b17d52d31ce95559d18d5530d18c83eb4d1c/packages/web3-utils/src/index.js#L283
func Utf8ToHex ¶ added in v0.111.5
implementation referenced from https://github.com/ChainSafe/web3.js/blob/edcd215bf657a4bba62fabaafd08e6e70040976e/packages/web3-utils/src/utils.js#L165
func Utf8decode ¶ added in v0.111.5
implementation referenced from https://github.com/mathiasbynens/utf8.js/blob/2ce09544b62f2a274dbcd249473c0986e3660849/utf8.js
func Utf8encode ¶ added in v0.111.5
implementation referenced from https://github.com/mathiasbynens/utf8.js/blob/2ce09544b62f2a274dbcd249473c0986e3660849/utf8.js
Types ¶
This section is empty.