Create Context
Initialize node​
merod --node-name node1 init --server-port 2428 --swarm-port 2528
Node configuration file contains protocol defined metada.
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
- Near
- Starknet
- ICP
meroctl --node-name node1 context create --watch <application_path> --protocol near
meroctl --node-name node1 context create --watch <application_path> --protocol starknet
meroctl --node-name node1 context create --watch <application_path> --protocol icp
--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.
Install the Application​
Run the following command to install the application:
application install url {url}Â {metadata}
metadata example:
'{"contractAppId": "<application_id>"}'
Create a New Context​
- Near
- Starknet
- ICP
context create {applicationId} --protocol near
context create {applicationId} --protocol starknet```
</TabItem>
<TabItem value="icp">
```bash title="Node Terminal"
context create {applicationId} --protocol icp
--protocol
flag specifies the protocol to use for the context.
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.