Transactions and Blocks in Blockchain #5211
-
I know that blocks consist of transactions, but, if I use a store method or modify a variable in a smart contract, is the smart contract deployed again? And is a seperate block created for this "transaction"? Blocks in blockchain and smart contract are immutable so I dont understand how this works |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@sikehish Yes, blocks contain the transactions and it creates and records a transaction on the blockchain when you deploy a smart contract. When you update/write to your smart contract, it does not redeploy the smart contract instead it creates a new transaction which indicates that the address has performed a transaction(it could be updating a variable or transferring ethers to another address) and added to upcoming blocks. |
Beta Was this translation helpful? Give feedback.
@sikehish Yes, blocks contain the transactions and it creates and records a transaction on the blockchain when you deploy a smart contract. When you update/write to your smart contract, it does not redeploy the smart contract instead it creates a new transaction which indicates that the address has performed a transaction(it could be updating a variable or transferring ethers to another address) and added to upcoming blocks.