> For the complete documentation index, see [llms.txt](https://qubetics.gitbook.io/qubetics-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://qubetics.gitbook.io/qubetics-docs/getting-started/qubeqode-basic-user-guide/compile.md).

# Compile

The Compile Tab is designed to simplify the compilation process for smart contracts. It ensures compatibility with different Solidity versions and Ethereum Virtual Machine (EVM) configurations, giving developers flexibility and control.

<figure><img src="/files/rmPvIu07wfZp8TN4TZPA" alt=""><figcaption></figcaption></figure>

## **Step-by-Step Instructions**

**1. Select Contract Type**

* At the top, you will find options for different contract types such as **ERC20**, **ERC721**, **ERC1155**, **Stablecoin**, **Real-World Asset**, **Governor**, and **Custom**.
* Click on the desired contract type to load the associated code template.

**2. Configure Solidity Compiler**

* **Compiler Dropdown**:
  * Choose the Solidity compiler version compatible with your contract requirements (e.g., `0.8.22` or `0.8.19`).
  * The dropdown allows you to select the compiler version for compatibility with various blockchain networks.
* **EVM Version Dropdown**:
  * Select the EVM version (e.g., **London**, **Istanbul**) to ensure the contract complies with the target blockchain specifications.

**3. View and Edit Code**

* The main editor displays the Solidity code for your selected contract template.
* You can modify the code directly in the editor to customize parameters such as:
  * **Token Name**
  * **Symbol**
  * **Premint Amount**
  * Additional contract functionality.

**4. Compile the Contract**

* Once you have configured the settings and edited the code:
  * Click the **Compile** button to generate the bytecode and ABI (Application Binary Interface).
  * A progress indicator will show the compilation status.
* **Successful Compilation**:
  * If the contract compiles successfully, the interface will display the output.
  * Errors or warnings will be highlighted in the editor for easy debugging.


---

# 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://qubetics.gitbook.io/qubetics-docs/getting-started/qubeqode-basic-user-guide/compile.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.
