πŸ’° LET'S TALK MONEY πŸ’°

if you're jumping into web3 dev right now for the first time and exploring @solidity_lang, @ethereum smart contracts, and making NFTs...

1) welcome ❀️ you're in for one heck of a ride πŸ₯³

2) MAKE SURE YOU KNOW HOW GAS AND TX FEES WORK πŸ’ΈπŸ’Έ
Back in the day, deployment for building DApps was relatively affordable.

πŸ™‹πŸ»β€β™‚οΈ CryptoPunks was deployed in 2017 for $7.56
πŸ• $SHIB was deployed in July 2020 for $60

Sources:
- etherscan.io/tx/0x0885b9e51…
- etherscan.io/tx/0x0a4022e61…
Today, those exact same contracts would cost an arm and a leg to deploy πŸ’€πŸ’€πŸ’€

πŸ™‹πŸ»β€β™‚οΈ CryptoPunks would cost $964
πŸ• $SHIB would cost $2,026

It costs 30x to 120x more dollars to deploy contracts to @ethereum today compared to a few years ago.

...WHY?
There are three things that ultimately affect your deploy costs:

1) # of UNITs of gas used in the deploy tx
2) the PRICE per unit of gas based on current traffic
3) the fiat VALUE of $ETH

and the formula is:

TOTAL COST = UNITS * PRICE * VALUE
Let's look at the @cryptopunksbot contract deployment from 2017 as an example:

UNITS = 2,142,276 gas
PRICE = 0.000000011 $ETH per gas
VALUE = $320.97 per $ETH

TOTAL COST = 2,142,276 * 0.000000011 * 320.97

TOTAL COST = $7.56
So what changed for the @cryptopunksbot contract between 2017 and 2021?

🟒UNITS of gas stayed the same
πŸ”΄PRICE per gas increased due to high traffic
πŸ”΄VALUE per $ETH has increased because πŸš€πŸŒ•

average gas PRICE is 100-150 gwei these days
average $ETH value is $4,000 USD
Why are people still building on Ethereum if it's so expensive? Well, currently..

1) it's the most secure smart contract platform
2) it has the best developer ecosystem and tooling
3) it has the biggest market

this DOES NOT MEAN that it's the best tool for your project
Maybe you just want to learn, and build an end to end project just to see what it's like.

Maybe you're targeting a very specific use case that prioritizes speed and cost over decentralization.

There are lots of reasons you may want to explore alternatives.
So what are the alternatives?

If you want to stay within the Ethereum ecosystem, check out sidechains and L2s:

- @0xPolygon (has a growing NFT user base)
- @Immutable
- @optimismPBC
- @arbitrum
- @zksync
If you want to explore different blockchains with different programming languages, different system architectures:

- @solana
- @avalancheavax
- @tezos
- @Polkadot
Instead of switching platforms, you can also look into optimizing your solidity code to reduce unnecessary logic.

( Because the purpose of gas to begin with is to pay miners for running the logic of your program! So complex logic = more gas )

medium.com/@kaymonft/opti…
So that was a quick overview of how to think about gas fees when deploying your own projects.

If you found this thread useful, drop a comment and let me know if you'd also like a tutorial for how to deploy and measure gas costs while you're coding!

Happy Web3-ing :)

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh
γ€€

Keep Current with albert

albert Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @thatguyintech

24 Nov
just had a really cool chat with the @developer_dao governance guild to get some ideas for governance flowing

(if you have thoughts on DAO governance please reply and share)

here are some highlights from the guild convo:
@willhblackburn talks about top of mind things for governance guild
@willworthdev chiming in with thoughts around transparency and communication as well as decntraliztion
Read 7 tweets
1 Oct
let's say you're on the market for an NFT

you're browsing @opensea, you have your @MetaMask wallet ready...

Q: how do you know that the art you're buying has a chance to last long into the future?

A: check if the art is hosted on @IPFS or @ArweaveTeam! πŸ‘‡πŸΌ
Most NFT projects on OpenSea are either

A) directly uploaded and sold via OpenSea, or

B) built as an ERC721 or ERC1155 contract and integrated after minting
in either case, how do we check where the art is hosted?

there are TWO pieces of data you want to check

1) the METADATA
2) the IMAGE

you want both to be decentralized, so that they can last FOREVER (see last tweet for deets)
Read 7 tweets
1 Oct
NFTs, cryptocurrencies, DeFi...

they're buzz-wordy and hyped up, but for a good reason:

Web3.0 is here to stay

but, what is it?!

here's a thread of the best resources to learn about the next evolution of the internet πŸ‘‡
1. Don't know what "web3" even means?

Here's @dabit3's excellent overview on the phases of the internet.

web1 -> web2 -> web3

tldr; web3 is the the latest and greatest way for us to hang out online

freecodecamp.org/news/what-is-w…
2. Want to see what it's like to make a protoype in web3?

Here's @camiinthisthang's awesome overview blog on building a web3 app.

- learned from @_buildspace
- practiced read/writes to the @ethereum blockchain
- used @HardhatHQ, ethers.js

camiinthisthang.hashnode.dev/wthisweb3
Read 11 tweets
21 Jul
thebword.org/c/track-2-Bitc…

I'll be livetweeting this epic Bitcoin discussion panel with:

@CathieDWood
@elonmusk
@jack
@moneyball

#TheBWord
@CathieDWood @elonmusk @jack @moneyball CATHIE WOOD BABY

i get so hype everytime i see her pop up on my monitor πŸ˜‚πŸ˜‚πŸ˜‚
@CathieDWood @elonmusk @jack @moneyball First question:

What's shaped and influenced your views on bitcoin?
Read 17 tweets
21 Jul
for all you lazy people who are too busy doomscrolling

Here are my notes from The B Word conference #TheBWord (not #TheDWord πŸ˜‚)

β‚Ώβ‚Ώβ‚Ώ

Track 1: DEMYSTIFYING BITCOIN

β‚Ώβ‚Ώβ‚Ώ

(all 5 sessions in separate threads linked below)
Read 6 tweets
21 Jul
#TheBWord Conference, Demystifying Bitcoin

Session 5 notes: Debunking "Bitcoin Can Be Displaced Easily" w/ @LynAldenContact πŸ‘‡
@LynAldenContact "The success of a cryptocurrency relies on its network effect.

The stronger the network effect, the better the security and development it enjoys, resulting in an entrenched advantage." - @LynAldenContact

just like social media or viral apps
Read 9 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Thank you for your support!

Follow Us on Twitter!

:(