Where my number is stored ? #2053
-
Hello |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
@akugone : Yes, your stored number is stored in the smart contract which is on the blockchain, Hopefully, It will clear your doubt! |
Beta Was this translation helpful? Give feedback.
-
Hey @akugone when you deploy the contract, your stored number is deployed along with it in the form of a transaction. So if you want to read or retrieve the number, you could go through the transaction history of your contract address and see the data that was deployed with the contract. Alternatively, for public variables like our store value, you can read the value from the contract state in the contract section of etherscan. |
Beta Was this translation helpful? Give feedback.
Hey @akugone when you deploy the contract, your stored number is deployed along with it in the form of a transaction. So if you want to read or retrieve the number, you could go through the transaction history of your contract address and see the data that was deployed with the contract. Alternatively, for public variables like our store value, you can read the value from the contract state in the contract section of etherscan.
Now when it comes to storing a number in our store function, the process of storing is done in a transaction format and all the data is stored as a transaction hash that is not necessarily on the same block as the contract. However, this interaction is recorded and…