> For the complete documentation index, see [llms.txt](https://docs.creditcoin.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.creditcoin.org/cc-enterprise/environments.md).

# Environments

A node can be configured to connect to different Creditcoin networks. Each network has different configurations and use cases.

| Attributes    | Devnet                                        | Testnet                                       | Mainnet                           |
| ------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------- |
| Overview      | Local/public development environment          | Public testing environment                    | Live production environment       |
| Users         | Developers                                    | Developers & testers                          | End users                         |
| Function      | To develop new features & improvements        | To test new features & improvements           | To secure credit history on-chain |
| Tokens        | Test tokens with no real world economic value | Test tokens with no real world economic value | Real tokens with economic value   |
| Chain history | Wiped frequently                              | Wiped occasionally                            | Preserved                         |

The network configuration is specified using the `--chain` flag and the `--bootnodes` flag, which specifies the initial nodes to connect to. Currently, only the `test` network chain specs include bootnodes. The `main` and `dev` networks bootnodes must be specified manually.

Example:

```bash
./target/release/creditcoin-node --chain main --bootnodes "/dns4/bootnode.creditcoin.network/tcp/30333/p2p/12D3KooWAEgDL126EUFxFfdQKiUhmx3BJPdszQHu9PsYsLCuavhb"
```

## **ChainSpecs**

Creditcoin networks are configured using a `ChainSpec`. The `ChainSpec` is a JSON file that defines the initial configuration of the network. To use a `ChainSpec`, use the `--chain` flag when starting the node.

* Mainnet: `--chain main`
* Testnet: `--chain test`
* Devnet: `--chain dev`

## **Bootnodes**

Bootnodes are nodes that are always on and can be used to bootstrap new nodes and discover other nodes in the network. To use a bootnode, use the `--bootnodes` flag when starting the node followed by the bootnode's address.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.creditcoin.org/cc-enterprise/environments.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
