I'm having some concerns while developing a smart contract. As I see, the Ethereum blockchain can be known as a distributed database, where transactions are stored as hashes in a block. A smart contract is the back-end of the DApp. In my scenario, I store data "this is my input" in a block by sending a transaction from accountA to accountB. As I see(Or I missed something)there is no option for me to get that data from the smart contract. Is it because the code for that function not supported by the solidity language, or it is the issue from the EVM, that has no opcodes to retrieve and decode the transaction? I read multiple documents but no one mentioned how smart contracts can get data that is not stored in its own storage.
Regards,
I store data "this is my input" in a block by sending a transaction from accountA to accountB. As I see, there is no option for me to get that data from the smart contract.
... Where did that smart contract "all of the sudden" came from??? Please consider adding a short coding example in order to clarify your question.