Project Name : NFTBeats
Project Track : NFT
Team Name : NFTBeats
Team Member(s) : 1
DevPost URL : NFTBeats - Devpost
Project Goal : Aggregate all NFT-related data and serve API and stats
Project Info :
NFTBeats
NFTBeats is TRON-specific and very flexible GraphQL NFT API with beautiful stats.
Video Demo
Live Project
Problem to Solve
Aggregated NFT data is only available in the specific chain, which makes it harder for the TRON NFT project
NFT API is usually not open source. So The community can not manage it
Solution
That’s where NFTBeats comes in. We’re the service for tracking NFT on the TRON blockchain. With our easy-to-use platform, you can quickly and easily see NFT-related data and use it in your dApps with our open-source API.
NFTBeats only uses the open-source library and framework so that it can be run in any environment.
Inspiration
Dune Analytics and Moralis inspire us. Two industry leaders in the world of blockchain data aggregation. And just like them, we’re committed to providing our users with the most accurate and up-to-date NFT information possible.
How it works
I built an ethers.js provider wrapper for the TRON blockchain, then used the provider to fetch block and transaction receipt data through JSON RPC API, then parse it into the NFT transfer log.
Then the data is served by GraphQL API.
Technical Challenge
TRON blockchain block-producing time is 3 seconds, much faster than Ethereum.
This speed makes data syncing a bit difficult. I had to build a parallel processing architecture by google cloud run.
And data API should be very flexible, I used Hasura for the GraphQL engine, and it makes development much faster.
How to use NFTBeats
Top Page
The top page is stats data, and you can access API & docs from the top menu bar.
API
API is served at
The left side is the explorer to build the query.
When you run the query, the result is displayed right side.
Only limited queries are served in the hackathon. Please create PR for more data!
Docs
Docs are served at
https://nftbeats.vercel.app/docs/graphql/blocks.doc.html
This is a detailed GraphQL endpoint for the developer