Last updated
Last updated
caver.utils
provides utility functions.
The library to generate cryptographically strong pseudo-random HEX strings from a given byte size.
Parameters
Return Value
Example
Example
Parameters
Return Value
Example
Parameters
Return Value
Example
Parameters
Return Value
Example
Calculates the sha3 of the input.
Parameters
Return Value
Example
Calculates the sha3 of given input parameters in the same way solidity would. This means arguments will be ABI converted and tightly packed before being hashed.
Parameters
Return Value
Example
Checks if a given string is a HEX string.
Parameters
Return Value
Example
Parameters
Return Value
Example
Checks if a given string is a valid Klaytn address. 주소에 대문자와 소문자가 있으면 체크섬(checksum)도 검사합니다.
Parameters
Return Value
Examples
Converts an upper or lowercase Klaytn address to a checksum address.
Parameters
Return Value
Examples
Checks the checksum of a given address. Will also return false
on non-checksum addresses.
Parameters
Return Value
Examples
Converts any given value to HEX. 숫자 문자열은 숫자로 해석됩니다. Text strings will be interpreted as UTF-8 strings.
Parameters
Return Value
Examples
Parameters
Return Value
Examples
Returns the number representation of a given HEX value as a string.
Parameters
Return Value
Examples
Returns the number representation of a given HEX value.
Parameters
Return Value
Examples
Returns the HEX representation of a given number value.
Parameters
Return Value
Examples
Returns the UTF-8 string representation of a given HEX value.
Parameters
Return Value
Examples
Returns the ASCII string representation of a given HEX value.
Parameters
Return Value
Examples
Returns the HEX representation of a given UTF-8 string.
Parameters
Return Value
Examples
Returns the HEX representation of a given ASCII string.
Parameters
Return Value
Examples
Returns a byte array from the given HEX string.
Parameters
Return Value
Examples
Returns a HEX string from a byte array.
Parameters
Return Value