Skip to content

An automated minting bot for collecting Ethereum ERC-721s πŸ€– πŸƒ

License

Notifications You must be signed in to change notification settings

anader123/minty-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Minty Bot πŸ€– πŸƒ

An automated minting bot for collecting Ethereum ERC-721s.

Summary

⚠️ Use at your own risk ⚠️

Minty Bot seeks to make it easy to collect NFTs without needing to know anything about the mint details. Using the Zora API, it scans the most recent mints and based on certain criteria it will decide whether or not to mint an NFT from a collection.

Dependencies

  • Zora API
  • Etherscan API
  • Node.js
  • Ethers.js
  • ABI Decoder

Utils

  • zora: Retrieves and formats NFT mint data from the Zora API
  • etherscan: Retrieves Contract ABI and transaction input data for a minting contract
  • crypto: Ether.js functions to submit the transactions to the blockchain

Environment Variables

  • MAX_MINT_PRICE - Max amount of ETH willing to pay for a mint
  • MAX_GAS_PRICE - Max gas price willing to pay for a mint
  • MIN_SAMPLE_COUNT - Minimum number/500 recent mints required to mint the NFT
  • DELAY_SEC - How often to run the check mint function in seconds
  • ETHERSCAN_API_KEY - Etherscan API Key
  • BOT_ETH_ADDRESS - ETH Address of the Bot
  • ETH_PRIVATE_KEY - ETH Private Key to the Bot
  • ETH_RPC - RPC endpoint to access an ETH node
  • MIN_MINT_RAIO - Minimum ratio of current minted amount to the max mint amount

Installation

Clone down the repo: git clone https://github.com/anader123/minty-bot.git

Install packages: npm i

Create a .env file: touch .env

Copy variables from .env.sample into .env

Add BOT_ETH_ADDRESS and ETH_PRIVATE_KEY to .env

Run node index.js in the root to start the bot

Note, the bot won't run for the first time until after DELAY_SEC amount of time has gone by.

About

An automated minting bot for collecting Ethereum ERC-721s πŸ€– πŸƒ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published