A free NodeJS sniper bot built to work with DxSale. DxLaunch is an open, decentralized platform for token sales.

Overview

alt text

DxSale sniper bot

Purpose

This bot allows you to compete with other trading bots when buying a cryptocurrency which is going to be on presale on DxSale launch platform.

Features

  • Including transaction options like gas price, gas limit, etc
  • Multi-address transactions ( by default DxSale presale allows each address to participate once at a particular sale so you can setup multiple addresses to join the presale )
  • Supporting milliseconds
  • Free

Requirements

  • npm 6.0.0 or above
  • NodeJS 10.0.0 or above
  • pm2

Installation

Clone this repository ( or download from Code -> Download ZIP ) and run npm install inside the project folder. This command will download all the needed libraries which the bot needs to work properly.

Usage

You can run the script using node or pm2 commands. I personally like to use the pm2 command on my server, because PM2 is a process manager which takes care for my script to run 24/7.

Required parameters:

  • dxSalePresaleContractAddress - this is the DxSale presale contract address ( not the contract address of the token you're willing to buy ). String, 42 bytes size starting with 0x. Example: alt text WARNING! - This is a sample Presale address, do not use it! Each token DxSale has unique Presale contract address.

  • buyingBnbAmount - this is the amount of BNB which you are willing to use to execute the buying transaction. Integer or float.

  • senderPrivateKey - this is the private key of the wallet address which will be used to execute the buying transaction. For multi-address transactions then list the private keys separated by ,. ( Example - senderPrivateKey=0x8da4ef21b864d2cc526dbdb2a120bd2874c36c9d0a1fb7f8c63d7f7a8b41de8f,0x3da3ef21b123d2cc526dbdb2a120bd2874c36c9d0a1fb7f8c63d7f7a8b42de8E. ) Each private key have to have 66 bytes size starting with 0x. If you're using MetaMask then you will have to manually add 0x at the beginning of your private key, because MetaMask is displaying the private key with 64 bytes size.

Optional parameters:

  • gasLimit - the maximum amount of gas you are willing to consume on a transaction, default value is 500000.
  • gasPrice - the transaction gas price in Gwei, default value is 10 Gwei.
  • createLogs - boolean, if set to true it will create ./logs folder and save logs on different bot actions.
  • cronTime - how often should the bot try to buy the particular token. Default is '*/100 * * * * * *' aka every 100 milliseconds.
  • botInitialDelay - by default when starting the bot for first time it has 10 seconds delay to double check what parameters have been passed. Setting this parameter to 0 will remove the delay if needed.

Sample terminal command:

  • Using node - node dxsale-sniper-bot.js -- dxSalePresaleContractAddress=0xab5801a7d398351b8be11c439e05c5b3259aec9b buyingBnbAmount=0.5 senderPrivateKey=0x8da4ef21b864d2cc526dbdb2a120bd2874c36c9d0a1fb7f8c63d7f7a8b41de8f createLogs=true gasPrice=25
  • Using pm2 - pm2 start dxsale-sniper-bot.js -- dxSalePresaleContractAddress=0xab5801a7d398351b8be11c439e05c5b3259aec9b buyingBnbAmount=0.5 senderPrivateKey=0x8da4ef21b864d2cc526dbdb2a120bd2874c36c9d0a1fb7f8c63d7f7a8b41de8f createLogs=true gasPrice=25

If you wish to use the bot at same time for multiple crypto tokens you could make several pm2 instances by passing --name parameter to the pm2 command. Example: --name "app name".

Comments
  • Npm Install

    Npm Install

    I have this issue when I execute the command npm install

    $ npm install npm WARN deprecated [email protected]: The npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated [email protected]: ⚠️ WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar npm WARN deprecated [email protected]: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that. npm WARN deprecated [email protected]: Use mz or fs-extra^3.0 with Promise Support npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

    opened by diegoluizoro 6
  • Please assist with solution to this npm installation error

    Please assist with solution to this npm installation error

    npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

    changed 209 packages, and audited 210 packages in 1m

    opened by allenken7 2
  • When this bot can be launched

    When this bot can be launched

    When presale opens it is often already too late. Can this bot be launched when the presale counter is close to zero and execute when presale is open and new block arrives? As far as I know the bot transaction cannot hit the block before presale is opened. How to properly execute the bot to dont risk losing funds and at the same time to get into the presale?

    opened by Almurik 1
  • Node parameter

    Node parameter

    If custom node is to be used instead of default should it be rpc or websocket version? Also should the format be like node=node_name or node="node_name"

    opened by Almurik 0
  • Must be manually stopped after success?

    Must be manually stopped after success?

    Mon, 12 Jul 2021 14:00:02 GMT: Cronjob iteration. Mon, 12 Jul 2021 14:00:02 GMT: Cronjob iteration. Mon, 12 Jul 2021 14:00:02 GMT: Cronjob iteration. Mon, 12 Jul 2021 14:00:02 GMT: Cronjob iteration. Mon, 12 Jul 2021 14:00:02 GMT: Cronjob iteration. Mon, 12 Jul 2021 14:00:02 GMT: hash: 0xa367d88f5ea559eba512cc2cf9027f5112c4528923d9f52c67ccb8ef3XXXXX Mon, 12 Jul 2021 14:00:02 GMT: Cronjob iteration. Mon, 12 Jul 2021 14:00:02 GMT: Cronjob iteration. Mon, 12 Jul 2021 14:00:02 GMT: Cronjob iteration. Mon, 12 Jul 2021 14:00:02 GMT: Cronjob iteration. Mon, 12 Jul 2021 14:00:02 GMT: Cronjob iteration. Mon, 12 Jul 2021 14:00:02 GMT: Cronjob iteration. Mon, 12 Jul 2021 14:00:02 GMT: Cronjob iteration. Mon, 12 Jul 2021 14:00:02 GMT: Cronjob iteration.

    Still running after success

    opened by yyj159023 3
Owner
Miroslav Nedelchev
Software and blockchain developer, into payment solutions and decentralization.
Miroslav Nedelchev
Opensea sniper bot for NFT collections

opensea-sniper-bot Installation git clone https://github.com/opensea-bots/opensea-sniper-bot.git cd ./opensea-sniper-bot npm install Usage You can al

null 27 Dec 27, 2021
An open source web3 decentralized video sharing 🎥 platform running on blockchain ⛓

DapTube ⚡️ A decentralized open source video sharing ?? platform on web3 ⛓ ✨ Share videos & movies without restrictions ?? Monetise your content ?? We

Langford Kwabena 4 Feb 19, 2022
This bot can raise your mood. This bot send joke often our channel for users. Sometimes bot don't work because we have not server for this project...)

Hi, welcome to send-joke-bot telegram bot project ?? What can do this bot ? This bot can raise your mood. This bot send joke often our channel for use

Muhammadamin 5 Sep 26, 2022
A multipurpose bot, a clan bot, a all in one bot. The one bot u need for ur server originally made as Milrato discord Bot and by Tomato6966.

Public Bot and Support Server! Invite the Public Version of this Bot so you don't need to host it by yourself or join my Discord server to get a custo

Tomato6966 472 Dec 25, 2022
When new tokens gets listed on a DEX, bots are able to detect this and be one of the first to buy the token for a low price. This is an example of such bot.

Listing Sniping Bot When a new token gets listed on a DEX, bots are able to detect the PairCreated event emitted from the DEX's factory contract. This

MouseLess.eth 15 Dec 21, 2022
New base bot WhatsApp 🈴 bukan self bot lagi atau buka bot yang bisa di pakai oleh bot sendiri 😎

Installation • Thanks to • Donate Official Group Bot • Settings Instalasi Heroku Buildpack Click the deploy icon below ! > heroku/nodejs > https://g

zeeone 27 Feb 9, 2022
Whatsapp bot using Bailey multi device module, using nodejs and open source, I accept ideas from public

Allen Bot-Wa Keep copyright, Created by lolhuman | Please read carefully Content Description Example Highlights TODO Installation FAQ Contributing Con

Pais 35 Dec 3, 2022
A bot Similar to the reaction roles discord bot, but free. Written in JavaScript, and uses MongoDB.

Discord Reaction Roles bot About • Features • Installation • Setting Up About An open source reaction roles bot to anyone who needs one in their serve

null 52 Dec 22, 2022
Pre-Configured list of Templates and Approval/Denial Reasons that is free for any Bot List or Bot List Staff to use!

Infinity Cheat Sheet Pre-Configured list of templates that any Bot List or Bot List Staff are free to use! Website Preview Contributing I tried to mak

InfinityBotList 5 Jul 28, 2022
The official bot for Lewis Menelaws (TectTok). The bot is made by using Typescript. Feel free to contribute!

lewis-bot Prerequisites Create an application in Discord's developer portal. You need to add all the Intents and permissions. Then create a link in OA

Luka Hietala 2 Aug 11, 2022
This is Kesha bot which is made for fun, to show off my appreciate to Kesha and her work

Kesha bot What is this? This is Kesha bot which is made for fun, to show off my appreciate to Kesha and her work What Kesha bot can do it is still und

Nikoloz Imerlishvili 3 Dec 15, 2022
Distributed/Decentralized p2p Audio Timeline

Hello, Timeline Decentralized p2p audio timeline experiment, pluggable with GUN, PeerJS or any other p2p network. About WebRTC is bandwidth expensive

Meething dWebRTC 7 Apr 25, 2022
A video message app completely decentralized, apart from the turn server

Doom @WIP Doom (Decentralized Zoom proof of concept) What is this? It's a video message app completely decentralized, apart from the turn server (wip)

Felipe Melo 17 Oct 30, 2022
A decentralized Music Ownership System developed on Truffle Suite and React Bootstrap to allow Music artists to upload their content to the blockchain, that can be streamed by users

A decentralized Music Ownership System developed on Truffle Suite and React Bootstrap to allow Music artists to upload their content to the blockchain, that can be streamed by users.

M. Adil Fayyaz 10 Sep 5, 2022
An open-source Discord bot built with Discord.JS & TypeScript

?? Hans - Discord Bot Discord Bot build with Discord.JS, TypeScript, and lots of ❤️ Invite hans to your server You can invite the bot here ?? . It's u

Sorin 9 Nov 15, 2022
Co-Pilot is a discord Bot designed to be the all-in-one, open-source Discord bot that handles all your server needs.

Welcome to Co-Pilot Bot repo! ?? ?? Co-Pilot (All-in-one Discord Bot) Co-Pilot is a discord Bot designed to be the all-in-one, open-source Discord bot

YMafalha 19 Nov 11, 2022
Zeigt deinen Discord Token an mit einer Tastenkombination.

discordTokenEdo v1.2 Lässt mit einer Tastenkombination ( ALT + G ) deinen Discord Token anzeigen. -> Bedingung: Eingeloggt sein auf https://discord.co

edo 8 Dec 25, 2022
Token Grabber for Discord.

It is for entertainment purposes, please do not use it maliciously! To try; First open the config.json file and paste your webhook url there. Then ope

Emirhan 3 Jun 3, 2022
Saturn Stealer is a tool for create a server and the create malware, themalware is discord token straler/grabber.

Saturn-Stealer ⚠️ It is strictly forbidden to use this software for illegal purposes. This software was coded for educational purposes. The developer

ENDLEPH 13 Aug 28, 2022