> ## Documentation Index
> Fetch the complete documentation index at: https://docs.train.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding a New Network

> Explains how networks can be added to the protocol

**1. Contract Implementation**

Implement [HTLC with recoverable secret generation](https://docs.train.tech/protocol/atomic-swaps-secret_gen.md) for the new network on its own `main-add-<network>` branch of the [contracts repo](https://github.com/TrainProtocol/contracts). Networks are developed and tested on their branch, then merged into `main` once production-track and published on the [Deployments](https://docs.train.tech/deployments.md) page.

**2. Solver Agent Implementation**

If there is no existing implementation (e.g., EVM), implement the Solver Agent Chain Library for the new network (functions for interacting with deployed HTLC contracts on specific chains). See the [Solver Implementation](https://docs.train.tech/protocol-spec/implementation-solver.md) spec.

**3. Run Solver**

Run a Solver for two networks—one well connected to others (already active Solvers) and the new network.

**4. dApp Implementation**

If there is no existing implementation (e.g., EVM), implement the Client Chain Library for the new network (functions for interacting with wallets on specific chains, subscribing to contract events, and composing user transactions). See the [dApp Implementation](https://docs.train.tech/protocol-spec/implementation-dApp.md) spec.

**5. dApp Deploy**

Create a pull request for a [popular bridge UI](https://testnet.train.tech/) or fork and deploy a separate UI.

These steps can be performed independently without needing permission or interaction with any party or entity — anyone can open a `main-add-<network>` branch and start integrating a new chain. The network-adding process in the TRAIN protocol is **similar to adding an ERC20 token to the Uniswap protocol**, making bridging trustless and permissionless; a network graduates to `main` and to the [Deployments](https://docs.train.tech/deployments.md) page once its implementation is complete and verified end-to-end. The detailed implementation steps can be found in the [Solver Implementation](https://docs.train.tech/protocol-spec/implementation-solver.md) spec.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.