This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "inputs": [ | |
| { | |
| "internalType": "string", | |
| "name": "tokenURI", | |
| "type": "string" | |
| }, | |
| { | |
| "internalType": "uint256", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import csv | |
| import json | |
| import re | |
| data = [] | |
| result = [] | |
| def extract_attrs(kwds_list): | |
| kwds = kwds_list.split(';') | |
| attrs = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import os | |
| FOLDER = './metadata' | |
| result = [] | |
| # read all .json files in the folder | |
| print('Reading files...') | |
| json_files = [f for f in os.listdir(FOLDER) if f.endswith('.json')] | |
| print('Found {} files.'.format(len(json_files))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="module" src="https://unpkg.com/@niftykit/components/dist/components/components.esm.js"> | |
| </script> | |
| <div> | |
| <div class="dropkit"> | |
| <h3>Mumbai</h3> | |
| <nk-dropkit apikey="pu16DaU0xXCaHnH5Vj3G" dev="true"></nk-dropkit> | |
| </div> | |
| <div class="dropkit"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import json | |
| data = {} | |
| with open('nifty.json') as f: | |
| data = json.load(f) | |
| url = "https://api.niftykit.com/v3/collections/tokens" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from typing import Dict, List | |
| import requests | |
| import json | |
| import glob | |
| CHUNK_SIZE = 128 | |
| URL = "https://ipfs.infura.io:5001/api/v0/add" | |
| HEADERS = { | |
| "Authorization": "Basic YOUR-ENCODED-API-KEY" | |
| } |