How to use Visdom to Visualize Ethereum and Blockchain Data
Devcon·Sun, Nov 15, 2026, 12:00 AM
Transcript
[music] [music]
So hello people. Now we'll be starting with our session of visualizing Ethereum and blockchain data with wisdom. I'll hand over to Rajnish as he explains and kicks the presentation off.
So as we move forward, today we'll be talking about live Ethereum block data and we'll be turning it into wisdom dashboard and we'll be connecting new blocks. We will be looking visualizing how the blocks are interconnected, how they are pointed to each other, what's data they constitutes of and how the operations are being takes place. So the So as the workshop page promises, we'll be talking about multiple things such as base and priority fee, transactions, different data formats, different transaction formats, network overview. And a lot. So as we move forward, it would be great if you people could just download the files and so that we can get started with the workshop.
So so you can just scan the QR code and download the folder and can we can get started with it.
So we'll start with the files and the explanation how we're going to do it from the beginning. First we'll explain it to you guys what we're going to do in this session and then how exactly we're going to do this.
So we will be starting with the blockchain and fee basics. Then we will be moving to how we can actually set up our first block and then we will having overview of the five panels. After that we will through the network layout, annotations and export and then we'll be going live and then we'll have a wrap session. And the by end of all this we will have a quick visualization of how blockchain how blockchain blocks are actually working and how they are interconnected. What's peace, what's the actual resource cost being being consumed by them and how we can actually explore Web3 blocks.
So as you as we move move forward, so as the name suggests blockchain, so it's directly means a chain of blocks. Each and every block points to a previous previous block and the next block. And it this way it forms a blockchain. So each block have a address of the previous block known as parent and then the next block. It also have the base fee and the gas use.
Base fee is the protocol fee consumed to create the block and gas use the is the competition used for used for the operations. Now it have a list of transactions. How many Ethereums are being transferred and what was the proposed time of the creation of the block. So a block holds the transaction for in the given figure you can also see a block hold the transaction of one 12 second slot. Each block points to the one before it and the one thing is regarding blocks that we can only read the data of the blocks.
We can't write it. So as we move forward the gas per fee is the fee set by the protocol for this block. The transaction or gas price is what the sender offers on top. It is uh morally into the computation Then we have the length of transaction that is how many transactions are in the block. Uh what's the type of transactions uh that is there are few type of transactions in blockchain.
So what does what type does it follow? What format does it follow? Uh transaction value that is how much Ethereum is actually sent that is one Ethereum 0.5 or how much and then we have gas use that is how full the block is. That is the network overview.
So uh since some new people joined us, I'll share the QR code again for the files of workshop along with all the scripts that we have to run. So you guys can scan in. On the left is the OTS India Telegram channel. So you can join in and talk to us there, connect with us after the event. And on the right are the workshop files.
So please take a quick photo or scan it and so that you can kick it off on your own laptops. So I hope it's done. Now I'll hand it off back again to Rajneesh so he can take forward.
Yeah, as as we can see there are multiple new people. So for a quick recap what we have already gone through is we already talked about blockchain a bit. What why it is called blockchain? So it's actually a chain of blocks. What does a block constitutes of?
So if we move forward backwards uh Yeah. So as we can see a block contains the information of the previous block, next block, base fee that is the fee set by the protocol, gas uses the how much computation is used during the operation, how many transactions it have and how and what was the proposed time of the block creation. So I think now you people are a bit familiar with what we have already gone through. So So now how fee works? B base fee plus priority fee.
So base fee is something which is set by protocol and priority fee is what you pay per unit of gas. So here when we talk about gas, we actually talk about the computation cost which is consumed in during the operations. So so the so if we talk about why the base fee moves. So last block is more than full of more than half full. The base fees goes up less than half full.
It goes down and at most 12.5% per block. So it's smooth. And what you will see is base fee that is a smooth line. A priority fee is a jump line and both in is is 0.
as you can see 0.0001 eth. So since August 2021 EIP 1559 the London upgrade transaction pays two things per unit of gas. The base fee is set by the protocol for the whole block and is burned and nobody is received as it is set by the protocol. The priority fee is a tip to the validator that includes the transaction.
The the base fee moves at most 12.5% per block. If the last block was more than half full, it goes up and if it is less full, it goes down and that is why the base fee line in our first chart is smooth and the tip line is jumpy. So as we move forward, if we talk about transaction types. So first one is legacy.
It was the original format that is one gas price. It was used before 2021. Then we have access list EIP 2930. It is legacy pricing plus an access list. It is used from used 2021.
Then we have EIP 1559. It have a base fee plus a priority fee introduced by London August 2021. Then we have blob. So when we talk about blob, we also have submitted about the blocks as well. So it is EIP 4844 carrier roll up data Deacon March 2024 and then we have set code EIP 7702 an account that can actually run the contract code.
So it was from Vectra May 2025. So every transaction has a type number. So
So this was well thank you Rajneesh for this brief explanation of what is the blockchain and just explaining a bit to us about the transaction or what we're going to start with. Then the next step for us would be to install wisdom because then only we can really visualize what exactly are in the files. So if you would just in your but make sure you have Python version 3.12 and then in your terminals just install write pip install wisdom. That should work for you.
And then we launch wisdom. So I'm not really sure how is the internet connection if you guys are trying to install. Is it working for you guys or what what about the progress? So our team is there with the crowd. So if you need any help just ask them and they'll be helping you install wisdom so that we can kick it off.
By the end of the workshop we'd like to have a running dashboard for you. I'll show you what we have planned for it. So there would be several graphs and visualizations that we'll be showing. But you'll only be able to set it up if you actually follow us through it. Now moving on about our first blocks we'll be sending the data now.
I hope you guys are done with installation. Can I see a quick show of hands? If you have been successful for the installation. That's good to see. All right then.
You would want to take over for the first blocks?
Thank you. So for the very first block we can start with the first few lines of code. You can just write the code which is shown here. Execute it and that's it. Three blocks print the paste fee and a transaction count.
So if we talk about what the code does actually. So if you have as you have already unzip the file. So there is ETH data. It does two two jobs. It gives us a stream of blocks.
In turns a block into numbers of plot. Blocks read the recorded file by default or asks a live if ETH resource is equals to live or not. And everything after this slide uses these two functions. So the exercise are only about
So we're not really sure. How about you share us like
So I just got to know that the guys in the back are trying to install it, but it's taking some time. So, maybe you can take photo of the slides and although they are also present on the drive folder that we had shared the QR code earlier of. So, I will be moving forward with it because although I can maybe yeah. I can show you the dashboard what this code actually does. So, this is the visualization that will get after that particular snippet of code we run.
So, if we move to the next steps. So, the next thing is recorded blocks or live blocks. So, there are two modes replay default and live. So, if we talk about the replay default and where from where the blocks come from. So, directly come from the JSON file which you already have.
It reads the blocks underscore manifest dot JSON and at a pace of that is one block is read at every two second and it works most of the times that is it's as it works on your local so you don't need any internet connection any other thing. So, another is the live mode. It asks a public Ethereum node and then creates and then moves to creation of it and it it and every block is created on the time period of 12 seconds and it needs internet and it can be rate limited if the things are being taken in the like spam spamming manner. So, as you can see for the live blocks we have already shared the codes as well. The snippets you can directly copy and execute.
So, on window you need to set the variable first so that we can move forward. So, if we move forward streaming the base fee. So, as we have already discussed about the base fee it is the is the protocol fees. So, it is one chart one line. For every block we append 1.
2 window is called fees the block number on X and the base fee on Y dot Y dot update is equals to append and it adds to the existing line instead of replacing it as my colleague also showed you graph that each and every so as we have already discussed that whenever it gets full the price increases and as it and and and and as empties it the price decreases. So, the first append creates the window name labels and the trace. So, as we have already the snippet and you can see the ENV name is ETH manifest and we have this for block for loop block and in this every block is created at the time period of 12 seconds when live. So, it creates a line graph having the name as base fee it it updates via append and you can also see the other parameters as well in the snippet. So, it save it save it it as ETH base underscore fee dot PY and run it you don't need to have the specific name it's just a recommended one and in the browser pick up the environment which you have mentioned in the code snippet.
So, what you will see you will see you will be seeing a window called fee per block and one line and a new point every every two second as the append moves. So, so this is the graph which we which we are already which we just talked about and this is what you must be able to generate after the execution of that script. Yeah, so moving to the next slide adding the priority fee. So second line on the same chat same window name a different trace name. So wisdom adds a second line.
The value is the median tip across the transaction in the block. The tip is computed in summarize for an EIP 155 1559 transaction which is a type of transaction. So it takes parameter as max priority fee per gas max fee per gas and minus base fee. And for a legacy transaction it is gas price minus base fee. So whenever you talk about gas price we talk about the computation cost as we know that in blockchain the Ethereum is given whenever a complex problem is solved right.
So we take the median because a few transactions pay very large tips and what we expect is we expect a tip line which is which much which is much jumpier than the fee baseline in the recorded file. The base fee sits near around 0.2 we end the median tip near 0.1 gwei. So both are small and the tip can hit zero in some blocks.
So one of the question can be why not the plot is average. So one generous sender would drag it and so yeah this is the another line. You can see the spikes in between and the second plot which is being created. So if we talk about transactions per block that is the number of transactions per block it is also denoted at as len transaction per block. It is appended to a new window and the count moves with the demand and with the blocks is a block with few transactions is not necessarily empty of activity but a single transaction can be very large contract call sometimes.
Also missed slots some sometimes shows a longer gap in block timestamps not as empty block. So if we go via the code snippets as well, you will be seeing a window called transaction per block one noisy line and some environment. So it is the length of transaction that is number of transactions that took place and so if you so if we talk about the transaction format that is legacy versus EIP 1559 so so as we have already discussed the difference in legacy there is so we give go with the base price minus gas price that is the computation and in EIP 1559 we go with the maximum gas that is and the two parameters is maximum gas and maximum gas minus base price. So after the execution of this code you will be able to seeing a pie graph. So we keep three running totals and redraw the pipe with each block legacy transaction type zero and one EIP 1559 type two and the newer blob and the set code types.
The pipe window is replaced every time not append wiz. pie with the same win name and it overwrites it. So so the totals started zero when the script starts. So the pie is the mix since you started the very first execution and not the whole chain because it it go for per block on minute the large majority is type two today. Legacy is the old one and was being used before 2020.
So and on test net the mix can look very differently and and now how much Ethereum actually moves. So as we already know the the Ethereum is generated via solving the complex questions. So running this block will be showing will be generating a histogram of how much Ethereum actually transfers. Transfer sizes are widely uneven, many tiny ones and a few huge ones. We plot them directly and everything piles up to zero.
So we plot log 10 of the value minus three gives 0.001 ETH. Zero means one ETH. Three means 1000 ETH. And we keep the last 50 blocks in a DQ.
So picture follow recently. So if we move forward that is a network overview panel. So what so after the execution of this chart, what you will be seeing? You will be seeing a card titled network overview, block number, base fee, tip transaction, block full of percent near 50 is the target. So yeah, this is the block.
So now if we as we move forward, so for all five panels, there are two networks. So what does this script is this script is all five panel in one file. It is where we have been heading dashboard.py also save the environment when the stream ends. Run it once for manifest, then run it again with a different environment name and the separate recording.
Wisdom keeps the two dashboard in two different environments, so you can actually flip between them in the environment selector. So as you can see here as well, there are multiple charts and each depicting its own value. So as we move forward, so what you can do, you can arrange and save your layout as my colleagues showed you in a live that you can actually drag the window the way you want. You can resize, you can open any view, you can reload the page and the layout remains as it was. And one thing that if you want to preserve the data, you can just do wiz.
save and you can pass the ENV name and it will save the JSON file directly into your root directory for the wisdom which must be dot wisdom in your home directory for Linux based distros. And for Windows, it must be into your app data. So now what about annotate annotate a fake spike and then export? So what you can do is you can hover the fees chart and then click the pencil in the toolbar. Click a spike and then you can type what happened for your own convenience.
And then the amazing thing thing is you can reload the page and it will always stay there until unless you can delete it or edit it manually. And you can also export this chart. You can also export this chart into multiple formats and the amazing thing is it remains there in the image as well.
Well, this visualization was quite heavy because I have like 15 scripts running on my machine. So it's kind of laggy. I can show you annotation if I could just reload and it works, then I will be able to Let's hope for the best. Sorry Uh we'll just move over. Uh I'll show this to you in a few minutes guys.
Yeah, so as we move forward, so if we move to the live blocks, how we can switch to them. So same script, one variable eth underscore source is equals to live. So as we have already discussed that it connects to the live nodes, live Ethereum nodes, so you will be needing a internet connection and also you have to take care of the rate limiting. So now the scripts ask a public Ethereum node for each new block. Uh nothing changes in the chart, but a point arrive every 12 seconds because in the live Ethereum the append the updates are sent at the period of 12 seconds.
And then we have to wait for two to three blocks and watch the overview card. So public notes are shared and can rate limit a failure with four to nine or timeout can be seen and that's quite common.
So I think we can use the annotation now and I'll just put it. And I'll add it. It'll persist reloads. It is saved with your data in the server and in the files that your machine hosts. So it will be there.
After two months you can still go and see oh it spiked and I noted it. I noted it earlier as well and I annotated it. And it's good that you did because now I can actually see what what was going on because not every time I remember the context of what I had two months ago. Now off to Rajneesh.
Yeah, so as we take it forward, so what we can do now? So we have three directions. Either we can follow a smart contract, we can write a smart contract or we ask the node for logs with get logs, for example, the transfer events of token and plot them into environment named after contract. The another is other chains anything within Ethereum style JSON RPC works the same way and point ETH RPC as it. So one can be you can put wisdoms experiment tracking next to it and for example you can you can visualize ML model with the next run and relate it with the chains.
So by now you guys would have gotten the idea what wisdom is. Wisdom is a visualization tool and you can use it to do a bunch of stuff just visualization and exporting is not it. It has some super cool features and as well as with it it's super light. Now obviously depending on what your workflow is you'll have to make some trade-offs based on speed or maybe your device overheating. I chose the overheating thing here and used it in low memory.
Then the next slide we prepared is for troubleshooting. That was for the hands-on workshop but the internet connection is not that good here so other people could not really follow along. This is the cheat sheet. Many people joined late. I'll flash the QR code again so that you guys can scan it and try it out by yourself.
So on the right is the workshop files. It has the scripts that we showed in this workshop presentation and on the left is the OTS India channel. Join in so you can connect with us later. Now writes I'll give you guys a moment. Okay, now let's move back to it.
By the end of this workshop, we'd be having this live Ethereum dashboard that I just showed to you guys. All of these experiments, these scripts running in your own computers. And in what 30-35 minutes? That's just it. I mean, this that pretty much sums wisdom up.
You use whatever you're already using. It handles the rest. You just pass to it. It makes it work.
And also you can store all the data of all the blocks, all the transactions in a JSON file, and you can actually reproduce the entire experiment, entire blocks, entire length at any point of time, provided you keep the JSON as it is with the subsequent updates, and you can actually check how the block was created at that time when when it was done in the very first place with all the connections.
Also guys, we made the new release of wisdom at today morning in a talk on the main stage at 9:45 a.m. So please try it. And yes, you might have some overlapping workflows, some things that you might need. Try it, break it, and just let us know.
I've shown the GitHub link here for Fosasia wisdom and the install command. Man, it's just three words, pip install wisdom. That's all it is. So you guys can take a photo here as well. It has a bunch of awesome features that you guys might already have heard of in the presentation if you were there.
But to sum it up, it has hyperparameter optimization, Optuna, Keras auto logging. So now and then again it these this release was a lot of work. I mean Wisdom was a project that whose development slowed down after some time and then a new team joined up. Uh the con like this is an open source project completely and so we just put our all of us put our hands together and started working on it and now after a large time it has been moving again and two releases in the past five months uh that says really good. With all these new features, updating all the servers, uh tests, all of the documentation, then the scripts making it efficient.
There is a lot of optimization that we have tuned in so that it can support modern workflows with less resources.
Yeah, we have also um made some changes into the previous architecture as well. We have introduced a sync IO. We have made things parallel and have introduced multiple multi-threading processing as well. Uh it would be great if you will also see how Wisdom is actually working on its base and can contribute and can see how we can actually optimize it more, make it more efficient, faster and smoother.
Along with that the new release also supports Wisdom Dev. It is hosted on Fosecia's infrastructure. So the running the server locally thing, yeah, doesn't really need it anymore. You just sign up here, make an API key and put it in your scripts. It sends the data here.
A small gateway checks it and passes on to core Wisdom. And then you see all of that in visualizations the same way as Wisdom. So this is it. Now are there any questions? If you guys have any questions about Wisdom or wisdom dev, so we'll be taking those.
Then I think we can conclude this here. Thank you so much, guys.
[music]
Automatic transcript — names and jargon may be misspelled.