Giter Club home page Giter Club logo

rarity-ranking-nft's Introduction

Rarity-Ranking-NFT

This Project is a fork of Ethereum Boilerplate and demonstrates how you can build your own NFT Rarity Ranker.

Preview

⭐️ Star us

If this boilerplate helps you build Ethereum dapps faster - please star this project, every star makes us very happy!

🚀 Quick Start

📄 Clone or fork Rarity-Ranking-NFT:

git clone https://github.com/IAmJaysWay/Rarity-Ranking-NFT.git

🔎 Navigate to the generator folder and initialize the rarity generator and install moralis

cd Rarity-Ranking-NFT
cd generator
npm init
npm install moralis

🖼️ Provide your appId and serverUrl and desired collectionAddress and collectionName in the main.js file

const serverUrl = ""; //Moralis Server Url here
const appId = ""; //Moralis Server App ID here

const collectionAddress = ""; //Collection Address Here
const collectionName = ""; //CollectioonName Here

🏃 Run the Rarity Generator

node main.js

💿 Return to the Origin Repo and Install all dependencies:

cd -
yarn install 

✏ Rename .env.example to .env in the main folder and provide your appId and serverUrl from Moralis (How to start Moralis Server) Example:

REACT_APP_MORALIS_APPLICATION_ID = xxxxxxxxxxxx
REACT_APP_MORALIS_SERVER_URL = https://xxxxxx.grandmoralis.com:2053/server

🎁 In /src/components/QuickStart.js Add the NFT collection as an Option(s) to the Select Input (with value corresponding to the collectionName used when running the rarity generator)

<Option value="YOUr COLLECTION NAME"> Collcetion Name </Option> 

🚴‍♂️ Run your App:

yarn start

rarity-ranking-nft's People

Contributors

a6b8 avatar abdulmalik97 avatar algotrader999 avatar banalitoraulito avatar codewithpom avatar comingalive avatar filipmartinsson avatar iamjaysway avatar ivan-liljeqvist avatar locothedev avatar matjaz avatar saviour1001 avatar toledoroy avatar y0moo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rarity-ranking-nft's Issues

Solana Integration

Not a issue but would love something similar to this for Solana NFTs, not sure if thats possible with only the basic api release on moralis yet.

can we open this back up

not sure if this thread got hidden since it's closed. curious to hear your thoughts. have a nice new year.

#1

Null metadata

Hello I have a ERC1155 collection and I am getting null metadata when trying to run any ideas?

cannot read properties of undefined reading map:

file:///C:/Users/josh/Downloads/sqddd/Rarity-Ranking-NFT-main/generator/main.js:56
let nftTraits = metadata[j].map((e) => e.trait_type);
^

TypeError: Cannot read properties of undefined (reading 'map')
at generateRarity (file:///C:/Users/josh/Downloads/sqddd/Rarity-Ranking-NFT-main/generator/main.js:56:29)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

Getting TypeError: Cannot read property 'attributes' of null error

I keep getting a TypeError: Cannot read property 'attributes' of null error on line:
let metadata = allNFTs.map((e) => JSON.parse(e.metadata).attributes);

If I limit the i < 1500 on line 29 I do not get the error (but obviously do not get the full collection).

any thoughts?
Thanks

Avalanche Ranker

Hey. This is amazing. Thank you so much for your work.

How do we get this to work with avalanche instead of ethereum?

Error: Cannot find module 'rxjs'

keep getting this error, everything is installed properly and looked around for solutions, I've tried npm install --save rxjs-compat but that didn't work.

Cannot read properties of null (reading 'attributes')

TypeError: Cannot read properties of null (reading 'attributes') at /Users/timemachine/Downloads/Rarity-Ranking-NFT-main/generator/main.js:38:59 at Array.map (<anonymous>) at generateRarity (/Users/timemachine/Downloads/Rarity-Ranking-NFT-main/generator/main.js:38:26)

I keep getting this error when trying to run the rarity generator.

I tried the repo and watching the tutorial video, ended up with the same problem each time.

Any ideas?

Rarity Generator issues

The rarity generator just stops running randomly and does not complete a cycle of 10K (BAYC). I have to re-start it repeatedly. Node just dies off and doesn't give you any clue about why. I have tried adjusting the timer to 30sec and still get timeouts.

Another issue i have noticed is that if you restart the rarity generator, it will add duplicates to the moralis database. I think it should have a checking feature where it would see if that tokenId exists in the database

Thanks for a cool tool and for the vids. :D

Load collection when page loads

Has anyone tried to load the collection initially when the page loads, instead of loading it using a drop down? I want to be able to call the collectionChanged(collection) function when the application starts. How can one do that?

image

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.