hex_to_bytes
Convert a hex string to raw bytes
Signature
def hex_to_bytes(hex_string: str) -> bytesParameters
Parameter
Type
Required
Description
Returns
Type
Description
Example
from seismic_web3 import hex_to_bytes
data = hex_to_bytes("0xdeadbeef") # b'\xde\xad\xbe\xef'
data = hex_to_bytes("deadbeef") # same resultNotes
See Also
Last updated

