# Deploy contracts using Remix

This article shows how to deploy smart contract into smartBCH testnet using Remix IDE.

Step 0, add smartBCH testnet into MetaMask. You can find smartBCH testnet configuration on [chainlist](https://chainlist.org/en):

![chainlist](/files/M8GtYOfDvUw4ZQwh4jsI)

Step 1, open [Remix IDE](http://remix.ethereum.org/) in your browser:

![remix](/files/-MZC0mUdoxQTZpbsBOwa)

Step 2, chose an environment. We can use MetaMask by selecting "Injected Web3" or connect to node directly by selecting "Web3 Provider". Select "Injected Web3" to connect to MetaMask:

![remix-metamask-connect.png](/files/-MZC0mUf--fovLMjHzg-)

Step 3, create and compile your smart contract. We use Remix's Storage demo as example:

![remix-contract](/files/-MZC0mUgjyI3Ltd0kD4-)

Compile your smart contract:

![image-20210414163154021](/files/-MZC0mUhJl4M5SaOQixQ)

Step 4, deploy compiled smart contract by clicking "Deploy" button:

![image-20210414163757696](/files/-MZC0mUiizDzUqHPYqoz)

Click "Confirm" button on MetaMask popup window:

![remix-metamask-deploy2](/files/-MZC0mUjpxE-07I3B20U)


---

# 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.smartbch.org/smartbch/developers-guide/deploy-contract-using-remix.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.
