# 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
     ```


---

# Agent Instructions: 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:

```
GET https://zayn-network.gitbook.io/overview/build-on-zayn/deploying-smart-contracts/foundry.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
