Skip to content

jayp89/etn-nft-verify-bot

 
 

Repository files navigation

TON NFT Verificator Telegram bot

💎 Easy way to verify the holders of your NFT collection on the TON blockchain

How bot works:

  1. NFT holder writes a message to your bot
  2. Bot sends the details for the transfer
  3. Holder confirms ownership of the wallet
  4. Bot sends a link to a private chat

How to run bot

Deploy

.env variables

You need to specify these env variables to run this bot. If you run it locally, you can also write them in .env text file.

DATABASE_URL=       # PotsgreSQL database URL
BOT_TOKEN=          # Telegram bot API token from @BotFather // Example: 1234567890:ABCDEFGHIJKLMNOPQRSTUVWXYZ
COLLECTION=         # TON address of NFT collection. // Example: EQAo92DYMokxghKcq-CkCGSk_MgXY5Fo1SPW20gkvZl75iCN
CHAT_ID=            # Telegram private chat for NFT owners. // Example: -1001234567890
TONCENTER_API_KEY=  # toncenter.com API key from @tonapibot
HEROKU_APP_NAME=    # Name of your Heroku app for webhook setup (optional)

Run bot locally

First, you need to install all dependencies:

pip install -r requirements.txt

Then you can run the bot. Don't forget to create .env file in the root folder with all required params (read above).

python main.py

Working with Database

If you want to add a user to the list of holders, but the collection has not yet reached the mint, you can add the necessary wallets to the contest table

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.9%
  • Procfile 0.1%