Coin Everything is a set of tools and services for automatically creating zora coins from tweets, with 100% of coin royalties going to the tweet authors. It ran on the twitter account @coin_everything for a few days with approx 0.3 ETH in royalties distributed. The project is no longer live due to issues with X's anti-bot policies. Using the X API for sending replies would solve this problem, but the necessary tier is 5k USD/month, a cost I'm not willing to pay.
All the coins created by this project can be viewd on zora: https://zora.co/@coinedthat
Note: A significant portion of this code was written by AI. Development took place over approximately 20 hours. I, mteam, is the only human contributor, but multiple other people helped me out!
Backend:
- Twitter Monitoring: Monitor Twitter for new tweets from a list of users
- Metadata Generation: Uses playwright to embed and screenshot tweets, then uploads these to imgBB. Crafts this into metadata (with an AI [Gemini] generated ticker and coin name) and uploads to IPFS.
- Zora SDK Minting: Mints new coins on Zora using the Zora SDK
- Rewards Distribution: Automatically reward tweet authors using Privy pregenerated addresses
- Reply Sending: Send replies to tweets using agent-twitter-client
Frontend:
- Twitter Login with Privy: Login with Privy and an injected wallet
- Delegated Rewards Claiming: Claim rewards from privy wallet with a transaction from an injected wallet
Other:
- Rewards Dashboard: View lifetime rewards distributed and claimable rewards by address
- User Utils: A quick dirty script and frontend to add users to the monitoring config
coin-everything/
├── frontend/ # Next.js frontend application
├── backend/ # Express.js backend service
├── user_utils/ # User utility scripts
└── rewards-dashboard/ # Rewards management interface
- Clone the repository:
git clone https://github.com/yourusername/coin-everything.git
cd coin-everything- Install frontend dependencies:
cd frontend
npm install- Install backend dependencies:
cd ../backend
npm install- Create
.envfiles in both frontend and backend directories - Add necessary environment variables (refer to
.env.examplefiles)
- Start the backend server:
cd backend
npm run dev- Start the frontend development server:
cd frontend
npm run devThe backend API documentation can be found in the backend/README.md file.
Do whatever you want with this code, idgaf.