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
Request Body
{
"Data": {
"contractAddress": "",
"referenceId": "7835f5c0-7066-458e-83ca-cb117b417065",
"txnHash": ""
},
"Message": "NFT collection created",
"Status": "SUCCESS"
}
{
"message": "Invalid API key in request"
}
{
"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