hexbytes_to_hex_str# API documentation for tradeexecutor.utils.hex.hexbytes_to_hex_str Python function. hexbytes_to_hex_str(value)[source]# Convert bytes or HexBytes to a 0x-prefixed hex string. In web3.py 7.x, HexBytes.hex() no longer includes the 0x prefix. This function provides a consistent conversion. Parameters: value (bytes) – Return type: str