kclowes on master
Add eth_feeHistory RPC endpoint… (compare)
var hash = "0x" + abi.soliditySHA3( ["address", "uint256"], ["0x516510e3B61F3D425Fe5F52D7492E8950C8647D7", 500] ).toString("hex"); var signature = web3.eth.accounts.sign( hash , privateKey );
I was able to solve my issue by using nodejs .. using this code the signature.messagehash == solidity message hash.. But I wanted to write the Api in python only.. Why can't i solve it with python??
admin(), which triggers a validation error in web3.py. I can't think of a good reason for there to be such duplicates in the ABI intentionally, it just looks broken. Maybe you could publish one that doesn't have duplicates? https://compound.finance/docs/abi/mainnet/Comptroller
LATEST_BLOCK = 10226095 STEP_SIZE = 100_000 for i in range(0, int(1_000_000 / STEP_SIZE)): filter_builder = cDAI.events.LiquidateBorrow.build_filter() filter_builder.fromBlock = LATEST_BLOCK - ((i + 1) * STEP_SIZE) filter_builder.toBlock = LATEST_BLOCK - (i * STEP_SIZE) filter_instance = filter_builder.deploy(w3) entries = filter_instance.get_all_entries() if len(entries) > 0: print(i, entries)