Encode-Club-Solidity-Foundations / Lesson-01

21 stars 14 forks source link

Query #18

Open SangoSaluga opened 2 years ago

SangoSaluga commented 2 years ago

what does it mean to query in a smart contract? i understand that functions can be utilized to retreive and alter the data but i am confused by the description given in the storage example

MatheusDaros commented 2 years ago

Hello @SangoSaluga Query means retrieving data from the smart contract. This can be done by calling the execution of a read-only function in a node/provider to process the result from it. It all gets handled "under the hood" by Remix when we call a read-only function in a contract.