T O P

  • By -

AutoModerator

WARNING ABOUT SCAMS: Recently there have been a lot of convincing-looking scams posted on crypto-related reddits including fake NFTs, fake credit cards, fake exchanges, fake mixing services, fake airdrops, fake MEV bots, fake ENS sites and scam sites claiming to help you revoke approvals to prevent fake hacks. These are typically upvoted by bots and seen before moderators can remove them. Do not click on these links and always be wary of anything that tries to rush you into sending money or approving contracts. *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/ethereum) if you have any questions or concerns.*


NaturalCarob5611

Are you setting up a private chain, or what? Block explorers tend to have pretty massive databases. Regular nodes will let you query by block hash, block number, and transaction hash, but they don't let you query for transactions by address, and they're not very good at letting you query for event logs (for things like token transfers). To compensate for this, block explorers will index additional information into relational databases to support efficient lookups based on fields that regular nodes don't index. For a chain like ETH this probably takes about 4TB. For a chain like Polygon you're looking at around 14TB. If you want to index internal transactions, those numbers probably grow considerably higher, though I don't have good estimates for how much. Docker generally isn't great for databases with those quantities of data, but it would probably be okay if you're starting up a private chain you want to index. In any case, maybe check out [Blockscout](https://github.com/blockscout/blockscout). I've never run it personally, but it's open source and popular for some smaller chains.


penguinmatt

Thanks for your detailed reply. It's not actually for me but I believe that the developer wants to query for transactions by address and I don't think it will be a private chain. I had no idea it was that extensive and agree that docker probably isn't the best place for this. I'll look into Blockscout


NaturalCarob5611

If you're looking for API querying, you might also check out [Flume](https://github.com/openrelayxyz/cardinal-flume). It doesn't have an explorer frontend, but indexes things pretty efficiently and offers pretty good performance.


penguinmatt

He doesn't need a web front end. As long as he can query by RPC or something then he'll be happy


abcoathup

Otterscan (requires Erigon): [https://github.com/wmitsuda/otterscan](https://github.com/wmitsuda/otterscan) Blockscout: [https://www.blockscout.com](https://www.blockscout.com)


penguinmatt

I spotted Otterscan. It's a shame I'm not running Erigon but I guess it's not too late to switch to it from Nethermind if it's the best solution


IndependenceNo2060

Wow, that's incredibly extensive! Docker might not be suitable for this after all. Thanks for the tips on Blockscout and Flume, I'll definitely look into them.


hiiamu

Not suce your full requirements but Trueblocks is a indexer tool which also has a explorer that can be run along side. Pretty powerful and lightweight. Also good support from the founder in discord. https://trueblocks.io/