Rise In Logo



Transition to Web3 - Course 3 | How Smart Contracts Work

👉 Miners use their computational resources—mostly time and memory—to execute smart contracts. The user that wants to execute that contract pays a “transaction fee” to the miner in exchange for their computational resources. 

👉 The amount of the transaction fee can vary depending on the complexity of the transaction. A complex smart contract with many operations consumes more computational resources, so it requires a higher transaction fee. 

👉 Transaction fees help with two things:

  1. Incentivizing miners. It helps to ensure that a blockchain remains decentralized by incentivizing miners to get paid and participate in the network. 
  2. Preventing spam and abuse. Requiring a fee to run the code deters spam accounts from sending too many transactions to the network.

🧠 Reminder: The Bitcoin network incentivizes miners by letting them create new bitcoins and transfer them to their own accounts. The goal here is similar. But this time, the user that wants to run the code has to pay the fee, which is in the form of the blockchain's native cryptocurrency. 

💅 Fun fact: The transaction fee is called different things for different blockchains. Ethereum and Cosmos use the label of “gas fee” while Solana calls it “rent.” 

Comments

You need to enroll in the course to be able to comment!

Stay in the know

Never miss updates on new programs and opportunities.

Rise In Logo

Rise together in web3!

Disclaimer: The information /programs / events provided on https://patika.dev and https://risein.com are strictly for upskilling and networking purposes related to the technical infrastructure of blockchain platforms. We do not provide financial or investment advice and do not make any representations regarding the value, profitability, or future price of any blockchain or cryptocurrency. Users are encouraged to conduct their own research and consult with licensed financial professionals before engaging in any investment activities. https://patika.dev and https://risein.com disclaim any responsibility for financial decisions made by users based on information provided here.