Giter Site home page Giter Site logo

datascraper's People

Contributors

rshtirmer avatar

Watchers

 avatar  avatar  avatar

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
  • 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)

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.