# Using Raplit

[Replit](https://docs.replit.com/tutorials/01-introduction-to-the-repl-it-ide) is a coding platform that allows you to write code and host apps. Replit supports [Solidity programming language](https://replit.com/@replit/Solidity-starter-beta?v=1) so it provides all of the features and functionality for Web3 developers to create and deploy smart contracts.

This article explains how to build and deploy a solidity smart contract on rupto using [Replit IDE](https://replit.com/signup) and [Replit Solidity development template (Solidity starter beta)](https://replit.com/@replit/Solidity-starter-beta?v=1)

**NOTE:**

For additional examples about Solidity with Replit, you can read the article [**Get started with Replit!**](https://blog.replit.com/solidity) or check [**Replit Solidity documentation and Escrow contract tutorial**](https://docs.replit.com/tutorials/33-escrow-contract-with-solidity)

### Prerequisites <a href="#prerequisites" id="prerequisites"></a>

You do not need any local environment to deploy your solidity smart contract on **Rupto Chain** using Replit.

You need a browser-based web3 wallet to interact with the **Rupto Chain Testnet** and deployed contracts. If you are already using **MetaMask**, it is recommended to create a new account for testing with Replit. You can do this from the account menu, which appears when you click on the account avatar in the top right corner of **MetaMask** interface.

You must setup all of the following Prerequisites to be able to deploy your solidity smart contract on Rupto Chain:

* Create a Replit account
* Download Metamask wallet
* Configure Rupto on Metamask
* Get testnet tokens

### Working with a Repl <a href="#working-with-a-repl" id="working-with-a-repl"></a>

Every Repl that you create is a fully functional development and production environment. Follow the steps to create a solidity starter Replit:

* [Login](https://replit.com/login) or [create an account](https://replit.com/signup). After creating your [Replit account](https://docs.replit.com/tutorials/01-introduction-to-the-repl-it-ide), your home screen will include a dashboard where you can view, create projects, and manage your account
* Once logged in, create a Solidity starter repl, Select **+ Create Repl** from the left panel or **+** in the top right corner of the screen
* Select the [**Solidity starter (beta)**](https://replit.com/@replit/Solidity-starter-beta?v=1) template and give your project a title
* Click on **+ Create Repl** to create your project

**NOTE:**

The Solidity starter repl comes with a friendly web interface, built using the [**web3 Ethereum JavaScript API**](https://web3js.readthedocs.io/en/v1.5.2/), which you can use to deploy and interact with our contracts. We will deploy to Replit’s testnet, a custom version of the Ethereum blockchain managed by Replit and optimised for testing.

### Deploy on Rupto Chain <a href="#deploy-on-polygon" id="deploy-on-polygon"></a>

Make sure that you have followed the list of Prerequisites above so that you are ready to deploy and interact with your smart contract:

* Click on **Run** (at the Top) to install all relevant packages, start up the contract deployment UI
* Connect your MetaMask wallet to the web interface and switch to the **Rupto Chain Testnet**
* Click on **Connect wallet**, select your account, then choose Connect
* From the Drop-down list, Select your contract that you want to deploy
* Click on **Deploy**
* Approve the MetaMask pop-up that appears to confirm the transaction from your wallet to deploy your contract
* Navigate to **ruptoscan** to search for your account, view your deployed contract, and copy your account address

Once your contract have been deployed, it will show up as expandable boxes below the drop-down box. Expand it and take a look at all the different functions available. You can now interact with your contract using the provided user interface or from a sharable URL shown on the interface.

### Publish to Replit​ <a href="#publish-to-replit" id="publish-to-replit"></a>

Replit allows you to publish your projects to a personal profile. After publishing, projects will show up on your spotlight page for others to explore, interact with, clone, and collaborate.

Follow the steps to publish to Replit:

* Select the project title at the top of the screen.
* Complete your project name and description and click Publish.

### External resources <a href="#external-resources" id="external-resources"></a>

* [Build an escrow contract on the Ethereum blockchain with Solidity and Replit](https://docs.replit.com/tutorials/33-escrow-contract-with-solidity)


---

# 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://rupto.gitbook.io/rupto-documentation/deploying-on-ruptochain/using-raplit.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.
