---
title: "Getting Started with Solidity on Replit"
description: "Replit's Solidity template lets you compile and deploy smart contracts to a built-in Replit Testnet from the browser, using MetaMask as the wallet and faucet-provided test ETH."
url: "https://swe.quest/articles/getting-started-with-solidity-on-replit-a94331769f018ab5"
canonical: "https://replit.com/blog/getting-started-with-solidity-on-replit"
source: "Replit"
published: "2022-02-18"
difficulty: "medium"
kind: "How-to"
reading_minutes: 7
tags: ["developer-tools"]
---

# Getting Started with Solidity on Replit

A post on [Replit](https://swe.quest/sources/replit.md), published 2022-02-18, 7 min read, How-to. Original: [https://replit.com/blog/getting-started-with-solidity-on-replit](https://replit.com/blog/getting-started-with-solidity-on-replit)

## Summary

Replit's Solidity template lets you compile and deploy smart contracts to a built-in Replit Testnet from the browser, using MetaMask as the wallet and faucet-provided test ETH. The walkthrough deploys a MathTest calculator contract, then extends it. Because deployed contracts are immutable, adding functions means redeploying a new contract rather than updating the old one. A SimpleStorage contract illustrates the difference between view functions, which only read state and need no gas, and state-modifying functions, which cost gas.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Keywords

Solidity, Replit, MetaMask, Ethereum, smart contracts

## Related posts

- [Introducing the Replit Desktop App](https://swe.quest/articles/introducing-the-replit-desktop-app-991be13f80ab4152.md): Replit · 2023-09-14 · Medium · 6 min read · Developer tools, JavaScript, CI/CD, Deployment
  Replit now ships a native desktop app for macOS, Windows and Linux, centered on the IDE workspace, with multiple windows, editor shortcuts the browser would intercept (Cmd/Ctrl+T/W), deep linking and native Chromium devtools.
- [AI Agent Code Execution API](https://swe.quest/articles/ai-agent-code-execution-api-8f63888d403b81a8.md): Replit · 2023-09-19 · Medium · 4 min read · AI agents, Sandboxing & isolation, LLMs, Serverless, Python
  Replit offers sandboxed code execution so LLM agents can run untrusted generated code, contrasting a stateless model (like Bard's implicit code execution for math) with a stateful, session-long project environment (like ChatGPT).
- [How to Write Code Without Having to Read It](https://swe.quest/articles/how-to-write-code-without-having-to-read-it-1700fbc56278687d.md): Shopify Engineering · 2022-10-11 · Medium · 12 min read · Type systems, Testing, Refactoring & migrations, TypeScript, Developer productivity
  Engineers can safely change unfamiliar code with minimal reading by letting the compiler, linter and unit tests guide them: locate the entrypoint via user-visible strings (or git bisect for regressions), make the breaking change at the leaf component, then climb the callstack following build errors and sweep back down via lint errors, exhaustive switches and test failures.
- [Getting Started with Rust on Replit](https://swe.quest/articles/getting-started-with-rust-on-replit-af5d2f428a86b560.md): Replit · 2022-01-21 · Medium · 13 min read · Rust, Developer tools
  Replit's browser IDE can host a ready-made Rust workspace, demonstrated here with a small Cargo project built in one.
- [Render, Remix, and Strapi: Let's Build a Productivity Tips App](https://swe.quest/articles/render-remix-and-strapi-let-s-build-a-productivity-tips-app-84639accd5384502.md): Render · 2022-04-01 · Medium · 7 min read · Frontend, JavaScript, Deployment, React
  A walkthrough of building a team Productivity Tips app with Strapi as a headless CMS back end and Remix as the front end, then deploying both to Render with a Blueprint (render.yaml).

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
