Skip to main content

Create Context

Initialize node​

Terminal
merod --node-name node1 init --server-port 2428 --swarm-port 2528
tip

A --protocol flag defines which chain will be used in the node context. NEAR is default protocol so it doesn't need to be specified. List of supported protocols can be found in the Blockchains integration

Node configuration file contains protocol defined metada.

NearConfig

Run node​

Terminal
merod --node-name node1 run

Wait for a few moments and node logs should appear.

Node running

When you see something like this that means that node is now ready for use.

Create a New Context​

Terminal
meroctl --node-name node1 context create --watch <application_path>
tip

--watch flag enables watching for changes of wasm files and updating context with the new version.

You have now create a new context. Next step is to invite users to join your context. Continue with invitations and joinings.

Was this page helpful?
Need some help? Check Support page