Mint NFT
NFT can be Minted using this method. The weightage for this API is 5.
API Specification
Mint NFT
POST
https://api.krypcore.com/api/v0/easy-nft/createNFT
Create NFT under the given instance.
Headers
Authorization*
String
User Auth Key obtained from Dash
DappId*
String
DappId
Request Body
name*
String
Name of the NFT
file*
file
File to be used as NFT
description*
String
Description of the NFT
erc*
String
Either ERC721 or ERC1155
quantity*
Number
No of NFT to be minted
recepientAddress*
String
Owner of the NFT
attributes
String
attibutes of the NFT
walletType*
String
Wallet type can be either Custodial or non-custodial
contractAddress*
String
Smart contract address in which NFT is minted
chainId*
String
Chain Id of the Blockchain Protocol
custodialWalletAccessToken*
String
Wallet Access token of custodial wallet
{
"Data": {
"NFTMetadata": {
"description": "this is krypc logo",
"image": "https://ipfs-gateway.node.krypcore.io/api/v0/ipfs/ipfs/QmbVnEgY9K1Qypb6Rqf81U8SfmoUfYNgTdsJm3JtvSTYKZ?apiKey=ac2d904a-cad4-425b-a2d7-3a4a8d2b64c6&token=34bc1382-33aa-4306-a331-db5029e8dcee",
"name": "krypc123"
},
"referenceId": "d1b96b38-d0d1-4cf3-898e-62e2babfdd5c",
"tokenURI": "https://ipfs-gateway.node.krypcore.io/api/v0/ipfs/ipfs/QmPherocXDSKLms1tz1Un6qcyyJ56TyKRkhDKjHjEHiAsP?apiKey=ac2d904a-cad4-425b-a2d7-3a4a8d2b64c6&token=34bc1382-33aa-4306-a331-db5029e8dcee",
"txnHash": ""
},
"Message": "NFT got minted successfully",
"Status": "SUCCESS"
}
Take a look at how you might call this method using our official libraries, or via curl
:
curl --location 'https://api.krypcore.com/api/v0/easy-nft/createNFT' \
--header 'Authorization: xxxxxxxxxxxxxxxxxx' \
--header 'DappId: xxxxxxxxxxxxxxxxxx' \
--form 'file=@./Downloads/1622711604-nfts21examples.png' \
--form 'name="krypc55"' \
--form 'description="this is krypc logo"' \
--form 'recepientAddress="0x313bA6399d60ff7c2ee8bCxxxxxxxxxxxxxxxxxx"' \
--form 'attributes=""' \
--form 'quantity=""' \
--form 'erc="ERC721"' \
--form 'contractAddress="0x5D7276C99CE49e90B3eDxxxxxxxxxxxxxxxxxx"' \
--form 'chainId="80001"' \
--form 'walletType="non-custodial"' \
--form 'custodialWalletAccessToken="33e3183c-8356-xxxxxxxxxxxxxxxxxx"'
Last updated
Was this helpful?