HOW TO DEPLOY SMART CONTRACT

In this guide you will learn how to write, compile and deploy EVM-based smart contracts. We will use such indispensable assistants in the world of WEB 3 as REMIX IDE and MetaMask.

* What is REMIX IDE?

Remix is an open-source web-based Integrated Development Environment (IDE) for developing smart contracts using the Solidity programming language. It provides a user-friendly interface for writing, testing, debugging, and deploying smart contracts on various blockchain networks such as Ethereum, Binance Smart Chain, and more

* What is MetaMask?

MetaMask is a popular and established browser extension which functions as a cryptocurrency wallet that connects to the Ethereum blockchain. MetaMask allows users to interact with the Ethereum ecosystem, which hosts a vast universe of decentralized applications (Dapps), without having to download the entire blockchain on their device.
LET'S START ⇩

eth honeypot token, base honeypot token, erc-20 honeypot token, bsc honeypot token

01 Installing REMIX IDE & MetaMask

— Install the MetaMask Wallet on your computer. Сreate your own wallet / account.
— Open REMIX IDE in your browser. This application does not require registration.
— Connect MetaMask & Remix in a few steps:
1. Go to Remix IDE
2. Click to MetaMask Icon in your browser extensions / plugins.
3. Click the "Not connected" button and connect it.
Your wallet is now connected to REMIX IDO. You can connect several wallets.

02 Preparation and Compilation of a Smart Contract

CAUTION: In some of our contract codes, at this stage you need to CUSTOMIZE YOUR TOKEN (Name, Symbol, etc.). And only then start compilation.
Check the page of the contract you have chosen for all the information!
— Back to Remix and create new file (in the File Explorer section)
— Name the new file as you wish. Don't forget to insert .sol after the name.
Example: TokenName.sol
Now you have the space to edit and write code. It's on the right.
— Copy and paste the code into the space.
You can find smart contract codes in our library.
CAUTION: Do not attempt to change any code or else it won't work
CONTRACTS
— Go to Solidity Compiler
— Select the compiler version that matches your smart contract.
At the beginning of each contract code there is a line "pragma solidity".
After this line there is a version of the compiler that will fit your contract.
— Click "Compile"
If the compilation was successful, a green check mark will appear next to the compiler icon. ✅
"Compiling a smart contract involves using the contract's source code to generate its bytecode and the contract Application Binary Interface (ABI). The Ethereum Virtual Machine (EVM) executes the bytecode to understand and execute the smart contract."
At this point, you have successfully compiled your smart contract.

03 Deploying a smart contract.

Do not change other settings!
— Back to Remix and create new file (in the File Explorer section)
— Go to "Deploy & Run Transactions"
— In the "Environment" parameter, select MetaMask, since we are using the MetaMask wallet.
— Make sure that in the "Account" line it is your account that you linked to Remix in the first stages.
— In the "Contract" line, select TokenName
Our smart contracts have several options for customizing tokens (Name, Symbol, etc.). A contract can have two settings options before deploying.
— See which option you have - 1 or 2.
CAUTION: If you don’t have anything after the “Deploy” button, then use the first settings option to customize the token, and then just click “Deploy”.
01 Token customization (Name, symbol, etc.) for the first settings option.
— Find these lines in the smart contract code.
Name - full name of your coin.
Write the token name inside quotes "XXXXX"
Example: "Dogecoin"

Symbol - short name of your token (symbol).
Write the token symbol inside quotes "XXXXX"
Example: "DOGE"

TotalSupply - total number of tokens that will be in circulation.
If your decimals are 18 (recommended), then after you have chosen your total supply number you should write 18 more zeros at the end.
Example:
You total number of tokens is 1000000.
1000000 + 18 zeros = 1000000000000000000000000.
So you must write in the totalSupply column - 1000000000000000000000000.

Decimals - 18 (recommended to avoid errors).
— Customize the name, symbol, and more of your token.
— Go to Solidity Compiler
Compile the smart contract with the new settings.
— Go back to Deploy & Run Transactions.
— Insert the wallet address of the contract owner (your address) into the "Deploy" column.
Click "Deploy"
02 Token customization (Name, symbol, etc.) for the second settings option.
— On "Contract" section, select TokenName as contract.
— Next, click the little triangle as below to open token setting
Name - full name of your coin.
Write the token name inside quotes "XXXXX"
Example: "Dogecoin"

Symbol - short name of your token (symbol).
Write the token symbol inside quotes "XXXXX"
Example: "DOGE"

Decimals - 18 (recommended to avoid errors).

TotalSupply - total number of tokens that will be in circulation.
If you want to have 1000000 tokens, just write there 1000000.
— Customize the name, symbol, and more of your token.
Click "transact"
We remind you that you need to hold a certain number of tokens of the network in which you are deploying the contract in order to pay for gas fees.
In the blockchain Ethereum, the native token is Ethereum.
In Binance Smart Chain, the native token is BNB.
And so on.
— Click on "confirm" on the transaction on your MetaMask extensions / plugin.
If nothing happen there, you need to connect MetaMask wallet to REMIX IDE..
Now you have sent a transaction to deploy your smart contract!
When it is completed, your Token Contract will appear on the blockchain.
Gas fees may vary, depending on the strength of the blockchain network in which you are deploying the contract.
Now your tokens are in the wallet from which you deployed the contract.
HOW TO IMPORT TOKENS TO METAMASK
In the activity history of your wallet, you can find the smart contract deployment transaction. The transaction hash will contain all the data: smart contract address, how much was paid for gas fee, time, etc.
— Go to MetaMask
— Click on "Activity"
— Сlick on the Contract deployment (transaction)
— Click view on Block Explorer
DONE! You have deployed your own smart contract! Congratulations!