Skip to content

xandao-dev/thetan-arena-sniper

Repository files navigation


Thetan Arena Sniper

Thetan Arena Sniper is a tool to buy cheap thetans NFTs quickly. It interacts with BSC Blockchain to buy thetans as fast as possible.
⚠️ I'ts not working, the contracts has been updated ⚠️
⚠️ I am not responsible for financial losses. ⚠️

Explore the docs »
Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgements

About The Project

Introduction

There are a few things you need to know before using the bot. There are some variables that can be changed according to your need, they are in configs file.

First, this bot selects the cheap characters through the Expected Earn Rate which is the percentage of profit in relation to the purchase price and the possible sale price.

The sales price estimate is based on how much profit a character can generate. When the win rate is 40%, we estimate the sale price to the same amount which would make the character generate a profit. You can adjust this value in the configs file in BATTLE_WIN_RATE. You can check how much the character generates by 40% in the Thetan Arena Tool.

There are the more configs that I recommend tweaking, check the configs file for more details.

Tips

I recommend placing the bot on a server in the US to be closer to the game server and thus be able to see the characters faster. I used an EC2 from Amazon AWS at the us-east-1 location.

Features

  • Watch the marketplace for good opportunities
  • Automatically buy and rent new and cheap thetans from marketplace
  • Automatically buy BNB for gas fees when the balance is low
  • Dinamically estimate gas fee for each transaction based on the possible profit
  • Fast (become even faster if you put it on a US server), it does not miss a block.
  • Saves a record of all transactions in a log file
  • [TODO] Automatically sell thetans
  • [TODO] Mempool monitoring to front run thetans

Built With

  • Node.js - A JavaScript runtime build on Chrome's V8 JS engine
  • Web3.js - A library for interacting with blockchain networks and smart contracts

Getting Started

To get a local copy up and running follow these simple steps.

Installation Local

  1. Clone the repo

    git clone https://github.com/xandao-dev/thetan-arena-sniper.git
  2. Install dependencies

     cd thetan-arena-sniper
     npm install # or yarn install
  3. Set environment variables. Create a ".env" file based on ".env.example".

    • BSC_PROVIDER - The URL of the BSC node, use this one for mainnet: https://bsc-dataseed1.binance.org:443
    • WALLET_PRIVATE_KEY - Your wallet private key, you can find it on Metamask -> Account Details -> Export Private Key You should append the 0x to the private key. I recommend creating a new wallet just for this project, fill with some BNB for gas and with WBNB to buy thetans.
  4. Install pm2 to run the application as a service

npm install pm2 -g

Installation EC2 (Optional)

Install Thetan Arena Sniper in EC2 Server:

  1. Connect to EC2 server
ssh -i <pem-file-credential-path> <instance-user-name>@<instance-public-dns-name>
  1. Copy dist folder to the server
scp -i <pem-file-credential-path> -r ./dist <instance-user-name>@<instance-public-dns-name>:/home/<instance-user-name>/thetan-arena-sniper/
  1. Copy .env file
scp -i <pem-file-credential-path> ./.env <instance-user-name>@<instance-public-dns-name>:/home/<instance-user-name>/thetan-arena-sniper/.env
  1. Copy package.json
scp -i <pem-file-credential-path> ./package.json <instance-user-name>@<instance-public-dns-name>:/home/<instance-user-name>/thetan-arena-sniper/package.json
  1. Update ec2: sudo yum update -y

  2. Install git: sudo yum install git -y

  3. Install node: curl -L https://git.io/n-install | bash -s -- -y

  4. Run inside thetan-arena-sniper folder: npm install

  5. Install pm2: npm install pm2 -g

  6. Run application: pm2 start main.js -- 0.3 --stop-exit-codes 0

  7. Monitor with pm2 monit

Usage

  • Generate a version of the application

    npm run build # or yarn build
  • Run:

    pm2 start ./dist/main.js
  • Monitor:

    pm2 monit
  • Stop:

    pm2 stop all

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Free software =)

Contact

Alexandre Calil - Linkedin - [email protected]

Project Link: https://github.com/xandao-dev/thetan-arena-sniper

Acknowledgements