Const
The hexadecimal string to decode.
Encodes a string into a bytes32 hexadecimal expression with optional zero padding. The encoded bytes32 string can be used as a parameter for a smart contract function.
The value to encode.
Optional
zeroPadding: "left" | "right" = 'right'The type of zero padding to apply.
The encoded bytes32 string is a hexadecimal expression prefixed with `0x.
Decodes a hexadecimal string representing a bytes32 value into a string. The bytes32 string can be padded with zeros to the left or right. An example of usage is to decode a bytes32 string returned by a smart contract function.