- clone this repository
- $ npm install
- copy your
.env.example
to.env
- set up your
.env
to with this explanation :
BNB_CONTRACT=0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c
//BNB contract for buy the token
FACTORY=0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73
//Pancake Factory contract to get function of buy
ROUTER=0x10ED43C718714eb63d5aA57B78B54704E256024E
//Pancake Factory contract to process function of buy
YOUR_ADDRESS=
// Your BSC (BEP20) address from trustwallet or another wallet.
SLIPPAGE=1
//Customize your slippage here, cannot decimal. (eg : 1, 5, 10). if you buy early token recommended 30+ Slippage
GWEI=5
//Customize your GWEI (gas fee) here, cannot decimal. (eg : 5, 10, 25). if you buy early token recommended 15+ GWEI
GAS_LIMIT=345684
//Minimul limit is 210000, more much more better.
MIN_LIQUIDITY_ADDED=3
//Set how much minimum liquidity added in pair address that you want to buy. set in BNB. (eg : 2, 4, 7).
// 2 mean 2 BNB liquidity added.
YOUR_MNEMONIC=
//Input your private Key here, that you get from your wallet privacy.
AMOUNT_OF_BNB=0.002
//Amount how much you want buy the token in BNB.
TO_PURCHASE=0xe9e7cea3dedca5984780bafc599bd69add087d56
//Token address that you want to buy.
USE_WSS=true
//Fill true if you want use from WSS_NODE, fill false if you want use from RPC_NODE
WSS_NODE=wss://bsc-ws-node.nariox.org:443
// more faster, but sometimes unstable
RPC_NODE=https://bsc-dataseed1.defibit.io/
//stable connection, but little bit slowly
-
run with
npm run snipe
. -
Wait the bot do his job
-
Close bot with
ctrl + C
.
- there are some reason if your tx failed :
- you haven't approve your BNB
- your gas price are to small
- your GWEI are to small (use 15+ for early token)
- your slippage are to small (use 30+ for early token)