1

As of v5 of the Web3.py library, you would do: from web3 import Web3, EthereumTesterProvider w3 = Web3(EthereumTesterProvider()) print(w3.toInt(w3.solidityKeccak(['uint256', 'uint256', 'uint256'], [1, 2, 3]))) 49776295142305522338649292811956300178326541500117443588869412604416814650524 There's also this: print(w3.toInt(w3.keccak( b'\x00'*31 + b'\x01' ...


Only top voted, non community-wiki answers of a minimum length are eligible