Install node_modules:
$ yarn / yarn install / npm i / npm install
-
First thing first you have to select all attributes to folder Layers (Make sure format name folder and files is the same like the example inside the Layers folder)
-
Run
$ yarn run generate / npm run generate
-
If the function success, folder Build will appears with all thing we need inside.
-
Check all instruction you need to change inside file
utils/functions/getMetadata_API
-
You need to make sure url response is the path of url metadata you want to get (which contract from paras you want to).
const response = await fetch( "https://api-v2-mainnet.paras.id/token/CHANGE_THIS.near::" + i );
-
Run
$ yarn run generate_api
-
Make sure you've done Generate first
-
Run
$ yarn run rarity
-
Results will appears inside your terminal as log
-
Make sure you've done Generate first
-
You can change file name or path inside
utils/functions/getRarity_OurMetadata
file -
Run
$ yarn run rarity_our
-
Make sure you've done Generate API first
-
You need to make sure path rawdata inside file
utils/functions/getRarity_fromMetadata_API
is the path of metadata you want to get. -
Change file name or path inside
utils/functions/getRarity_fromMetadata_API
file -
Run
$ yarn run rarity_api
-
Make sure you've done Generate first
-
You need to make sure path rawdata inside file
utils/functions/fetchUrl_IPFS.js
is the path of metadata you want to get. -
Run
$ yarn run fetch_url