-
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
Because every function cost gas in solidity. If you are explicitly writing/storing on blockchain it will cost more gas fee because miners have to mined that transaction but if you are only reading it will not cost extra gas fee. In ethereum every transaction which occurred on the platform should be greater than the 21000 gas mark. As you can see store function cost is greater than 21000 gas mark because it is storing data while retrieve and add functions does not because they are only reading or dealing with local variable/data. |
Beta Was this translation helpful? Give feedback.
-
In the case of ethereum we are dealing with validators so you can change the term miners with validators. |
Beta Was this translation helpful? Give feedback.
-
Hello @yeskaydee, those gas estimates only apply when the
|
Beta Was this translation helpful? Give feedback.
-
@yeskaydee This is an execution gas because reading also needs nodes to execute some functions to give the result of the function but it is not a transaction cost which cost ethers. |
Beta Was this translation helpful? Give feedback.
Hello @yeskaydee, those gas estimates only apply when the
pure
andview
functions are called by a contract, in that case gas will be charged.view
andpure
function execute aREAD
operation as long they are invoked by an Externally Owned Account; this is an account that knows its private key, e.g. your Metamask wallet. In this case no gas will be charged.