Skip to content

Instantly share code, notes, and snippets.

@dmulvi
Created February 9, 2024 20:13
Show Gist options
  • Save dmulvi/3c2a5f74dc60d428c9e5ee847980d280 to your computer and use it in GitHub Desktop.
Save dmulvi/3c2a5f74dc60d428c9e5ee847980d280 to your computer and use it in GitHub Desktop.
Create a Crossmint NFT Collection
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