Create NFT Collection
NFT Collection can be created using this method. The weightage for this API is 5.
API Specification
Create NFT Collection
POST https://api.krypcore.com/api/v0/easy-nft/createNFTCollection
Create NFT Collection under the given instance.
Headers
Authorization*
String
User Auth Key obtained from Dash
DappId*
String
DappId
Chainid*
String
Chain ID
Request Body
chainId*
String
Chain Id of the Blockchain Protocol
ERCStandard*
String
Standard can be ERC721 or ERC1155
collectionDescription*
String
Description of the NFT collection
collectionImage*
Base64 of the image
This image is used in displaying collection in the Easy NFT dashboard
collectionName*
String
Name of the collection
collectionSymbol*
String
Symbol of the collection
walletType*
String
non-custodial or dev-wallet
isSoulBound*
Boolean
Is NFT represent a soul bound token?
custodialWalletAccessToken
String
Wallet ID of non-custodial wallet
privateKey
String
Private Key of developer wallet
{
"Data": {
"contractAddress": "",
"referenceId": "7835f5c0-7066-458e-83ca-cb117b417065",
"txnHash": ""
},
"Message": "NFT collection created",
"Status": "SUCCESS"
}{
"Data": null,
"Message": "error deploying contract insufficient funds for gas * price + value",
"Status": "Failure"
}Take a look at how you might call this method using our official libraries, or via curl:
curl --location --request POST 'https://api.krypcore.com/api/v0/easy-nft/createNFTCollection' \
--header 'Authorization: xxxxxxxxxxxxxxxxxx' \
--header 'DappId: xxxxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"ERCStandard": "ERC721",
"chainId": "80001",
"collectionDescription": "This is NFT collection description",
"collectionImage": Base64 of the Image,
"collectionName": "collectionName",
"collectionSymbol": "collectionSymbol",
"custodialWalletAccessToken":"xxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
"isSoulBound": false,
"walletType": "non-custodial"
}'var axios = require('axios');
var data = JSON.stringify({
"ERCStandard": "ERC721",
"chainId": "80001",
"collectionDescription": "This is NFT collection description",
"collectionImage": "Base64 of the Image"',
"collectionName": "collectionName",
"collectionSymbol": "collectionSymbol",
"custodialWalletAccessToken":"xxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
"isSoulBound": false,
"walletType": "non-custodial"
});
var config = {
method: 'post',
url: 'https://api.krypcore.com/api/v0/easy-nft/createNFTCollection',
headers: {
'Authorization': 'xxxxxxxxxxxxxxxxxx',
'DappId': 'xxxxxxxxxxxxxxxxxx',
'Content-Type': 'application/json'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});import requests
import json
url = "https://api.krypcore.com/api/v0/easy-nft/createNFTCollection"
payload = json.dumps({
"ERCStandard": "ERC721",
"chainId": "80001",
"collectionDescription": "This is NFT collection description",
"collectionImage": "Base64 of the Image",
"collectionName": "collectionName",
"collectionSymbol": "collectionSymbol",
"custodialWalletAccessToken":"xxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
"isSoulBound": False,
"walletType": "non-custodial"
})
headers = {
'Authorization': 'xxxxxxxxxxxxxxxxxx',
'DappId': 'xxxxxxxxxxxxxxxxxx',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.krypcore.com/api/v0/easy-nft/createNFTCollection"
method := "POST"
payload := strings.NewReader(`{
"ERCStandard": "ERC721",
"chainId": "80001",
"collectionDescription": "This is NFT collection description",
"collectionImage": "Base64 of the Image",
"collectionName": "collectionName",
"collectionSymbol": "collectionSymbol",
"custodialWalletAccessToken":"xxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
"isSoulBound": false,
"walletType": "non-custodial"
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "xxxxxxxxxxxxxxxxxx")
req.Header.Add("DappId", "xxxxxxxxxxxxxxxxxx")
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}Last updated
Was this helpful?