CreatedAt for specific contract address


#1

Is it possible to GET “CreatedAt” property for one contract address. I’m able to get a list of all contract addresses with “CreatedAt” using

curl -X GET "http://192.168.99.100/bloc/v2.2/contracts" -H "accept: application/json;charset=utf-8"

But, is there a way to filter for just one address?


#2

Hi, we’ve received your question and will reply soon.


#3

Hi,

If you would like to get the CreatedAt property of one contract address, given that you have enabled the history flag upon uploading the contract, you can view the creation date by using the cirrus search.

/cirrus/search/ContractName/ will contain a “block_timestamp” that will contain the information on when the contract was uploaded.

If there was a chain id associated with it
/cirrus/search/ContractName?&chainId= will work as well.

Outside of that you will have to get all the contracts and view their CreatedAt dates with the curl request you provided.

Please let us know if you have any other questions.