# Foundry

Check out Foundry for [installation details](https://book.getfoundry.sh/getting-started/installation) and [an overview](https://book.getfoundry.sh/).

Foundry consists of:

* [Forge](https://book.getfoundry.sh/forge/): Forge tests, builds, and deploys your smart contracts.
* [Cast](https://book.getfoundry.sh/cast/): Cast is Foundry’s command-line tool for performing Ethereum RPC calls.
* [Anvil](https://github.com/foundry-rs/foundry/blob/master/anvil): Anvil is a local testnet node shipped with Foundry.&#x20;
* [Chisel](https://book.getfoundry.sh/chisel/): Chisel is an advanced Solidity REPL shipped with Foundry

### Compile your contract[​](https://docs.gnosischain.com/developers/dev-environment/hardhat#compile-your-contract) <a href="#compile-your-contract" id="compile-your-contract"></a>

```properties
forge build
```

### Deploy your contract[​](https://docs.gnosischain.com/developers/dev-environment/hardhat#compile-your-contract) <a href="#compile-your-contract" id="compile-your-contract"></a>

```properties
forge create --rpc-url https://rpc.lycanchain.com --private-key <your_private_key> src/<YourContract>.sol:<YourContract>
```

View your deployed contract on any of the [explorers](https://explorer.lycanchain.com/).


---

# 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://docs.lycanchain.com/developers-integration/smart-contracts/develop-and-deploy/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.
