Run Your Own Starknet Node With Juno

Nethermind · 6 Oct 2025 · 12:21

A step-by-step tutorial on running your own Starknet full node with Juno, the Go client built by Nethermind. The presenter follows the official documentation to check prerequisites, compare the Mainnet, Sepolia and Sepolia-Integration snapshots, download and extract a snapshot in one command, and start Juno in Docker. The node is then verified with JSON-RPC calls that return the Juno version and the latest block number. A clear, practical guide for developers who want direct access to Starknet without relying on a third-party provider.

Topics

From Nethermind; community: Nethermind.

Transcript

Hey everyone, today I want to show you something pretty cool. We'll see how to set up our own starknet node using Juno. This video is not just going to be a demo. We are actually going to set up an infrastructure which you can use for the real projects that you make on Starnet. We are working with Juno today which is a starknet full node client written in Go and is built by Nethermine. Lots of apps in the starknet ecosystem actually use Juno at the moment. So it's proven to work very well in production. What I like the approach that we are taking in this video is that we'll use the official Juno docs as our guide and you'll see how I read through the

technical documentation and turn it into a working setup which is something you'll do all the time as a developer. So let's get started. Let me tell you what we are doing today and why is it useful for you. We are setting up a starknet node right on your local machine. This means that you get direct access to the starknet blockchain without depending on a third party service. Your node will have its own copy of the blockchain data and can serve requests independently.

The cool part here is that we'll use Juno's snapshot feature for really fast syncing. So instead of waiting 8 to 12 hours or maybe more to sync from the beginning of the starting blockchain, we'll download a recent snapshot and the node will be up and running in about 15 to 20 minutes. You will learn how to use Juno's snapshot feature, which networks you can choose from, how to check their sizes, and how to download the snapshots in the correct manner. You'll understand the difference between the Starknet's three networks and when to use each one. Plus, you'll know what normal behavior looks like when your node is syncing and how

to test it with API calls. Let's talk about the prerequisites. When it comes to hardware requirements, we need a Mac or a Linux system or Windows is also fine, but we need to have WSL installed in that. You'll need about 15 GB of free space as right now we are dealing only with test net this much space is enough then we'll require 4 GB RAM minimum but 8 GB is better and we also need a decent internet connection since we'll be downloading few GB of data for the snapshots so the whole thing takes about 15 to 20 minutes or so and when it comes to software requirements we should have docker to run Juno jq to make JSON look nice and block for the snapshot size commands

that we'll be using from the Juno docs and an Ethereum websocket endpoint from any RBC provider. So all right uh let's jump into the terminal and check if I have all the system requirements ready to go. Okay, so in the terminal I need to first check if I have Docker installed on the system already. So yes, we do have Docker. Then I need to check if I have jQ installed already. I assume yes, we have that as well. Then I should check if I have Gawk available with me. Yes, we have that as well. Then I need to export uh Ethereum Sapoleia websocket connection because we are

dealing with test net right now. So I have one websocket connection URL with me handy. So I'll just try to export that. export ETH node and this is the websocket URL. Let me just export that and perfect everything looks good and now let's jump into the official docs and see which networks are available to us. So this is what the official Juno documentation looks like. And the next step would be for us to check the database snapshots and the different types of networks that we have available to download. And what we'll be doing is you can see that we have the similar

definition that Juno database helps you to reduce the network syncing time. And only the blogs created after the snapshot will be synced when you run the node and fresh snapshots are automatically updated once a week and are available under these links. As you can see, we have three different types of networks present here. Mainet, Sapolia, and Sapoleia integration. I'll be telling you the difference of these three networks and who should use which network. But first, we'll check the sizes of different database snapshots that we have here. So, let me just open up my terminal side by side. And what we'll be doing is copying this curl command to first get the size of the

mainet snapshot. So it's about 207 GBs and then we'll copy the next command to get the size of sepoleia test net. Uh so we can see it's about 35.22GB which is 36 GBs. And the third command is for the snapshot size for Sapoleia integration. I assume it will be the lowest. Yes. So it's almost 8GB. Now let me explain what is the difference between each of these networks. So as you can see we have mainet. So this network is where real transaction happening with actual value

and it's the biggest snapshot at around 207 GBs approximately and you would use this version of snapshot for production applications. Sepolia is the next uh network that we have which is the main test net that most end users interact with. It's great for testing uh DAPs and wallets and has a medium-sized snapshot around 35GB and it's most popular choice for general development work. And the third one which we saw here was Sapoleia integration and it is a developer focused test net specifically designed for people who are working on node and sequencer sequencer development. uh it

has the smallest snapshot at around 8GB and it's perfect for tutorials and testing like what we are doing today. So we'll use Seapoleia integration since it's the smallest and downloads the fastest. But remember the process is exactly the same for these two other networks. Okay. So as we go down a bit in the documentation we can see the first thing that we need need to do is create a directory on so let me just clear this first then we can paste this and snapshot and I'll also create a subdirectory which is let me name it seapoleia even though

we'll be downloading the seapoleia integration snapshot uh just for convenience I'm typing it sepoleia. So here we go. It has been created and ZSTD is already installed for us. The next thing that we have to do and this is what I was talking about. We need to create a subfolder just for clarity and then we need to copy this curl command but this is for mainet and we need it polia integration. So let me just copy this. Then we need to type curl sash L.

Then paste the link for Sapoleia integration. And then we need to copy this part and okay and remember that we named the folder as Solia. So let me do that as well and press enter. Okay. So uh as you can see that this is pretty neat and the snapshot is being downloaded right now and it downloads decompresses and extracts in one go and I'll speed up this process since it takes a couple of minutes.

So as we can see that the download of the snapshot has been completed. And the next step for us would be to go to the running Juno page on the documentation and we'll go through the docker container setup because that is pretty easy and quick and the docker setup works for every system to be honest because the way docker is built. So let me follow this documentation. So the first thing that we have to do is pull the image.

Now this might take a couple of minutes. So so this has been completed and the next part would be to run the container but with the snapshot which we just downloaded. So instead of Juno mainet we should be doing Juno seapoleia because that's the way we uh named our directories. So I'll just copy the command which I have already present with me. It is similar to this is I'll explain you the command.

So basically as you can see the name is Juno snapshot seapoleia the name of the folder which we had it will be running on port 6060 and the host port would be 0.0.0.0 zero and the network integration as I said and this is the environment variable which we exported at the very beginning the ETH node which is a websocket URL and as you can see this has been running so great we can see it's running the docs mention that using docker logs we can see what is happening in the background so let us just check that so if we I do docker logs -f F and type Juno and press enter. So look at

this. Uh the node started with block 2.2 million something and instead of zero and that's our snapshot working. So as you can see it is working correctly. And the next part would be for us to actually make a JSON RPC request to this Juno node which is running. So let me open up another terminal here. and put it here. Let me just fix this. So the next step for us would be to actually make a JSON RPC request on the Juno node which is running rotary on our machine. So as you can see this is how we make a JSON RPC request and with this

curl command I'll be using curl command. You can see we can get the Juno version. So let me just paste and put it like this. And as you can see everything is working perfectly. You can see it's running and we get the latest Juno version. It's synced with the network. And uh to check if it is already synced because we have already cross checked it is synced. But just from a curl command if we can get the block starket block hash number that would give us a verification that everything worked fine. And as you can see the block number right now is 2283084 which means our snapshot is also working.

So great and we are done. We just set up the working stacknet node using Juno and we use the official documentation to do that. You have your own stark node running locally now with full API access and you can just try with the mainet version or the regular sepoleia version as well. Just change the snapshot URL and the network parameter and repeat the same process which we did in this video and yeah, you're good to go.

Related talks