hashgraph / hedera-services

Crypto, token, consensus, file, and smart contract services for the Hedera public ledger
Apache License 2.0
266 stars 118 forks source link

Script/tool for getting all contract accounts needed for diagnostic purposes #13955

Open david-bakin-sl opened 3 weeks ago

david-bakin-sl commented 3 weeks ago

It's sometimes necessary to do a check over all extant contracts - e.g., scan their bytecode looking for some properties. We need a way to do that. In "mono service" days we could use the contract bytecode state dumper to get that from a signed state. But that dumper no longer exists (at this time).

Provide a tool/script to get all contract accounts - perhaps with certain metadata, e.g., date created, whether deleted or not, possibly which account created it.