Replies: 2 comments 9 replies
-
@AGMASO Yes, ethers has its own functions for listening for events and Patrick had used those many times in the course. Like Patrick also used those while testing the events in lesson 9 and others. |
Beta Was this translation helpful? Give feedback.
-
Hi @alymurtazamemon Thank you so much for your answer. After I wrote this message, I reviewed the older lesson and I saw that we used those functions of ethers to listen to events. But still have few questions about the centralized server strategie: 1- Why is he using Moralis to listen to the events and to store the data if we could use Ethers functions such as 2- I have followed the instructions to set a self-host moralis server and I used the Streams of Moralis to listen to the events of the contract and store the data in MongoDB. My question is: Can I follow now the tutorial of Patrick? I see he uses some moralis's functions (for example Having the data stored in MongoDb, will this work? Or should I create some GET method on the server-side (in this case the self-hosted Moralis-server) to fetch the data? Thank you so much |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Guys!
My name is Alejandro G. I´m currently in the Lesson 15 and a bit discourage. I have tried to host myself the Moralis server following the instructions, but after all, i found out is not possible to connect the Moralis Server/streams to the hardhat local node and to listen to events.
I have tried also to create a Stream to listen to the events of the NFTmarketPlace contract deployed to GOerli Blockchain, but somehow also not successful.
I will try to follow the Lesson and continue with the Decentralize option , which is TheGraph, but:
1- Are there other alternatives to listen to the blockchain and add the events triggered to a database (for example MongoDB), the same way as Moralis?
2- I would like to learn a Centralized way to listen to events or other info from the blockchain.
I will appreciate if someone could bring a bit of light about this theme. I'm a bit lost/confused.
Thank you so much to all of you!!
Beta Was this translation helpful? Give feedback.
All reactions