How To Deploy Smart Contracts to the blockchain with Bunzz
Tags: blockchain, web3
Published: 2023-03-30 04:59:34

To write and deploy a smart contract, knowledge of programming languages like solidity and Rust is required. But if you do not know these languages or you do not want to go through the hassle of writing a smart contract, I have a solution for you.

In this tutorial, we will learn how to use [Bunzz](url) already created smart contracts and deploy it to the blockchain in 10 minutes.

**Prerequisite**
To follow up with this tutorial, you should have:

- Basic knowledge of the Blockchain

- [MetaMask](https://metamask.io/) wallet already installed in your browser

- Add and switch to [Polygon](https://wiki.polygon.technology/docs/develop/metamask/config-polygon-on-metamask/) network on your MetaMask wallet.

 

### **What is Bunzz?**

Bunzz is a software platform that provides smart contract services to users. They carry out the task of writing these smart contracts for you, and all you have to do is select the smart contract you want, and deploy it to the blockchain.




### **Steps in selecting and Deploying a smart contract with Bunzz**


1. **Sign up** with [Bunzz](https://www.bunzz.dev/)

![Bunzz signup/login page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8r0sh59xce3lwziozle4.png)





2.Click on **connect wallet** to connect your MetaMask wallet to Bunzz.  switch to the Polygon network on your MetaMask wallet.
![Bunzz console to create a Dapp](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/92o98862hayein9txqqo.png)



3.Click on **create Dapp**. Give your **Dapp **any name of your choice. Then click Next.


![Bunzz console](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ykaswdzhggy3ul6hz02b.png)


![an image showing ow to name a DAPP](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v9fko9fsqcfi14p8yyam.png)



4.Select **polygon Mumbai Testnet** as the network name. Then click **Next**. 
 Note: Because this is just a tutorial we will be deploying to Polygon Mumbai Testnet. But when you are building an actual Dapp, deploy it to Polygon Mainnet.

![an image showing the network name and Id page on Bunzz](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hckdoduwwxssxk2c5hym.png)

![an image showing hw to select a network ](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mjegkgr9fho67bddqort.png)



5.Go to **prepared templates**. 
You will see a list of already written templates/smart contracts awaiting deployment. 

![different templates available on Bunzz](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iyq2tcr4slsgcme6sivs.jpg)

 Note: To know more about all the functions available in the smart contract and to see the code. Click on the dropdown button 

![dropdown button that shows the functions and code of a particular template](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/copw751tpnhh7b9g8czi.jpg)



6.we will be using the first template named **simple Token**. Click on **use this template**. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x1rkfds5zhsmpikqjzyo.png)



7.Give your Token a name(any name of choice), and a unique symbol - if the token name is ‘JRocks Hospital Token’, then the symbol should be ‘JHT’. 

![setting a token name and symbol](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rkhrfjo6i4tgv3ff1zyl.png)



8.Before you deploy, you need to have enough tokens in your wallet, otherwise, your contract will not be deploy to the blockchain. Go to [polygon faucet](https://faucet.polygon.technology/) and get free Testnet to use for deployment.



9.Click on **deploy**. your MetaMask wallet will pop up on your screen or you to confirm the transaction.

![confirming a transaction on your MetaMask wallet](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/73jiyyuyp1849lkeh1ds.png)


10.click on **back to dashboard**

![after deployment is completed and successful](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nh81hh18zhdkcgyd1gwz.png)




11.Copy your **contract ABI**  and **contract address.**

![where to get your ABI and contract address](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m1n09vvfneu3eu6caqpi.jpg)



12.To verify your transaction, paste your contract address on [PolygonScan Testnet](https://mumbai.polygonscan.com/address/0x06e78A9205151802DC88FE095F81F15dB199eD54) 


Congratulations🥳! you just deployed a smart contract without writing it yourself.

**what next?**
In our next tutorial, we will learn how to use ethers.js to interact with our smart contract and build a real life Application. Ensure you keep your ABI and contract Address from the smart contract you just deployed because you will need it.