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:
    1.
    Download the latest binary from Github
    2.
    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 shiden and add execution permission to the binary by running the following command:
1
$ chmod +x ./shiden
Copied!
Then you can execute the binary!  To check whether you can run the node, let's check the binary version.
1
./shiden --version
2
# astar-collator 2.5.1-ae46758-x86_64-macos
Copied!

Run the local network

You are already ready to run the local network. Simply run the following command:
1
./shiden --port 30333 --ws-port 9944 --rpc-port 9933 --rpc-cors all --alice --dev
Copied!
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:
1
./shiden help
2
# shiden 2.5.1-ae46758-x86_64-macos
3
#
4
# Stake Technologies <[email protected]>
5
# Shiden parachain collator
6
# ...
Copied!
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

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!
Last modified 14d ago