> 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/deploy.md).

# Deploy

The **Deploy Tab** simplifies the deployment process for smart contracts, making it user-friendly and efficient. Here's how to navigate and use this section:

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

## **Step-by-Step Guide**

**Step 1: Connect MetaMask**\
Establishes a secure connection between your MetaMask wallet and QubeCode for seamless deployment. Click the **"Connect With MetaMask"** button to link your wallet. Ensure that MetaMask is installed in your browser and you are logged in.

**Step 2: Compile Your Contract**

* Ensure your contract is error-free and compiled successfully in the **Compile Tab** before proceeding to deployment.

**Step 3: Deploy the Contract**

* Once connected to MetaMask, click the **Deploy** button. Confirm the transaction in MetaMask to initiate deployment.
* Wait for the deployment process to complete. A transaction hash will be generated, and the **Contract Address** field will populate with the address.

*<mark style="color:red;">**Note:  Ensure that your MetaMask wallet has sufficient funds for gas fees.**</mark>*

**Step 4: Verify and Publish**

* Click the **Verify & Publish** button after deployment. This action validates your contract’s source code and publishes within QubeQode and user don't need to verify the contract on TICSScan, allowing users to interact with and review the contract within QubeQode.

#### **Tips for Using the Deploying contract:**

* **Check Gas Fees**: Always ensure your wallet has enough funds to cover gas fees for deployment.
* **Network Selection**: Double-check that the selected network in MetaMask matches the intended deployment network.
* **Save the Address**: After deployment, save your contract address for future reference or integration.


---

# 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/deploy.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.
