ruvaag

Gas Stamped NFT

The Problem

A moderately hyped nft drop on eth l1 can see gas prices skyrocket to upto four digit gwei levels. And what's the problem here? Obviously, you're paying ~25-50x of what you'd pay for a typical transaction. Moreover, this gas premium creates an inherent inequity favoring richer accounts, simply because they can afford to pay for the gas.

Secondly, there's another problem that isn't reflected in gas prices, but in the buyers themselves. Broadly, there are three kinds of NFT buyers — humans, humans who can use Etherscan and bots. With humans (both who can and cannot use Etherscan), the drop turns into a fastest finger first competition with all everyone eventually at the mercy of the network-latency gods.

So WTF is a Gas Stamped Mint

Gas-stamped mints provide a fun way to mitigate these problems. They also create a relatively fairer (level playing field) for all human actors that are part of the mint. Gas-stamping a transaction binds it to the gas price paid for the transaction using the tx.gasprice global variable. Post-eip1559, this gas price is the (base fee + priority fee). The miner's tip can be accessed in the contract via tx.gasprice - block.basefee.

What Does a Gas Stamped Mint Look Like

Downsides

Implementation

You can check out a sample implementation on github.