# How to deploy a smart contract on Shardeum.

By [hoathoang19.bit](https://paragraph.com/@hoathoang19-bit) · 2023-03-19

---

In this article, you will learn how to deploy a smart contract on the Shardeum Sphinx testnet. If you’re brand new to Shardeum, make sure to try out the dapps and deploy a node first.

**Before we start:**

\- Make sure to add the _Shardeum Sphinx testnet_ to Metamask first.\\ You can add it from [here](https://docs.shardeum.org/Network/Endpoints#connect-wallet).

\- And claim faucets on their [Discord server](https://discord.gg/shardeum).\\ Go to the “faucet-1.1” channel and type `/faucet` and enter your wallet address.

![](https://storage.googleapis.com/papyrus_images/12e4c807c873c9f6307b7ea21ff548e04ff97a944f0049722fead59a2e26fe17.png)

**All set? Let’s begin the process then!**

First, go to Openzeppelin. Openzeppelin is a web-based application that allows developers to perform and automate smart contract operations in an easier & secure way.

[https://docs.openzeppelin.com/contracts/4.x/wizard](https://docs.openzeppelin.com/contracts/4.x/wizard)

Now give the name of your token, token symbol, and token supply.\\ Eg. Token name = Shardeum, Symbol= SHM, Premint= 10000000

And click on “Open in Remix” 👇🏻

![](https://storage.googleapis.com/papyrus_images/5ed7a9b5d4dacf9475b012ae30bcb2f5fc532420728b10d36b8cd06ee2f8d146.png)

This page will open 👇🏻

![](https://storage.googleapis.com/papyrus_images/9b9d103976da6618bdc37770d0755eaa72032b2ffaba4579b0fbc77554567cb1.png)

Go to the “Solidity Compiler” page (3rd option on the left)

And click on the “Compile contract” button 👇🏻

![](https://storage.googleapis.com/papyrus_images/7ed42be0d716e5e07f00072e0775c87308c415fc9c159b7df882dd5189caa894.png)

If there is no error, you’ll see a green check mark on the “Solidity Compiler” button 👇🏻

![](https://storage.googleapis.com/papyrus_images/759d9a198357c8e1d25b6ba85ec6181d4f3d96cce993f5935bb2c9d9e10c920b.png)

Now go to the “Deploy” page (4th option on the left)

\- Choose “Injected Provider” on the ENVIRONMENT option.

\- Once selected, a popup will appear to connect your Metamask wallet. (If you used Remix before, it will auto-detect your wallet, no need to connect again)

Now click on the “Deploy” button 👇🏻

![](https://storage.googleapis.com/papyrus_images/d8ac87241d3ea0c6f15b26fe69dfae97cac123e7565fbfb34de85c99b064fa5c.png)

A Metamask pop-up will appear to confirm the transaction. Just approve it!

Once the transaction is successful, you’ll see your deployed contract 👇🏻

![](https://storage.googleapis.com/papyrus_images/bbe06046c6739602c953710d045b422663bbf0733bd00c3c374a3d68b9ab3f7b.png)

Congrats!!! 🎉🚀 You’ve successfully deployed a contract on the Shardeum Sphinx testnet!!! This may come in handy later when Shardeum launches on mainnet and do their token airdrop!

* * *

**P.S.** If the transaction fails, try increasing the gas to 20 or even more. If the issue still remains, try after a few hours or days.

---

*Originally published on [hoathoang19.bit](https://paragraph.com/@hoathoang19-bit/how-to-deploy-a-smart-contract-on-shardeum)*
