verbs.utils.hex_to_bytes#

hex_to_bytes(hex: str) bytes[source]#

Convert a hex string to bytes

Parameters:

hex (str) – Hex string (with or without 0x prefix)

Returns:

bytes – Byte encoding of the hex string