Thetan Arena Sniper is a tool to buy cheap thetans NFTs quickly. It interacts with BSC Blockchain to buy thetans as fast as possible.
Explore the docs »
Report Bug
·
Request Feature
Table of Contents
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.
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.
- 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
- Node.js - A JavaScript runtime build on Chrome's V8 JS engine
- Web3.js - A library for interacting with blockchain networks and smart contracts
To get a local copy up and running follow these simple steps.
-
Clone the repo
git clone https://github.com/xandao-dev/thetan-arena-sniper.git
-
Install dependencies
cd thetan-arena-sniper npm install # or yarn install
-
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.
-
Install pm2 to run the application as a service
npm install pm2 -g
Install Thetan Arena Sniper in EC2 Server:
- Connect to EC2 server
ssh -i <pem-file-credential-path> <instance-user-name>@<instance-public-dns-name>
- 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/
- 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
- 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
-
Update ec2:
sudo yum update -y
-
Install git:
sudo yum install git -y
-
Install node:
curl -L https://git.io/n-install | bash -s -- -y
-
Run inside thetan-arena-sniper folder:
npm install
-
Install pm2:
npm install pm2 -g
-
Run application:
pm2 start main.js -- 0.3 --stop-exit-codes 0
-
Monitor with
pm2 monit
-
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
See the open issues for a list of proposed features (and known issues).
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.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Free software =)
Alexandre Calil - Linkedin - [email protected]
Project Link: https://github.com/xandao-dev/thetan-arena-sniper
- typescript - strongly typed JavaScript
- ts-node-dev - npm run dev with typescript support
- dotenv - environment variables
- beeper - beep sound on terminal
- set-interval-async - Async set interval
- simple-node-logger - A simple logger for Node.js
- undici - The fastest HTTP client for Node.js
- pm2 - A Node.js process manager