# How to run a Gnosis Chain node

## How to run a Gnosis Chain node

### Prerequisites

* Check the [hardware](https://docs.erigon.tech/erigon/v3.1/getting_started/hw-requirements) prerequisites;
* Check which [type of node](https://docs.erigon.tech/erigon/v3.1/basic-usage/node) you want to run and the [disk space](https://docs.erigon.tech/erigon/v3.1/getting_started/hw-requirements#minimal-node-requirements) required.

### Install Erigon​

To set up Erigon quickly, we recommend the following:

* For Linux and MacOS users, use our [pre-built binaries](https://docs.erigon.tech/erigon/v3.1/installation/linux/prebuilt);
* For Windows users, [build executable binaries natively](https://docs.erigon.tech/erigon/v3.1/installation/windows/build_exec_win).

## Start Erigon​

To execute a Gnosis Chain full node using pre-compiled binaries, use the following basic command:

```bash
erigon --chain=gnosis
```

### Example of basic configuration​

The command above allows you to run your local Erigon node on the Gnosis Chain. Additionally, you can include several options, as shown in the following example:

```bash
erigon \
--chain=gnosis \
--datadir=<your_data_dir> \
--prune.mode=minimal \
--http.addr="0.0.0.0" \
--http.api=eth,web3,net,debug,trace,txpool \
--torrent.download.rate=512mb
```

#### Flags explanation

* `--chain=gnosis` specifies the Gnosis Chain network, use `--chain=chiado` for Chiado testnet.
* `--datadir=<your_data_dir>` to store Erigon files in a non-default location. Default data directory is `./home/user/.local/share/erigon`.
* Erigon is full node by default, use `--prune.mode=archive` to run a archive node or `--prune.mode=minimal` (EIP-4444). If you want to change [type of node](https://docs.erigon.tech/erigon/v3.1/basic-usage/node) delete the `--datadir` folder content and restart Erigon with the appropriate flags.
* `--http.addr="0.0.0.0" --http.api=eth,web3,net,debug,trace,txpool` to use RPC and e.g. be able to connect your [wallet](https://docs.erigon.tech/erigon/v3.1/basic-usage/wallet).
* `--torrent.download.rate=512mb` to increase download speed. While the default downloading speed is 128mb, with this flag Erigon will use as much download speed as it can, up to a maximum of 512 megabytes per second. This means it will try to download data as quickly as possible, but it won't exceed the 512 MB/s limit you've set.

To stop your Erigon node you can use the `CTRL+C` command.

When you get familiar with running Erigon from CLI you may also consider [staking](https://docs.erigon.tech/erigon/v3.1/staking) and/or run a [Gnosis chain node with an external Consensus Layer](https://docs.erigon.tech/erigon/v3.1/quick_nodes/gnosis/gno_extcl).

Additional flags can be added to [configure](https://docs.erigon.tech/erigon/v3.1/advanced/configuring) Erigon with several [options](https://docs.erigon.tech/erigon/v3.1/advanced/options).
