Skip to content

Commit

Permalink
feat: protocol flag docs (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
frdomovic authored Dec 2, 2024
1 parent 471f503 commit 0280ad9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/03-getting-started/01-init-and-run-node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ import TabItem from '@theme/TabItem';
cargo run -p merod -- --node-name node1 --home data init --server-port 2428 --swarm-port 2528
```

> **_NOTE:_** A `--protocol` flag defines protocol for the context. Currently,
> we support Starknet and NEAR protocol. By default, the protocol is set to NEAR
> protocol, but you can set it explicitly to Starknet by using the following
> command:
>
> ```bash title="Terminal"
> cargo run -p merod -- --node-name node1 --home data init --server-port 2428 --swarm-port 2528 --protocol starknet
> ```
> You can also view these settings in the config.toml file located within the
> node folder.
>
> ![NearConfig](/init/near-config.png) >![SnConfgi](/init/sn-config.png)
### 2. Run node
```bash title="Terminal"
Expand Down
Binary file added static/init/near-config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/init/sn-config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0280ad9

Please sign in to comment.