Created
February 9, 2024 20:13
-
-
Save dmulvi/3c2a5f74dc60d428c9e5ee847980d280 to your computer and use it in GitHub Desktop.
Create a Crossmint NFT Collection
This file contains 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
const options = { | |
method: "POST", | |
headers: { | |
"X-API-KEY": "YOUR_API_KEY", | |
"Content-Type": "application/json", | |
}, | |
body: JSON.stringify({ | |
chain: "polygon", | |
metadata: { | |
name: "Crossmint NFT", | |
symbol: "XMINT", | |
description: "Awesome NFTs", | |
imageUrl: "ipfs://QmVhAkiT3XCPQUaZKHootfEfixmKVqSiq5Y7uVPZyFGQXw", | |
}, | |
}), | |
}; | |
fetch("https://staging.crossmint.com/api/2022-06-09/collections/", options) | |
.then((response) => response.json()) | |
.then((response) => console.log(response)) | |
.catch((err) => console.error(err)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment