erigon icon indicating copy to clipboard operation
erigon copied to clipboard

Feature request: fetch contract creation info by providing creator's address

Open fenghaojiang opened this issue 3 years ago • 5 comments

Feature request: fetch contract creation info by providing creator's address

Why should this feature exist?

It seems there is no way to find what contracts were created by a specific account except "trace_xxx" methods which costs you lots of time by making the request and traversing the blocks.

What are the use-cases?

Directly return the contract address is really useful in some analytical scenarios.

fenghaojiang avatar Jul 30 '22 15:07 fenghaojiang

See: https://github.com/wmitsuda/otterscan/blob/develop/docs/custom-jsonrpc.md#ots_getcontractcreator

Is that what you need? if so, I can consider pushing it upstream under erigon_getContractCreator if core devs agree.

wmitsuda avatar Aug 01 '22 17:08 wmitsuda

See: https://github.com/wmitsuda/otterscan/blob/develop/docs/custom-jsonrpc.md#ots_getcontractcreator

Is that what you need? if so, I can consider pushing it upstream under erigon_getContractCreator if core devs agree.

I would use this if it was in the erigon_ namespace. Currently we have an inefficient version of the same thing.

tjayrush avatar Aug 01 '22 17:08 tjayrush

See: https://github.com/wmitsuda/otterscan/blob/develop/docs/custom-jsonrpc.md#ots_getcontractcreator

Is that what you need? if so, I can consider pushing it upstream under erigon_getContractCreator if core devs agree.

Not exactly but similar. What I want is to get the contract address list by giving a creator account as input. But your implementation will be helpful in some way. Thank you.

fenghaojiang avatar Aug 02 '22 02:08 fenghaojiang

See: https://github.com/wmitsuda/otterscan/blob/develop/docs/custom-jsonrpc.md#ots_getcontractcreator

Is that what you need? if so, I can consider pushing it upstream under erigon_getContractCreator if core devs agree.

May I view your implementation? May be I can help to make PRs or contribute to erigon in Go.

fenghaojiang avatar Aug 03 '22 06:08 fenghaojiang

This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.

github-actions[bot] avatar Oct 14 '22 04:10 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Oct 22 '22 03:10 github-actions[bot]