How to create a honeypot token

Part 1. Using Metamask and Remix Ethereum to create a honeypot token

1) Go to the website metamask
Register your wallet and install the extension in your browser

instruction image instruction image

2) Go to the website Remix Ethereum
Click "Create a new file"

instruction image instruction image

Name the file by any name, be sure to add .sol at the end, example:
ether.sol

instruction image instruction image

3) Copy our Honeypot code to create a token here
Paste the code:

instruction image instruction image instruction image instruction image

4) Click on the icon on the left side of the panel as shown below:

instruction image instruction image

Next you need to select the compiler, as shown below: 0.8.20...

instruction image instruction image

Then click the "Compile" button

instruction image instruction image

5) After successfully compiling the code, click on the icon on the left side of the panel as shown below:

instruction image instruction image

Select "Injected Provider – MetaMask", since we are using this wallet:

instruction image instruction image

Set up the network in the Metamask wallet according to the desired network for issuing tokens. You can issue tokens on the Ethereum Mainnet, Binance Smart Chain, Base Mainnet and any others. We chose Binance Smart Chain because it has low commissions.

You can read the instructions for changing the network in the Metamask wallet here

In the Metamask pop-up window, confirm connecting your wallet to the site:

instruction image instruction image

6) In the "Contract" section, select the contract __Token__ - the name of your file, as shown below:

instruction image instruction image

Next, click on the arrow:
This step is necessary to configure the token

instruction image instruction image

Enter the parameters of the token to be created:
_TOKENNAME – full name of the token
_TOKENSYMBOL – abbreviated name of the token
_MINTAMOUNT – number of tokens issued

instruction image instruction image

7) After completing the token setup, click the "transact" button:

instruction image instruction image

In the Metamask pop-up window, confirm the transaction:
Make sure Metamask is connected to Remix IDE

instruction image instruction image

8) Your token has been created, now you can add it to your wallet.
To do this, go to your Metamask wallet:

instruction image instruction image

Next, go to the "Activity" section and click "Contract deployment":

instruction image instruction image

Click "View on block explorer":

instruction image instruction image

Copy the contract address of your token, click on the button as shown below:

instruction image instruction image

9) Return to Metamask
Go to the "Tokens" section and click "Import tokens":

instruction image instruction image

Paste the copied contract address, click "Next" and then "Import":

instruction image instruction image

Great! Your tokens have been added to your wallet.
This method of creating tokens works in any other networks.

Part 2. Listing the token on Uniswap or PancakeSwap and enabling the "Honeypot token" mode

Contract verification

Before adding liquidity, we need to verify the smart contract so that investors do not shy away from buying our token. A verified smart contract significantly increases the popularity of the token. Also, if we have verified the smart contract, we can manage the contract functions via basescan, etherscan or bscscan depending on the network on which you issued the tokens.

1) Go to the Metamask wallet, go to the "Activity" section, click "Contract Deployment".

instruction image instruction image

2) Click "View on block explorer":

instruction image instruction image

3) Click on the blue contract address of your token:

instruction image instruction image

4) On this page, click "Contract", then click "Verify and Publish":

instruction image instruction image

5) Next, set the settings as shown below. After that, click "Continue":

instruction image instruction image

6) Go back to the source code of the smart contract, copy it completely and paste it here.
You can also copy the compiled code from Remix Ethereum.

*Changes to the code are not allowed, as you will not be able to pass verification. You must paste the same code that you compiled into Remix Ethereum.*
Source code: honeypot token

instruction image instruction image instruction image instruction image

7) Go through verification, click "Verify and Publish"

instruction image instruction image

8) You should see a success message as shown below. If you have a different message, carefully check all the steps you followed to make sure they are correct.

instruction image instruction image

Congratulations! Your contract has been successfully verified, now we can move on to adding liquidity.

Adding liquidity

Before enabling the "Honeypot Token" mode and preventing other people from selling, we need to add liquidity in Uniswap (Ethereum/Base Network) or PancakeSwap (Binance Smart Chain Network).

After adding liquidity, we can get the address of the liquidity pool and subsequently, through the "setOptions" function, prohibit the sale of tokens.
*With this approach, no arbitrage bots or people will be able to sell your tokens on PancakeSwap and Uniswap, also the token will not be scanned by honeypot detectors until you enable Honeypot mode.*
At its core, adding liquidity is listing your token on DEX exchanges.

If you issued tokens ERC-20 on the Ethereum Mainnet/Base Mainnet network, see the instructions for adding liquidity in Uniswap: instructions

If you issued tokens BEP-20 on the BNB Chain network, see the instructions for adding liquidity in PancakeSwap: instructions

Once you add liquidity to Uniswap or PancakeSwap, your token is automatically listed on the decentralized exchanges coinmarketcap and dexscreener.

On CoinMarketCap you can see your token’s chart and trading history: coinmarketcap
Simple insert the address of your token into the search bar of the site and get information.

Enabling the "Honeypot token" mode

After we have added liquidity to the token, we can proceed to the stage of prohibiting the sale of tokens to other people

To do this, go to your Metamask wallet
Go to the "Activity" section and click on the last operation to add liquidity "Add Liquidity ETH":

instruction image instruction image

Next, click "View on block explorer":

instruction image instruction image

Next, go to the "Logs" section:

instruction image instruction image

Copy the liquidity pool address:

instruction image instruction image

After this we need to return to Remix Ethereum
What should I do if you have closed the Ethereum Remix? Go to the instructions
Expand the functions of the contract:

instruction image instruction image

Find the "setOptions" function, paste the copied address there:

instruction image instruction image

After adding the address, expand the "setOptions" function and click the "Transact" button:

instruction image instruction image

Confirm the transaction in the Metamask pop-up window:

instruction image instruction image

Great, now only you can sell your token! Other people will not be able to sell this token after purchase! When trying to sell tokens to other buyers, an error will occur:

instruction image

Now we can turn on and off the "Honeypot token" mode by pressing buttons

In order to turn off the "Honeypot token" mode, we need to find the "deinitialize" function and click on it:

instruction image instruction image

After this, confirm the transaction in the Metamask pop-up window:

instruction image instruction image

The "Honeypot token" mode was successfully disabled, now we can enable it back

In order to enable back the "Honeypot token" mode, we need to find the "initialize" function and click on it:
After that, confirm the transaction in the Metamask pop-up window

instruction image instruction image

The advantage of this approach is that you can enable the “Honeypot token” mode at any time convenient for you. The unsuspecting investor will no longer be able to sell the tokens. You can also turn on and off the "Honeypot token" mode at any time.

Adding and removing addresses from the white list

An address added to the white list when the "Honeypot token" mode is enabled can sell tokens just like you. You can add and remove addresses from the white list.

In order to add an address to the whitelist, you need to find the "viewHolders" function and insert the address of the wallet that you want to allow to sell tokens:

instruction image instruction image

After adding the address, expand the "viewHolders" function, click the "Transact" button and confirm the transaction in the Metamask pop-up window:

instruction image instruction image

In order to remove an address from the white list, you need to find the "getHolders" function and insert the address of the wallet that you want to prohibit from selling tokens:

instruction image instruction image

After you have inserted the address, expand the "getHolders" function, click the "Transact" button and confirm the transaction in the Metamask pop-up window:

instruction image instruction image

Please remember that these articles are for educational purposes!

To add or remove liquidity that always belongs to you, you can read the instructions:

For any questions or individual orders, please write to: https://t.me/VictorPinard

We can develop a custom smart contract for you according to your requirements.