Skip to main content

Running local network

Now, it's time to run your first local network!

Get the latest binary

You can get the binary in one of the following ways:

  • Download the latest binary from Github
  • Build from source

If you want to download the binary, go to the Release page of Astar Github repository. You can find the pre-built binaries for MacOS and Ubuntu as well as Docker images. If you want to build from source, this readme helps you a lot!

After you get the binary, you can rename the binary file to astar and add execution permission to the binary by running the following command:

chmod +x ./astar

Then you can execute the binary!  To check whether you can run the node, let's check the binary version.

./astar --version
# astar-collator xxx

Run the local network

You are already ready to run the local network. Simply run the following command:

./astar --port 30333 --ws-port 9944 --rpc-port 9933 --rpc-cors all --alice --dev

This command means:

  • Use port 30333 for P2P TCP connection
  • Use port 9944 for WebSocket connection
  • Use port 9933 for RPC
  • Accept any origins for HTTP and WebSocket connections
  • Enable Alice session keys
  • Launch network in development mode

You can see the full list of the command option from the help subcommand:

./astar help
# shiden xxx
# Stake Technologies <>
# Astar parachain collator
# ...

When you succeed to run the local network, you can see the following messages on your terminal:


OK! Let's visualize your local network now!

Access your local network via Explorer

Access the following URL:

Then you can see the following screen:


This visualizes your local network. In this local network, some native tokens are already issued and allocated to some accounts. Let's go to the Account page from Accounts Tab.


You can see that ALICE and BOB have around 1,000 tokens. In the following section, you can deploy your smart contract and interact with it by paying the transaction fee using these tokens.

In the Polkadot explorer, it's possible to interact with Substrate RPC only. So how can you do interact with Ethereum RPC? You can use Metamask for that!