Skip to main content

Create Context

Initialize node​

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

Node configuration file contains protocol defined metada.

node-config

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> --protocol near
tip

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

--protocol flag specifies the protocol to use for the context.

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