Pay Game

Launch

Originally posted on X

Shipped my first web3 project! 🚀✨

Pay Game is the worst way to spend your ETH. Pay-to-play on the Ethereum blockchain.

Enter your name, URL, and your desired score in ETH. Pay me and you’ll be added to the leaderboard! All on-chain.

NFTs

Besides the dubious honor of being in the leaderboard, you can also win some NFTs (of course!)

Every player gets one coin NFT. You only get one per wallet. You can top up your existing score, but you won’t get additional coin NFTs.

🏆 NFTs for 1st, 2nd, and 3rd place are a bit more interesting. Once you lose your spot, you’ll also lose your NFT. It will automatically be transferred away to the new winner! These NFTs cannot be sold, bought, or transferred.

There’s a consolation prize for anyone who ever reached first place but lost it. This is a regular NFT that can be sold, transferred, etc. It will get progressively harder to win, as getting first place (and then losing it) will get harder over time as the top score increases.

Wait, this doesn’t make any sense whatsoever?! 🤔

You’re right. This is just me learning about web3, and hopefully some people wanting to be part of something ridiculous.

Don’t play if your goal is to get a return on your “investment”.

This all sounds very familiar?! 🤔

Yes! I launched highscore.money 5 years ago. A few weeks ago I wanted to learn what it takes to build a web3 app, so I decided to re-implement this old idea, but on the blockchain.

What I learned

I learned a ton building this. I taught myself:

  • Solidity (programming language for Ethereum)
  • React (never used it before)
  • ethers.js (JS library for interacting with the blockchain)
  • Pixelmator (to create pixel art)
  • After Effects (to create the NFT videos)
  • Hardhat (development environment for Solidity)
  • Remix (online IDE)
  • Chai (JS library for writing automated tests)
  • ERC1155 (the NFT standard I chose)
  • web3modal (JS library for connecting different wallets)

I jumped in knowing basically nothing. It was quite a painful experience at times, as I’m used to knowing what I’m doing 😅 But it taught me humility and gave me a newfound appreciation for the kindness of other developers willing to help.

Some of the resources I used to learn about all this: CryptoZombies, buildspace, and the Hardhat tutorial. Best way is to just dive right in!

P.S. Gas fees vary based on where you’ll end up in the leaderboard. If you’re in the top 3, it will need to move the trophy NFTs around, which is rather costly. But if you’re outside of the top 3, it only mints your own coin NFT. Sorry for the gas fees 😂

Updates

Jan 14, 2022: 🤖 Made a simple Twitter bot that tweets whenever someone makes a new payment at Pay Game 🤑 Made it mostly for myself, but feel free to follow along: @PayGameAlert

Get early access to what I build next

Plus personal notes I don't share on X. I rarely email, so each one counts.