Content pfp
Content
@
https://opensea.io/collection/dev-21
0 reply
0 recast
2 reactions

Paul Berg pfp
Paul Berg
@prberg
Given a contract address, is there a way to find the block number at which it was deployed? Does Etherscan's API provide information about this?
3 replies
1 recast
13 reactions

Haardik pfp
Haardik
@haardikkk
Etherscan api can give you the deployment txn hash, you can use that to figure out block number
0 reply
0 recast
2 reactions

Juliuss pfp
Juliuss
@julius-eth-dev
yep etherscan api has this. You can also see creation hash on etherscan.
0 reply
0 recast
0 reaction

Mo pfp
Mo
@meb
There might be an API. One other way is to just use an RPC call with binary search, going between a min max block range until you find the block where the code for the contract existed
0 reply
0 recast
0 reaction