Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step 1. Get all Ethereum NFT transactions #17

Open
yaseenkhanmohmand opened this issue Apr 21, 2022 · 4 comments
Open

Step 1. Get all Ethereum NFT transactions #17

yaseenkhanmohmand opened this issue Apr 21, 2022 · 4 comments

Comments

@yaseenkhanmohmand
Copy link

yaseenkhanmohmand commented Apr 21, 2022

Hi folks,

I am breaking down the request into smaller pieces, for the first piece we need in our database all events for Eth NFTs.

We can get these events from the moralis api for transfer events.

If all events are too difficult to get, get all events for nft projects that have atleast 10 eth in volume.

@pan-xiong
Copy link
Collaborator

@yaseenkhanmohmand
Hi, is this your recommend API? I already save trade transfers in the database,

Screen Shot 2022-04-22 at 5 49 09 pm

@yaseenkhanmohmand
Copy link
Author

yaseenkhanmohmand commented Apr 22, 2022 via email

@yaseenkhanmohmand
Copy link
Author

This will be my recommendation, please feel free to find other ways to achieve this:

  1. Use the api below to pull information from the eth blockchain. This API provides all NFT transactions on the eth blockchain.
    If you want to pull all historic data, pull the data in chunks.

image

So in one operation pull all data from block 1 million to 7 million,
Other operation to pull 7 mill to 8 mill
8 to 9
And so on.

If you reach api limits make multiple accounts on Moralis and use multiple apis.

  1. You will run into errors. You can detect the error by checking the status code of the response you get from this api, there are two kinds of errors:
    a. Api limit error, to resolve this create extra apis keys by creating extra accounts, and use them rather than using the same api. Please let me know if my api key is needed i can provide.
    b. Random other errors Moralis throws (there are some other errors that morallis can throw your way): to resolve this issue, you can write in your query that when ever it gives you an error code other than the rate limit error, that you should just repeat the same request.
    If that does not solve the problem, just query the block again.

All data successfully created:
3. Once you have all the data in your database we will store it and for example call it nft_trades_master,

  1. create a query on top of this nft trades master that filter the projects with more than 10 eth volume and keep them in a separate table we will call this table imp_nft_trades,
  2. we will use this separate table for all our operations.
  3. Every 24 hours Keep checking nft trades master for any contract that has reached 10 eth volume, when a contract reaches 10 eth start pulling data for that nft into the imp_nft_trades table.

@yaseenkhanmohmand
Copy link
Author

yaseenkhanmohmand commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants