datascraper's People
datascraper's Issues
Universe DataScraper Architecture
Universe DataScraper Architecture
Goals of the system
The goal of the system includes scraping the ethereum blockchain for past and present NFT transfers and NFT metadata, to establish a searchable database of NFTs and their onchain activity.
Software Flows:
- Monitor New Transfer Events (~every 30 seconds)
- Relay to services via GRPC:
- Service thats writes transfers to pg
- Service thats indexes elastisearch
- Service that decodes and stores NFT content in db if not already processed (tokenURI -> fetch -> metadata)
- Service that checks and cancels orders if any transfers have caused listings in Unvierse OrderBook to go stale
- Relay to services via GRPC:
- Backfill
- Scrape chunks of blocks starting at runtime going backwards filling transfer events until ~Jan 2017 (ERC721 EIP finalized)
- Service thats writes transfers to pg
- Service thats indexes elastisearch
- Service that decodes and stores NFT content in db if not already processed (tokenURI -> fetch -> metadata)
- Scrape chunks of blocks starting at runtime going backwards filling transfer events until ~Jan 2017 (ERC721 EIP finalized)
Interfaces/API Endpoints
- GET NFT (by collection address & tokenID)
- GET NFTs (by collection address)
- GET NFTs (by user address)
- GET NFT Transfers (N most recent)
- GET NFT Transfers (by collection address & tokenID)
- GET NFT Transfers (by collection address)
- Get NFT Transfers (by user address)
Database Tables:
- Transfers:
- NFT Contract Address
- TokenID
- From
- To
- Amount
- Type (ERC721 or ERC1155)
- Transaction Hash
- logIndex
- (Transaction Hash, NFT Contract Address, TokenID) should be unique in db
- NFTs
- NFT Contract Address
- TokenID
- Owner
- NFT Name
- Optimized_url (image)
- Thumbnail_url
- Attributes JSON
- NFT Collections
- Collection Name
- Collection Symbol
- Number of NFTs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.