This guide will help you set up and initialize the Tracks environment.
If you have previously set up Tracks, remove any old data to ensure a clean environment.
sudo rm -rf ~/.tracks
make build
Initialize the sequencer with the necessary parameters.
daRpc="mock-rpc"
daKey="mockKey"
daType="mock"
moniker="monkey"
stationRpc="http://127.0.0.1:8545"
stationAPI="http://127.0.0.1:8545"
stationType="evm"
./build/tracks init --daRpc "$daRpc" --daKey "$daKey" --daType "$daType" --moniker "$moniker" --stationRpc "$stationRpc" --stationAPI "$stationAPI" --stationType "$stationType"
Initialize the prover. Ensure you specify the correct version.
./build/tracks prover v1EVM
Create keys for the junction account. If the keys are not already created, use the following command:
accountName="dummy"
accountPath=".tracks/junction-accounts/keys"
./build/tracks keys junction --accountName "$accountName" --accountPath "$accountPath"
Alternatively, you can import an account using a mnemonic:
accountName="dummy"
accountPath=".tracks/junction-accounts/keys"
mnemonic="huge bounce thing settle diet mobile fruit skill call roast offer soap other upset toward sand dress moral pole smile limb round vacant ecology"
./build/tracks keys import --accountName "$accountName" --accountPath "$accountPath" --mnemonic "$mnemonic"
- Join Airchains Discord
- Goto
switchyard-faucet-bot
channel - Type
$faucet <your_address>
, you will get 2AMF soon.
Create a station on the junction with the necessary parameters.
NOTE: don't forget to replace
accountAddressArray
with the addresses you want to make track member. Replace it with your new address
accountAddressArray="air16hrzql0js3awfl2cfqhf3kmachxueevw4a6f4d" #! replace it with your address
accountName="dummy"
accountPath=".tracks/junction-accounts/keys"
#jsonRPC="http://0.0.0.0:26657" # localhost testing
jsonRPC="https://airchains-testnet-rpc.itrocket.net/" # junction testnet
bootstrapNode="/ip4/192.168.1.24/tcp/2300/p2p/12D3KooWFoN66sCWotff1biUcnBE2vRTmYJRHJqZy27x1EpBB6AM"
info="EVM Track"
./build/tracks create-station --tracks "$accountAddressArray" --accountName "$accountName" --accountPath "$accountPath" --jsonRPC "$jsonRPC" --info "$info" --bootstrapNode "$bootstrapNode"
Finally, start the node to begin interacting with the Tracks blockchain.
./build/tracks start
If you encounter any issues during setup, refer to official documentation or reach out Airchains discord for support.