How to deploy a contract in Prom Testnet?

Secuest
3 min readMay 1, 2024

--

My magnificent Prom tester frens.

It’s one of the hottest topics since the testnet launched : “How to deploy a contract in Prom Testnet?”

Let’s break it down together! Follow along as i step-by-step deploy a token on Prom Testnet.

Ready to dive in? Let’s go! 🧵👇

First, we need to make sure that our wallet application is on the Prom Testnet network as we will deploy our token to Prom Testnet, so go check it out!

If Prom Testnet is not added in Network’s, you can add it with the following information:

Network name: Prom Testnet

New RPC URL: https://testnet-rpc.prom.io/

Chain ID: 97072271

Currency symbol: PROM

Block explorer URL (Optional): https://testnet.promscan.io

Allright, if we’re sure about the network, let’s continue:

Now we are moving on @EthereumRemix and starting coding : https://remix.ethereum.org/

welcome to paradise:

Copy the following code to your file (DEGENToken = contract name, DEGEN = token name, DGN = ticker. don’t forget to change the contract name, token name and ticker of your token):

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.20;

import “@openzeppelin/contracts/token/ERC20/ERC20.sol”;

contract DEGENToken is ERC20 {

constructor(uint256 initialSupply) ERC20(“DEGENS”, “DGN”) {

_mint(msg.sender, initialSupply);

}

}

Compile step is next:

1- Go “Solidity compiler” tab.

2- select 0.8.20+commit.a1b79de6

3- open “Advanced Configurations”

4- select “Enable optimization”

5- write 200

6- click “Compile” (blue button)

and compile step is done, let’s continue.

and bingo! final step, deploy your token:

1- go “Deploy & run transactions” tab

2- select “Injected Provider” and connect your wallet (Make sure you’re on the Prom testnet network!)

3- write the supply of your token (the box to the right of deploy is where we will write supply. We write with decimal, I wrote 1000000000000000000000000000000)

4- and here we are! click “Deploy” button (orange one) and deploy your token!

It’s time to sign the Deploy txn! (Make sure you have Prom Testnet tokens in your wallet for the transaction.)

Click “Confirm” and the token deploy process will be completed.

and deployed our token to Prom Testnet, congrats frens!

How can i check the txn of the token i deployed?

go Prom testnet scanner: https://testnet.promscan.io/

search your wallet from where i marked.

You can check your deploy txn from the “Transactions” tab.

--

--

Responses (1)