A Twitter bot that tweets all ERC-721 NFT sales for a given contract 🤖
ISC License
This was made to succeed my Opensea Sales Twitter Bot repo; while relying on the OpenSea Events API is simpler, it doesn't include any NFT sales happening in other, newer marketplaces.
So, we need to monitor & process Ethereum event logs for ERC-721 token transactions directly, before posting any sales to Twitter.
Currently, Opensea
, Blur
, LooksRare
& X2Y2
are supported.
Eth Address: 0xDCA88f66CEc8972D23DE7d5e69c40E087C92132f
Thank you 🙏
abi.json
.Request a Twitter Developer Account (with Elevated Access, then create a Twitter Developer App (make sure you change it to have both read/write permissions)
Make sure you are logged in to the Twitter account you want the bot to run on (as the next step will be authorizing the bot to post on your account)
Install Twurl and, using your Twitter Developer consumer key & secret, generate the access token & access secret
In the Settings section of your Heroku app you'll see a Config Vars section. Add the following config vars:
Now you're ready to release - just push up the code via. git to the Heroku remote (see Heroku Remote if unsure how).
Make sure you are using worker
dynos and not web
dynos - you can set this in the CLI your project with:
heroku ps:scale web=0
heroku ps:scale worker=1
In app.js
, you'll notice there's some commented out logic for only posting sales above a certain threshold
that you can modify per-currency in currencies.js
.
Kenryu42 for their help on adding Seaport support
This code is licensed under the ISC License.
Please include proper attribution to my original repo if you fork, modify or utilize this repo in any way. Thank you!