stringToHex()
Convert a string to hex string
Method signature
function stringToHex(str)
Parameters
Name
Type
Description
str
string
Any string to convert to hex format
Example
var str = "Hello, World!";
var hexString = CircularProtocolAPI.stringToHex(str);
Result
The result will be an object of type String:
48656c6c6f2c20576f726c6421
Last updated