I am new to the Ethereum blockchain and web3.py, and I'm interested in finding a way to work with a contract address to return the block and transaction hashes for the block where the contract was deployed.
I've been working with the getCode()
method that's part of web3.py, but have ran into a wall. My idea is to use the block_identifier
argument in some way to improve upon a sequential search of all blocks in the chain, but don't quite know the best approach.
Is there any way to utilize the getCode()
method to accomplish my overall goal of returning the block and transaction hashes?
Any help or hints would be greatly appreciated. This is an assignment, therefore I'm not looking for the complete answer, just some help to get moving again.