The evolution of blockchain explorers

ETHCC 7 · 11 Jul 2024 · 20:50

Andrew Gross of the Blockscout team traces how block explorers have evolved, starting from his own first use of one. He recounts how Blockscout began as an open source explorer for the POA Network side chain, later served the chain that became Gnosis Chain, and was spun off after other chains forked it. He lists the core roles of explorers, then new features: rollup support for the OP Stack, Polygon CDK, ZKsync and Arbitrum, contract verification across chains, a dApp marketplace, Farcaster integration, and a planned points system to draw more users to Blockscout.

Speakers

Topics

From ETHCC 7, hosted by Ethereum France.

Transcript

Is this one on? Yeah. Hey everybody. I'm Andrew. I'm from the Block Scout team. We are an open source explorer. And today we're going to be talking about the evolution of Block Explorers. So a little bit where we came from, some things we're adding now, and where we're going. First, I want to ask a question. How do you use a block explorer? So not really how do you use a block explorer, but how do you use a block explorer? And I'll start with my own personal story of the first time I used a block explorer.

And clicked on that little link, and it took me to a block explorer where I saw a bunch of crazy numbers and also a success message. So I knew that something good had happened. So the first time I used a block explorer, and maybe this is a similar experience for you all, was to check my own transaction. So how many people here have used a block explorer to check your own transaction? All right. How about to check other people's transactions? Like, you know, maybe you're following a whale or something like that.

Yeah, a few people, smart contracts. How about to uh yeah, like read a smart contract, check out the code, see if what's happening is actually happening. How about to interact with a smart contract? All right, so we've got a we've got a room of uh people who are using block explorers for lots of different things. How about to download a CSV for the tax man? Yeah, that's that's a uh painful experience right there. How about to check out dApps on a chain?

So to go to a chain and see what dApps are there. Anyone? So these are some of the new kinds of features that are coming to block explorers, but why don't we start uh a little bit in the past here? I'm gonna be talking mostly about Block Scout. Uh that's a project I'm most familiar with, but many block explorers are coming online, and you can see a lot of them are kind of following the same trajectory of adding more features, serving more as like a portal for the ecosystem as opposed to just a read-only place to see transactions. But with Block Scout, we basically started as a side chain to Ethereum.

It was called the POA network. Uh, it was a proof of authority network, believe it or not. And we needed a explorer, NEXPLOR. And there was one explorer currently available then, and it didn't support our side chain. So we decided to create our own explorer. We got a grant from the ETHPRISE Foundation and went to work. So in 2019, we launched a second side chain called the XDI chain. It also needed an explorer. That's a stable chain, stable gas transactions, which then merged with Gnosis.

So what you know today is Gnosis Chain was once the XDI chain. And at that point we did we were seeing a lot of people who wanted an explorer, who wanted a uh, you know, they they didn't just want it, they needed an explorer for their chain. And and they couldn't get support otherwise, so they started forking Block Scout, and we saw there was a real need there. So we decided to spin off Block Scout as its own separate project. And since then last year we really buckled down into improving the product, uh, launched a brand new UI, improved the back end with new architecture, and of course added a lot of new chains. And and now we're to a point where we can start adding more features and and getting more users.

Back to the basics, why do we need explorers at all? Basically, there's there's four basic reasons, so this is just for your base explorer. The the first one is transparency. So you've got all this data coming out out of the chain. It's it's very difficult to read as a human. It's optimized for data storage, but it's hard to know know what all that stuff is. So to create that transparency, we need to parse all that data quickly and then provide it for for humans to read. Secondly, we need to have access to this data in real time.

And we need all the data from the Genesis block, right? Up till now. So it's really serving that archival purpose. Third, it is a way to visualize data in a different way. And that's where some of these new features are coming in. So we've got integrations with bubble maps, we've got UML diagrams, um, advanced statistics, so different ways to kind of get around the data a little bit. And finally, security, uh, if it's a trusted explorer, typically that's one good starting point. And I would argue that every ecosystem needs at least two, three, four explorers so that you can definitively check, okay, this is a transaction looks good here, here, and here.

I can feel pretty assured that it went through. The primary challenge though is that first one I talked about. How do we provide, how do we get all this information? How do we provide it in a way that makes sense? How do we show the data that 80% of people need to see up front? You know that a transaction was completed successfully, and what happened in that transaction. And then how do we show the rest of the data for the other 20% of people who really need to you know to dig into it? It's it's similar to a bank receipt in many ways.

As a as a consumer, you just want to see this transaction happen from here to here. But there's some people who really need to dig into all the routing numbers and and everything else. So we need to provide that information for both groups. Another issue is there are this this number is no longer valid, I'm sure. I probably updated it. Last month, I don't know how many networks there are. There's more than 1500 networks that need a reliable explorer. And if each network is building their own explorer, that's just it's it's not maintained, it's not feasible, right?

You have a different experience on every chain, they have to have their own DevOps. So we need this kind of concerted overarching Explorer infrastructure. And having it open source obviously makes sense because projects can go in and fork the code and use it as they wish, customize it to what they need to, but then the user can still come through and have a fairly aligned experience across chains. Block Scout right now is used by 600 networks that we know of.

These are a few reasons why. As I mentioned, open source. Obviously, that's that's kind of our number one value proposition. Also, uh L2 compatible. We see so many roll-ups coming out these days that need an explorer quickly. And we're working with a lot of ROS providers right now who will, in addition to spinning out the chain, we'll spin out an explorer for the chain as well. It's configurable, as I mentioned. We've been developing some different customizable microservices on top so that you can kind of add to your explorer the kinds of tooling that you need. User-friendly, easy to install, and dev tooling.

So let's get into some ways that we're making the Explorer something else, something beyond just being able to check your transaction to make sure it was successful. And again, I'd like to mention this is just from the Block Scout point of view. There are many other explorers coming online into the space that are providing some really interesting ways to view data. There are some you know dev focused explorers like what Tenderly has. There's some social explorers like Dora, um, more full featured explorers, obviously, like Etherscan and what we're providing. So there's also these ne niche explorers that are you know providing different ways of looking at data, but I'm gonna be focused on Block Scout here.

One of the features we've we've added recently is really support for L2s and uh and the associated data from the L1s. So getting those deposits and withdrawals, making sure that we're able to post that data in in both directions so that people can see what's happening between the L2 and the L1. This includes transaction batches, right? There's different information in those batches, and we need to parse that out and show it in a readable way. They're both on on different schedules.

So there's a hard fork on L1 and there's a hard fork on L2, they don't actually correspond with each other. So we need to follow both of those. And and right now we're supporting the OP stack, uh, Polygon CDK, ZK Sync, and Arbitrum. It says soon on there. Um I would I would mark that to sooner. Right now, we're also looking at interactive tools that we can add to the explorer. So this is where it becomes more than just a place to go to see your transactions. One of the big ones is smart contract development tools.

So we have a standalone verification system where you can go in and verify your contract. If you verify it on one chain, it actually then is automatically verified on other chains as well. So trying to look at that multi-chain interoperability. Also, easier ways to interact with contracts, you know, it can it can be used just as a front end to the blockchain. You can look at the methods and you can read and write to those methods. One thing that's kind of unique to Block Scout, I haven't seen it in other explorers yet, is our DAP marketplace. So this is a way to explore DAFs.

It's basically for discoverability right now, but also there's an interactive piece. You can connect to Block Scout, connect your wallet, and then open some of these DAPs and be able to interact with them directly within Block Scout. And this creates kind of a trusted space where we check the contracts, you know that it's the DAP that you are looking for, and you can interact with it directly within Block Scout. The app does have to have safe SDK enabled and frame support. So there's a few things that a DAP needs to add, but it's a pretty easy lift, and then you can interact with those DAPs directly.

Also mentioned we're working on app chains as well. Uh Redstone is a gaming chain. And the way transactions work on there, they're there's separate games, and each have their kind of own different types of actions and transactions. So we need to find a way to display all of those in a coherent fashion. And that's something our our RD department is working heavily on right now. Bringing in extra data is a big way, is it's a big topic right now, all this metadata that we can bring in to enhance on-chain data. So a few things we've added on the base chain, we've got an integration with Farcaster so that if you have a Farcaster account attached to your EOA, you can then it will display automatically on the block on the block explorer.

So it's kind of a cool way to integrate some of that. You see an address, you want to chat with that person as long as they've added their address, then you can do so. We also bring in extra contextual data about different contracts. So there's an example here with Uniswap, just bringing in the basics, the website, the Twitter X, the GitHub, all the kinds of information that you need to be sure that you're interacting with the correct contract and to learn more about it. And finally, up there on the uh red square, that's from our DAP Scout as well.

That's that's a security score. So we have an integration with Solidity Scan where they check all of the contracts related to a certain DAP. And you can get that score accumulated from all of the different contracts, you can look into each contract and really then decide if if you want to interact with this DAP. Now, 85.9, that's actually a really good score. I don't I haven't seen any hundreds yet, but once you get down into the 50s, uh buyer beware. In the block explorer, they're there forever.

So we're able to have a historical archive of blog of blobs, blob scout. So also you might know that blobs aren't just posting role of data anymore, right? There's this inscriptions, there's people posting images, all sorts of things. So we're able to parse out that data and uh actually display the images in the explorer. This is a meme that was created on Gnosis Chain, I believe. We're also supporting account abstraction.

So it's interesting because account abstraction really you know makes things easier on the user side. And when something becomes easier on the user side, sometimes it gets more difficult on the other side. So we've created a standalone um account abstraction indexer, which is just a part of the stack now. And you can use that to to check out these types of transactions.

The way we're we're displaying them is as user operations and really trying to keep that data similar to what a regular transaction looks like. So we take uh the basic information and provide it there. If you were to able to go below here, there's a an extra additional details button, and you can see things like the paymaster and and other details related to user operations. I'll just mention up at the top there as well. You say you see it says burn 580 of SUSD. So that's actually an AI feature that is going in and checking what these transactions look like and then providing a quick human readable summary for people.

So we have our own AI engine that's that's built into Block Scout to provide that. We also have a partnership with NOVS that if you want a secondary way to provide those transaction summaries. But this kind of speaks to that 80% of people who just want to see that their transaction was successful and see what it did. So we're trying to provide that up front. So speaking of integrations, um, this is more of a collaboration with many different projects in the space. It is called the Verifier Alliance.

So we're talking about Soursify, Tenderly, Paradigm, Route Scan, Dora, Code Slaw. Um there's many projects involved in this. Yeah, please please check it out. There's gonna be more announcements coming. The the database is is in process. But the idea is that we we can't have this smart contract verification data siloed. It needs to be available for everyone to use as they wish. And and this is what this database will do. It will also allow you to verify a contract on one chain and again have it verified on other contracts if it's the same one.

So it's a really cool initiative. You'll be hearing more about it shortly. I just have one more slide here that uh speaks about some things that are coming for Block Scout. So this isn't quite on the feature side, but more on the user side. You know, just as we have multiple clients in Ethereum, uh we need multiple explorers, and we need to have more of a balance of people using different explorers. So we're trying to find ways to bring more people to Block Scout.

Of course, we don't think we should be the only explorer, we think we should be one of several explorers, and let's you know carve out the pie a little bit more. To do so, we are incentivizing chains, we're incentivizing applications, and we want to incentivize users through a point system. Now I know that that's a bit of a dirty word at this conference. Luckily, we have had the opportunity to see how some point systems have not worked very well, and uh learn from those and and be able to incorporate our own point system that we think is is really going to incentivize users to try Block Scout, hopefully to stay with Block Scout. I think it takes 18 days to change a habit, so maybe try it for eighteen days and see what you think.

You'll also be able to stake those points and other things. So those are some things coming down the pike for Block Scout just from a user perspective side. And I believe that's it for today. Thank you.

Related talks