I’m trying to understand what would be the easiest way to do the following:
My contract has e few state variables that won’t change a lot. Therefore it feels overly complicated to fetch these values every time a user connects to his dashboard.
Do I understand correctly that the easiest way to go about this would be to use the sync and store contract events? This would, if i understand correctly, store the state variables in a local database?
If this is indeed the correct way to go about this, is it required to create an event for every setter function in order to keep the database updated or is there a way to for example fetch the contract variable every few hours?
If I didn’t understand correctly, what would be the best way to store state variables that don’t change often and display them on my react website?
Thanks a lot