Quick question, i need to create an event listener from a contract, and store it in a json, its a referral tree, i need to access from my frontend. Anyone knows what would be the easiest serverside solution for that ?

Mar 14, 2022, 12:43 AM
3 options:
- subgraph (graphQL) - for more long term projects with big expected load and good architecture
- https://docs.moralis.io/moralis-server/automatic-transaction-sync/smart-contract-events
- manually create some code that fetches events by name in smart contract
I would suggest to use second link, as a database you going to use JSON file
Mar 14, 2022, 12:48 AM
ill look into those, thanks for the help
Mar 14, 2022, 12:50 AM

© 2024 Draquery.com All rights reserved.