# Deploy Smart Contracts

{% hint style="warning" %}
This functionality is currently disabled in the Brian App due to getting an update to reflect the latest API changes.&#x20;

You can still access it via our APIs!
{% endhint %}

The **Deploy Smart Contracts** feature allows users to generate, compile, deploy, and interact with smart contracts by prompting in English.

Try something like `"write an ERC20 named Test with symbol TST and supply 100000"`.

## How to deploy a Smart Contract

1\) Prompt the description of a smart contract you'd like to generate

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

2\) Brian will generate the solidity smart contract code

<figure><img src="/files/98Uol08jMd76iECO72LI" alt=""><figcaption></figcaption></figure>

3\) Click the edit button to manually edit the smart contract code

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

4\) Click the Explain this button to have an AI text generated explaining the smart contract code

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

5\) Click the Deploy button to compile and deploy the smart contract generated

![](/files/tYHX28jGPrwh08pmqVom)

## How to interact with a deployed Smart Contract

1\) Go to **Deployed Smart Contracts** on the **Settings** page. Here you can find all the smart contract deployed through Brian

<figure><img src="/files/6EHL5LB21EkxnH5BSlku" alt=""><figcaption></figcaption></figure>

2\) Click on the **Interact** button and the Interaction page will open

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

3\) Clicking on the **info button (i)** you can see the info of the deployed smart contract you're interacting with such as the methods available in the contract, the ABI and the smart contract code

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

4\) Prompt in English how you want to interact with the smart contract

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

4\) Click the Execute button to execute the transaction


---

# 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.brianknows.org/brian-app/deploy-smart-contracts.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.
