This is more of a top-level question that Iāve been trying to solve. Keep in mind I am not a developer but have some experience with front-end.
I have a Moralis server set up to watch a locking contract for dxsale. The data is captured beautifully in the tables.
However I want to grab more data to add into new columns in the table. For instance, grabbing the token address of whatās being locked. This involves some queries of the initial data Moralis is grabbing. Another example is that I have an API I can query to get more information on that token, which I would then also like to add to that table.
Iām not sure how to approach thinking about how to get and add this data to my tables. Iāve checked all the examples and still Iām not sure how I would execute server side code to get this additional info. I have two thought processesā¦
-
Execute cloud functions when users login to fill in the data, and have a state variable that indicates whether a row has already been filled (by another user interaction). In a sense, piggybacking on user interaction to collect that additional information. This is not quite what I want, since if no users log in for a period of time, the data in the table may not be updated as quickly as Iād want to.
-
Set up another server to talk to the Moralis server through Webhooks? Iām really lost here. Maybe schedule repeating cronjobs, but I donāt see much ability to add custom jobs. I guess Iām looking for a way to run serverside functions independently from users.
Any advice on how to approach this is most appreciated!