cennznet / api-nft

Tracks NFTs on CENNZnet
https://cennznet.js.org/api-nft/
Apache License 2.0
0 stars 0 forks source link

NFT API with scanner (mongo db) #1

Closed KarishmaBothara closed 2 years ago

KarishmaBothara commented 2 years ago

Description - This is to track all the nft related data Set up - add env file with provider, MONGO_URI

  1. run docker-compose up to start mongo db service,
  2. run yarn nft:stats -- services scans the block and pushes data in db
  3. run yarn api -- api services which provides the required historic data

End points a. http://localhost:3000/nft/token/56/35/0 - end point to get history of an nft with collection id 56, series id 35 and serialNumber 0 b. http://localhost:3000/nft/listing/653 - get all information history for a listing id c. http://localhost:3000/nft/wallet/5D2XVbob7zYjWzhkZ8nPcBgR7yEhAiXE5rYV8qhKdktrcHSq - get all the nft transaction with a wallet