How to Create a Honeypot Token

Learn how to create a version 2.0 honeypot token on the ETH or BNB network.

Using Rabby Wallet and Remix Ethereum to create a honeypot token

  1. 01

    Installing Rabby Wallet

    Install the Rabby Wallet extension.

    Go to the official website rabby.io and select your browser.

    How to Create a Honeypot Token, step 1
  2. 02

    Installing Rabby Wallet

    Open Rabby Wallet and click 'Receive'.

    How to Create a Honeypot Token, step 2
  3. 03

    Installing Rabby Wallet

    Copy your wallet address and fund it in the network where you want to issue the token.

    Using this guide, you can create a token on BNB Smart Chain, Ethereum, Base, Arbitrum, and other EVM networks.

    Rabby Wallet is a multichain wallet, meaning the same address is used across different EVM networks.

    You can view the list of available networks by clicking 'All EVM Chains'.

    How to Create a Honeypot Token, step 3
  4. 04

    Creating the smart contract file

    Go to Remix Ethereum to deploy the smart contract.

    Make sure you are on the official Remix domain.

    Click '+ Create', then select '+ New File'.

    How to Create a Honeypot Token, step 4
  5. 05

    Creating the smart contract file

    Enter a file name. Make sure to add '.sol' at the end, for example: 'ether.sol'

    How to Create a Honeypot Token, step 5
  6. 06

    Creating the smart contract file

    Copy the code of the honeypot token smart contract.

    Paste the code into the file you just created:

    How to Create a Honeypot Token, step 6
  7. 07

    Compiling the code

    Go to the 'Solidity Compiler' section and click the 'Compile' button.

    How to Create a Honeypot Token, step 7
  8. 08

    Deploying the smart contract | Creating the token

    Go to the 'Deploy & Run Transactions' section.

    How to Create a Honeypot Token, step 8
  9. 09

    Deploying the smart contract | Creating the token

    Expand the 'Remix VM' dropdown and select 'Browser Extension'.

    How to Create a Honeypot Token, step 9
  10. 10

    Deploying the smart contract | Creating the token

    Click 'Select' and choose 'Rabby Wallet'.

    How to Create a Honeypot Token, step 10
  11. 11

    Deploying the smart contract | Creating the token

    Confirm the connection of your wallet to the site in the Rabby Wallet pop-up window.

    How to Create a Honeypot Token, step 11
  12. 12

    Deploying the smart contract | Creating the token

    Open Rabby Wallet.

    Click on the Ethereum network dropdown list.

    How to Create a Honeypot Token, step 12
  13. 13

    Deploying the smart contract | Creating the token

    Select the network for issuing the token.

    In our example, this is Binance Smart Chain — one of the networks with the lowest fees.

    How to Create a Honeypot Token, step 13
  14. 14

    Deploying the smart contract | Creating the token

    Make sure that after selecting the network, the corresponding currency is displayed in Remix.

    For Binance Smart Chain, this is BNB.

    How to Create a Honeypot Token, step 14
  15. 15

    Deploying the smart contract | Creating the token

    In the 'Deploy' section, expand the contract dropdown list.

    How to Create a Honeypot Token, step 15
  16. 16

    Deploying the smart contract | Creating the token

    In the contract list, scroll down and select '__Token__'.

    How to Create a Honeypot Token, step 16
  17. 17

    Deploying the smart contract | Creating the token

    Enter the token parameters and click 'Deploy':

    _tokenName — the full name of the token, e.g., Pixels

    _tokenSymbol — the short token symbol, e.g., PIX

    _mintAmount — the amount of tokens to be minted, e.g., 1000000

    How to Create a Honeypot Token, step 17
  18. 18

    Deploying the smart contract | Creating the token

    Confirm the transaction in the Rabby Wallet pop-up window.

    How to Create a Honeypot Token, step 18
  19. 19

    Obtaining the token address

    Open Rabby Wallet and go to the 'Transactions' section.

    How to Create a Honeypot Token, step 19
  20. 20

    Obtaining the token address

    Find the latest 'Deploy a Contract' transaction and click the address on the right.

    How to Create a Honeypot Token, step 20
  21. 21

    Obtaining the token address

    Copy the address indicated by the green checkmark and 'Created' status. This is your token address.

    Be sure to save it — you will need it later.

    How to Create a Honeypot Token, step 21

Listing the token on Uniswap or PancakeSwap and enabling 'Honeypot token' mode

  1. 22

    Adding liquidity

    If you deployed a BEP-20 token on Binance Smart Chain, follow the guide for adding liquidity on PancakeSwap.

    If you deployed an ERC-20 token on Ethereum / Base / Arbitrum, follow the guide for adding liquidity on Uniswap.

  2. 23

    Activating Honeypot mode (setOptions)

    Open Rabby Wallet and go to the 'Transactions' section.

    How to Create a Honeypot Token, step 23
  3. 24

    Activating Honeypot mode (setOptions)

    Find the latest 'Add Liquidity' transaction and click the address on the right.

    How to Create a Honeypot Token, step 24
  4. 25

    Activating Honeypot mode (setOptions)

    Copy the address indicated by the green checkmark and 'Created' status. This is your liquidity pool address.

    Be sure to save it — you will need it to enable 'Honeypot' mode.

    How to Create a Honeypot Token, step 25
  5. 26

    Activating Honeypot mode (setOptions)

    Return to Remix and expand the function interface of your smart contract.

    How to Create a Honeypot Token, step 26
  6. 27

    Activating Honeypot mode (setOptions)

    Find and select the 'setOptions' function.

    How to Create a Honeypot Token, step 27
  7. 28

    Activating Honeypot mode (setOptions)

    Paste the liquidity pool address and click the 'Transact' button.

    How to Create a Honeypot Token, step 28
  8. 29

    Activating Honeypot mode (setOptions)

    Confirm the transaction in the Rabby Wallet pop-up window. After this, Honeypot mode will be activated — selling the token will be prohibited.

    The 'setOptions' function only needs to be activated once. Afterwards, you can re-enable or disable selling using the 'deinitialize' and 'initialize' functions. You can learn more about this in the guide below.

    How to Create a Honeypot Token, step 29
  9. 30

    Disabling Honeypot mode (deinitialize)

    Expand the function interface of your smart contract.

    How to Create a Honeypot Token, step 30
  10. 31

    Disabling Honeypot mode (deinitialize)

    Find and select the 'deinitialize' function.

    How to Create a Honeypot Token, step 31
  11. 32

    Disabling Honeypot mode (deinitialize)

    Click 'Transact' and confirm the transaction in the Rabby Wallet pop-up window.

    After this, selling tokens will be available again.

    How to Create a Honeypot Token, step 32
  12. 33

    Re-enabling Honeypot mode (initialize)

    Expand the function interface of your smart contract.

    How to Create a Honeypot Token, step 33
  13. 34

    Re-enabling Honeypot mode (initialize)

    Find and select the 'initialize' function.

    How to Create a Honeypot Token, step 34
  14. 35

    Re-enabling Honeypot mode (initialize)

    Click 'Transact' and confirm the transaction in the Rabby Wallet pop-up window.

    After this, selling tokens will be prohibited again.

    How to Create a Honeypot Token, step 35
  15. 36

    Adding to the allowlist (viewHolders)

    When 'Honeypot' mode is enabled, selling can be allowed for specific addresses.

    To do this, find and select the 'viewHolders' function.

    How to Create a Honeypot Token, step 36
  16. 37

    Adding to the allowlist (viewHolders)

    Paste the wallet address to which you want to allow selling the token.

    Then click 'Transact' and confirm the transaction in the Rabby Wallet pop-up window.

    After this, the wallet will be able to sell tokens even when 'Honeypot' mode is enabled.

    How to Create a Honeypot Token, step 37
  17. 38

    Removing from the allowlist (getHolders)

    To remove a wallet from the allowlist, find and select the 'getHolders' function.

    How to Create a Honeypot Token, step 38
  18. 39

    Removing from the allowlist (getHolders)

    Paste the wallet address and click 'Transact'.

    Then confirm the transaction in the Rabby Wallet pop-up window.

    After this, the wallet will no longer be able to sell tokens if 'Honeypot' mode was previously activated.

    How to Create a Honeypot Token, step 39
  19. 40

    Removing liquidity

    If you deployed a BEP-20 token on Binance Smart Chain, follow the guide for removing liquidity on PancakeSwap

    If you deployed an ERC-20 token on Ethereum / Base / Arbitrum, follow the guide for removing liquidity on Uniswap

Continue learning safely

Return to the instruction catalog or contact us about transparent smart-contract development.