https://github.com/0xdaebak/honeypotchecker
⚱️ 💊 🔐 #1st Time On Internet - Check If Token is honeypot or not 🥇
https://github.com/0xdaebak/honeypotchecker
binance binance-smart-chain bnb-chain bsc honeypot honeypot-detector honeypots solidity
Last synced: 11 months ago
JSON representation
⚱️ 💊 🔐 #1st Time On Internet - Check If Token is honeypot or not 🥇
- Host: GitHub
- URL: https://github.com/0xdaebak/honeypotchecker
- Owner: 0xdaebak
- License: mit
- Created: 2022-09-14T13:42:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-12T04:29:38.000Z (over 3 years ago)
- Last Synced: 2025-07-13T14:41:22.116Z (11 months ago)
- Topics: binance, binance-smart-chain, bnb-chain, bsc, honeypot, honeypot-detector, honeypots, solidity
- Language: Solidity
- Homepage:
- Size: 15.6 KB
- Stars: 41
- Watchers: 1
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🩺 HoneyPotChecker
 
#🥇1st Time On Internet
Complete Open Source HoneyPot Checker For BSC
Supports WBNB,BUSD,USDT
Contract Address : 0x77Dd873ad58418c40974016EbB792D2c20A1ABCA
It is a smart contract on bsc. You can check if token contract is honeypot or not.
## HOW TO USE
- Always use callStatic or eth_call to perform the operation because if you don't then you might loose some fund because we want to simulate the buy and sell so static call will just simulate the transaction and return the result without changing any state.
- Make sure you have some funds in your wallet to perform the operation.
- Use try & catch to make sure you won't mess your project runtime.
```javascript
ROUTER = DEX ROUTER ADDRESS
BASE = EX. WBNB, USDT, BUSD
TOKEN = TOKEN CONTRACT ADDRESS
_.callStatic.isHoneyPot(ROUTER,BASE,TOKEN, {
value: AMOUNT
});
RESPONSE =
[
false,
'...',
'...',
BigNumber { _hex: '0x07c5afd2', _isBigNumber: true },
BigNumber { _hex: '0x07129d70', _isBigNumber: true },
BigNumber { _hex: '0x0c9195e6e59aa589', _isBigNumber: true },
BigNumber { _hex: '0x0b42767a8d31f2ec', _isBigNumber: true },
BigNumber { _hex: '0x0234fe', _isBigNumber: true },
BigNumber { _hex: '0x067d50', _isBigNumber: true },
isHoneyPot: false,
base: '...',
token: '...',
estimatedBuy: BigNumber { _hex: '0x07c5afd2', _isBigNumber: true },
buyAmount: BigNumber { _hex: '0x07129d70', _isBigNumber: true },
estimatedSell: BigNumber { _hex: '0x0c9195e6e59aa589', _isBigNumber: true },
sellAmount: BigNumber { _hex: '0x0b42767a8d31f2ec', _isBigNumber: true },
buyGas: BigNumber { _hex: '0x0234fe', _isBigNumber: true },
sellGas: BigNumber { _hex: '0x067d50', _isBigNumber: true }
]
let buyTax = Math.round(((parseInt(RESPONSE.estimatedBuy) - parseInt(RESPONSE.buyAmount)) / parseInt(RESPONSE.estimatedBuy)) * 100);
let sellTax = Math.round(((parseInt(RESPONSE.estimatedSell) - parseInt(RESPONSE.sellAmount)) / parseInt(RESPONSE.estimatedSell)) * 100);
//RESPONSE BREAKDOWN
estimatedBuy = estimated amount of token bought
buyAmount = actual amount of token bought
estimatedSell = estimated amount of token sold
sellAmount = actual amount of token sold
buyGas = gas required to buy the token
sellGas = gas required to sell the token
```
## Warning
- ALWAYS use callstatic or eth_call to perform the operation.
- Try this at your own risk. I'm not responsible if you lost your funds. This contract checks only the current state.
- Nothing is perfect. This repo is constantly under development.
- Contract does not hold any token or balance.
- I'm not an expert. I'm always learning and improving myself so if you find any bugs, problems or issues then feel free to contact me.
## Authors
- [@0xdaebak](https://www.github.com/0xdaebak)
## License
