> For the complete documentation index, see [llms.txt](https://zayn-network.gitbook.io/overview/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zayn-network.gitbook.io/overview/build-on-zayn/deploying-smart-contracts/foundry.md).

# Foundry

**Introduction to Foundry**

Foundry is a fast, portable, and modular toolkit for Ethereum application development designed around Forge, a Solidity testing framework. It's known for its simplicity and powerful performance.

**Steps to Deploy Using Foundry**

1. **Install and Initialize Foundry:**
   * Install Foundry using the Foundry installer:

     ```bash
     bashCopy codecurl -L https://foundry.paradigm.xyz | bash
     foundryup
     ```
2. **Set Up Your Foundry Project:**
   * Create a new Foundry project:

     ```bash
     bashCopy codeforge init my-project
     cd my-project
     ```
3. **Configure Foundry for Zayn Network:**
   * Add Zayn Network configuration to the `foundry.toml`:

     ```toml
     tomlCopy code[networks.zayn]
     url = "https://rpc.zayn.network"
     ```
4. **Write and Compile Your Contract:**
   * Write your contract in the `src` directory and compile it using:

     ```bash
     bashCopy codeforge build
     ```
5. **Deploy Your Contract:**
   * Use Forge to deploy:

     ```bash
     bashCopy codeforge create --rpc-url https://rpc.zayn.network YourContract
     ```
