Create Context
Initialize node​
- NEAR
- Starknet
- ICP
merod --node-name node1 init --server-port 2428 --swarm-port 2528
merod --node-name node1 init --server-port 2428 --swarm-port 2528 --protocol starknet
merod --node-name node1 init --server-port 2428 --swarm-port 2528 --protocol icp
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.
- NEAR
- Starknet
- ICP
Run node​
merod --node-name node1 run
Wait for a few moments and node logs should appear.
When you see something like this that means that node is now ready for use.
Create a New Context​
- Meroctl
- Interactive cli
- Admin Dashboard
meroctl --node-name node1 context create --watch <application_path>
--watch
flag enables watching for changes of wasm files and updating context
with the new version.
Install the Application​
Run the following command to install the application:
application install url {url}Â {metadata}
'{"contractAppId": "<application_id>"}'
Create a New Context​
context create {applicationId}
context create Ahe2vLWLgswJARv5LsafXp7uJyb2Ba9GjzUSeLc71gUF
2024-10-07T11:55:36.658396Z INFO calimero_context: Subscribed to context context_id=567C5Gg4mxHMPKy2wLJ4uvb3DHsbcpVDYUsuAWgTPgXn
Created context 567C5Gg4mxHMPKy2wLJ4uvb3DHsbcpVDYUsuAWgTPgXn with
identity DaSkad6DK7f6fUhjz1CvNW7L4TkWZmWqAcwysZHG3Xs5
Create a context using the Admin Dashboard​
- Navigate to the "Contexts" tab and click the "Start New Context" button.
- Use the "Browse" button to select an application from the list.
- Choose application.
- Press "Start" to initiate the context creation process with the selected application.
Visit Admin Dashboard Page to view detailed instructions with images.
After the context is created, you will be redirected to the context dashboard. Keep this page open as you will need the Context ID later.
You have now create a new context. Next step is to invite users to join your context. Continue with invitations and joinings.