Last active
June 20, 2024 19:03
-
-
Save jcurbelo/5cda994d82c8428898a7723cd712cb32 to your computer and use it in GitHub Desktop.
Upload Multiple Tokens to Nifty Kit
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" | |
headers = { | |
"Accept": "application/json", | |
"Content-Type": "application/json", | |
"X-API-Key": "YOUR_API_KEY" | |
} | |
response = requests.request("POST", url, json=data, headers=headers) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A simple script to upload tokens metadata to Nifty Kit using requests
How to use it
You must have a
nifty.json
file on the same dir as this script. Must follow the following specs: