Fees on #StarkNet
The idea is to compute the L1 footprint of a transaction, including 2 dimensions:
- computational complexity: the heavier the transaction, the larger its portion in the proof verification cost
- on chain data: L1 call data cost
Let see how it works 🧵
Users can specify the maximum fee they are willing to pay via max_fee field of the transaction.
Fee mechanism:
#Computation =
Number of Cairo steps and applications of each builtins, weighted by a vector: CairoResourceFeeWeights
Current weights:
#OnChainData = storage updates + L2 <> L1 messages + deployed contracts
- Storage updates
For each contract: the keys to update and the new values
- L2 <> L1 messages
L2 sender, L1 destination, payload
- Deployed contracts
Contract address, class hash, constructor arguments
It is good to know how fees are computed because it has an impact on the design of your smart contracts. Basically devs can roughly assume that computation is cheap, and storage is more expensive.
Data availability is an important topic, see this great thread from @henrlihenrli:
More information about fee mechanism here: docs.starknet.io/docs/Fees/fee-…

• • •

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

Keep Current with Abdel From #StarkPilled to #StarkPiller ✨ 🐺

Abdel From #StarkPilled to #StarkPiller ✨ 🐺 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 @dimahledba

Jul 12
I am thrilled to announce that I'm joining @StarkWareLtd as #StarkNet Ecosystem Lead.
I will take this role with @GuthL, the pioneer Ecosystem Lead.
Our mission: spurring the growth of a community of developers around #StarkNet.
How I see this and what is my motivation ? 🧵
#mood
First of all, I want to say that I feel with #StarkNet the early vibes of #Ethereum.
The ecosystem is growing fast, and the community is vibrant.
I like to see all this creativity that is coming to StarkNet. I am convinced that we'll see a huge wave of innovation coming.
#bestL1
Ethereum is without any doubt the best settlement layer out there. Its security and decentralization are unmatched among all smart contract L1s. As well as the community of builders is truly awesome, and the research effort is impressive. However...
Read 15 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

Don't want to be a Premium member but still want to support us?

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

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(