protofire / eth-cli

CLI swiss army knife for Ethereum developers
https://www.npmjs.com/package/eth-cli
MIT License
239 stars 40 forks source link

Add command to get block and/or transaction that deployed a contract #129

Open fvictorio opened 4 years ago

fvictorio commented 4 years ago

There's no JSON-RPC for this, so I guess we should make a binary search using getCode. It would work like this:

Notice that this will only work in ganache and in archive nodes.