# 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="https://2619509982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdTchFf41KFpbOQdCzUvt%2Fuploads%2F9j1gqnlnO7sx87n7TleU%2Fimage.png?alt=media&#x26;token=e5df7d4c-b868-410e-a352-a597aaa87b44" alt=""><figcaption></figcaption></figure>

2\) Brian will generate the solidity smart contract code

<figure><img src="https://2619509982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdTchFf41KFpbOQdCzUvt%2Fuploads%2F6EFbGIFacFCNNFqolrRt%2Fimage.png?alt=media&#x26;token=318768f7-893b-44fe-bc57-93e322fdb94e" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2619509982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdTchFf41KFpbOQdCzUvt%2Fuploads%2FC8AADWaM8SEERLP9CGik%2Fimage.png?alt=media&#x26;token=dab21339-e4da-4763-a79c-832dfa2e557c" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2619509982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdTchFf41KFpbOQdCzUvt%2Fuploads%2FYHqCwSAcvL5foZPQqTr8%2Fimage.png?alt=media&#x26;token=981fc316-eea1-471a-b50b-153eb14c256a" alt=""><figcaption></figcaption></figure>

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

![](https://2619509982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdTchFf41KFpbOQdCzUvt%2Fuploads%2FTks90TEoInVkMBf5CLQ6%2Fimage.png?alt=media\&token=a52a4537-2b0f-4fed-a180-84eef8215e9f)

## 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="https://2619509982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdTchFf41KFpbOQdCzUvt%2Fuploads%2FGRiI9sH80hmNTxTNuog1%2Fimage.png?alt=media&#x26;token=9639f6d9-ae4f-48d9-8ef3-f47096fc4045" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2619509982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdTchFf41KFpbOQdCzUvt%2Fuploads%2FQnPwIhXCgURniqMYSreT%2Fimage.png?alt=media&#x26;token=7437d90d-8f19-4001-879e-929c4dcbffa9" 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="https://2619509982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdTchFf41KFpbOQdCzUvt%2Fuploads%2Fwn63Ki5MIKwOBKG8uqEy%2Fimage.png?alt=media&#x26;token=4472f2c1-d9f9-4d94-a7bb-a8bf99077abd" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2619509982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdTchFf41KFpbOQdCzUvt%2Fuploads%2FdaXvTkY3n5q5iUsRQyGm%2Fimage.png?alt=media&#x26;token=4a38c84e-35ad-4cf3-9b9a-7bc7974cda53" alt=""><figcaption></figcaption></figure>

4\) Click the Execute button to execute the transaction
