Chainsniper Examples

Some example usage - some settings might be from an older Version

Recommandation is to use :

"WAIT_FOR_OPEN_TRADE": "true_after_buy_tx_failed",

"WATCH_STABLES_PAIRS": "true",

"MINIMUM_LIQUIDITY_IN_DOLLARS": "1000", It will :

  • allow you to snipe tokens with OpenTrading function

  • check every liquidity pairs

  • prevent you from being scammed by swapping only if liquidity > 1000$

Enjoy ๐Ÿ™

BSC - Snipe 0.5 BNB of NEWINU

1. settings.json

[
    {
    "WALLETADDRESS": "0x265Cb06dc5xxx3AA0275BF0c4D3D",
    "PRIVATEKEY": "aes:zmp4ii0xxxxdrogkdxxx92nuSGKqMrA==",
    "WALLETADDRESS2": "0x0975AbFE556xx49f0855",
    "PRIVATEKEY2": "aes:3xhftxxxxj2dNaZV8MVA==",
    "WALLETADDRESS3": "null",
    "PRIVATEKEY3": "null",
    "WALLETADDRESS4": "null",
    "PRIVATEKEY4": "null",
    "WALLETADDRESS5": "null",
    "PRIVATEKEY5": "null",
    "USECUSTOMNODE": "true",
    "CUSTOMNODE": "https://bsc-dataseed4.ninicoin.io/",
    "EXCHANGE": "Pancakeswap",
	"EXCHANGEVERSION": "2",  
    "PREAPPROVE": "true",
    "UNLIMITEDSLIPPAGE": "false",  
    }
]

In this example:

  • You can also choose to use 2 different wallets : up to you

  • We choose to use a custom BSC node : https://bsc-dataseed4.ninicoin.io/ To use custom node, you need to enter its http address, with the "/" at the end of the address.

2. tokens.json

To snipe new token, you need:

  • contract address

  • listing price

if you don't know listing price and want the bot to buy at any price, you can put BUYPRICEINBASE = 1000 for instance

Let's say you want to snipe 0.5 BNB of NEWINU. Enter this in your tokens.json :

[
  {
  "ENABLED": "true",

  "SYMBOL": "NEWINU",
  "ADDRESS": "0xcfefa64b0ddd611c12157c41cd3827f2e8e8615",
  
  "KIND_OF_SWAP": "base",
  "BUYAMOUNTINBASE": "0.5",
  "BUYAMOUNTINTOKEN": "(not used)",
  "MAX_BASE_AMOUNT_PER_EXACT_TOKENS_TRANSACTION": "(not used)",

  "BUYPRICEINBASE": "0.001",
  "SELLPRICEINBASE": "300%",
  "STOPLOSSPRICEINBASE": "60%",
  "SLIPPAGE": "49",

  "MAXTOKENS": "1",
  "MOONBAG": "0",
  
  "RUGDOC_CHECK": "true",
  "BUYAFTER_XXX_SECONDS": "0",  
  "WAIT_FOR_OPEN_TRADE": "true_after_buy_tx_failed",
  "MAX_SUCCESS_TRANSACTIONS_IN_A_ROW": "2",    
  "MAX_FAILED_TRANSACTIONS_IN_A_ROW": "2",    
  "MULTIPLEBUYS": "true",
  "BUYCOUNT": "3",
  "ALWAYS_CHECK_BALANCE": "false",
  
  "MINIMUM_LIQUIDITY_IN_DOLLARS": "10000",
  "WATCH_STABLES_PAIRS": "true",
   
  "LIQUIDITYINNATIVETOKEN": "True",
  "USECUSTOMBASEPAIR": "false",
  "BASESYMBOL": "(not used)",
  "BASEADDRESS": "(not used)",

  "SELLAMOUNTINTOKENS": "ALL",
  "HASFEES": "false",
  "GAS": "BOOST",
  "BOOSTPERCENT": "50", 
  "GASLIMIT": "1000000", 
  "GASPRIORITY_FOR_ETH_ONLY": "1.5"
  
  }
]

it will :

  • buy instantly 0.5 BNB of NEWINU if the price is < 0.001 BNB / token

  • check all BNB / BUSD / USDT / USDC liquidity pairs (thanks to WATCH_STABLES_PAIRS = true)

  • before buy, check if liquidity > 10000$

  • try to make one BUY when liquidity is added, and if it fails enter in "WAIT FOR OPEN TRADE" mode

  • sell all the tokens you bought if price reach your BUYPRICE*3 (= 300%)

  • sell all the tokens if Stop Loss is reached : if price reach your BUYPRICE*0.6 (= 60%)

  • 49% slippage

  • Gas 50% higher than Fast Gas price

  • stop making transactions :

    • after 2 failed attempts

    • after 2 success attempts

    • or if you hold more than 100 tokens in your wallet

  • use RugDoc's API to check token before buy

  • will make orders with 3 different wallets at the same time (MULTIPLEBUYS option)

BSC - Buy/sell TECH with USDC LP on MATIC

Here is an example of token where the liquidity has been added in USDC : https://polygon.poocoin.app/tokens/0x6286a9e6f7e745a6d884561d88f94542d6715698

In this case, you should: - use LIQUIDITYINNATIVETOKEN = false - use USDC custom base pair

Here is how to do:

1. settings.json

Quickswap exchange is used for MATIC sniping.

[
    {
    "WALLETADDRESS": "0x265CbxxxF0c4D3D",
    "PRIVATEKEY": "aes:zmp4ixxxxxuSGKqMrA==",
    "WALLETADDRESS2": "0x0975AbFExxxx9f0855",
    "PRIVATEKEY2": "aes:3hftxxxxxxxxxxdNaZV8MVA==",
    "WALLETADDRESS3": "null",
    "PRIVATEKEY3": "null",
    "WALLETADDRESS4": "null",
    "PRIVATEKEY4": "null",
    "WALLETADDRESS5": "null",
    "PRIVATEKEY5": "null",
    "USECUSTOMNODE": "false",
    "CUSTOMNODE": "put the address of your own node here if you want and make USECUSTOMNODE = TRUE",
    "EXCHANGE": "quickswap"
		"EXCHANGEVERSION": "2"  
		"PREAPPROVE": "true",
		"UNLIMITEDSLIPPAGE": "false" 
    }
]

2. tokens.json

[
  {
  "ENABLED" : "True",

  "SYMBOL": "TECH",
  "ADDRESS": "0x6286a9e6f7e745a6d884561d88f94542d6715698",

  "KIND_OF_SWAP": "tokens",
  "BUYAMOUNTINBASE": "(not used)",
  "BUYAMOUNTINTOKEN": "1000",
  "MAX_BASE_AMOUNT_PER_EXACT_TOKENS_TRANSACTION": "0.5",
  
  "BUYPRICEINBASE": "0.07",
  "SELLPRICEINBASE": "0.13",
  "STOPLOSSPRICEINBASE": "0",
  "SLIPPAGE": "5",
        
  "MAXTOKENS": "1",
  "MOONBAG": "0",

  "RUGDOC_CHECK": "true",
  "BUYAFTER_XXX_SECONDS": "0",
  "WAIT_FOR_OPEN_TRADE": "false",
  "MAX_SUCCESS_TRANSACTIONS_IN_A_ROW": "2",    
  "MAX_FAILED_TRANSACTIONS_IN_A_ROW": "2",    
  "MULTIPLEBUYS": "false",
  "BUYCOUNT": "(not used)",
  "ALWAYS_CHECK_BALANCE": "false",

  "MINIMUM_LIQUIDITY_IN_DOLLARS": "50000",
  "WATCH_STABLES_PAIRS": "false",

  "LIQUIDITYINNATIVETOKEN": "false",
  "USECUSTOMBASEPAIR": "true",
  "BASESYMBOL": "USDC",
  "BASEADDRESS": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",

  "SELLAMOUNTINTOKENS": "ALL", 
  "HASFEES": "false",
  "GAS": "BOOST",
  "BOOSTPERCENT": "20",
  "GASLIMIT": "1000000",
  "GASPRIORITY_FOR_ETH_ONLY": "1.5"

  }
]

This will create a "ping-pong" bot, who always :

  • buy 1000 tokens of TECH

  • sell all the tokens at the prices you set, like this :

Buy exact amount of tokens KPAD with BNB LP

1. settings.json

(check previous examples)

2. tokens.json

[
  {
  "ENABLED" : "True",

  "SYMBOL": "KPAD",
  "ADDRESS": "0xcfefa64b0ddd611b125157c41cd3827f2e8e8615",

  "KIND_OF_SWAP": "tokens",
  "BUYAMOUNTINBASE": "1",
  "BUYAMOUNTINTOKEN": "50000",
  "MAX_BASE_AMOUNT_PER_EXACT_TOKENS_TRANSACTION": "0.5",
  
  "BUYPRICEINBASE": "0.006",
  "SELLPRICEINBASE": "0.018",
  "STOPLOSSPRICEINBASE": "0",
  "SLIPPAGE": "49",
  
  "MAXTOKENS": "1",
  "MOONBAG": "0",   
   
  "RUGDOC_CHECK": "true",
  "BUYAFTER_XXX_SECONDS": "0",    
  "MAX_SUCCESS_TRANSACTIONS_IN_A_ROW": "2",    
  "MAX_FAILED_TRANSACTIONS_IN_A_ROW": "1",  
  "MULTIPLEBUYS": "false",
  "BUYCOUNT": "(not used)",
  "ALWAYS_CHECK_BALANCE": "false",

  "MINIMUM_LIQUIDITY_IN_DOLLARS": "10000",
  "WATCH_STABLES_PAIRS": "false",

  "LIQUIDITYINNATIVETOKEN": "true",
  "USECUSTOMBASEPAIR": "false",
  "BASESYMBOL": "(not used)",
  "BASEADDRESS": "(not used)",
  
  "SELLAMOUNTINTOKENS": "ALL",
  "HASFEES": "false",
  "GAS": "BOOST",
  "BOOSTPERCENT": "20",
  "GASLIMIT": "1000000",
  "GASPRIORITY_FOR_ETH_ONLY": "1.5"

  }
]

This will create a "ping-pong" bot, who always :

  • buy 50000 tokens

  • check if this amount of tokens does not need more than 0.5 BNB to make the buy order (thanks to MAX_BASE_AMOUNT_PER_EXACT_TOKENS_TRANSACTION parameter)

  • sell all the tokens at the prices you set

To know the price of the token, go to Pancakeswap.

ETH - Sell an airdrop with ETH (no buy)

Imagine you will receive an airdop token, and you want the bot to sell it as soon as you get it, with minimal price = 0.15 BNB/token

In this example, we don't want the Chainsniper to buy, so we put "BUYPRICEINBASE" = 0 , so as the bot to never buy.

If you wanted the opposite (the bot to never sell), simply put SELLPRICEINBASE = 999999 for instance.

1. settings.json

"EXCHANGE": "Uniswap"

(+ all the rest, of course)

2. tokens.json

[
  {
  "ENABLED" : "True",

  "SYMBOL": "AIRDROP",
  "ADDRESS": "0x7Fc66600c84A76Ad7e9c93437bFc5Ac33E2DDaE9",

  "KIND_OF_SWAP": "base", 
  "BUYAMOUNTINBASE": "0.1",
  "BUYPRICEINBASE": "0",
  "SELLPRICEINBASE": "0.45",
  "STOPLOSSPRICEINBASE": "0",

  "SLIPPAGE": "5",
  
  "MAXTOKENS": "1",
  "MOONBAG": "0",
  
  "RUGDOC_CHECK": "true",
  "BUYAFTER_XXX_SECONDS": "0",    
  "MAX_SUCCESS_TRANSACTIONS_IN_A_ROW": "2",    
  "MAX_FAILED_TRANSACTIONS_IN_A_ROW": "1",  
  "MULTIPLEBUYS": "false",
  "BUYCOUNT": "(not used)",
  "ALWAYS_CHECK_BALANCE": "true",
    
  "MINIMUM_LIQUIDITY_IN_DOLLARS": "10000",
  "WATCH_STABLES_PAIRS": "true",
  
  "LIQUIDITYINNATIVETOKEN": "true",  
  "USECUSTOMBASEPAIR": "false",
  "BASESYMBOL": "(not used)",
  "BASEADDRESS": "(not used)",

  "SELLAMOUNTINTOKENS": "ALL",
 
  "HASFEES": "false",
  "GAS": "BOOST",
  "BOOSTPERCENT": "20",
  "GASLIMIT": "300000",
  "GASPRIORITY_FOR_ETH_ONLY": "1.5"

  }
]

To know the price of the token, go to the Exchange. Our price are price PER TOKEN. In this example, SELLPRICEINBASE = 0.159327 :

Use the bot with several tokens

If you want the bot to work with several tokens at the same time, simply put 2 tokens paragraphs, separated with a ","

[
  {
  (first token)
  },
   {
  (second token)
  }
]

Such as:

... more examples to come (if needed)

Last updated