Delegate burn NFTs

POST /v1/smart-contract/burn/nfts/{smartcontractId}

  • API_KEY

Path params:

  • smartContractId (required): Unique collection id.

Request Body

Type
Description
Required

Array

List of NFTs

Yes

Example


[
    {
        "_id": "660db5fc78770e3a6394f186", //required
        "idNFT": 2, //required
        "..." : "..."
    },
    {
        "_id": "660db5fc78770e3a6394f188", //required
        "idNFT": 4, //required
        "..." : "..."
    }
]

Response:

  • result: Response data

{
    "result": {
        "contractPackage": "911300b2bc6725d105d5dad82106e98fd1eb846d4580030ebca49c9ac670eeb3",
        "nftsBurned": [
            {
                "id": "6626dadb6bae17775b0005c9",
                "hash": "6eadafec7bfab35810b20dfe3f35b0521ff3eff4b7643a20a7bcd6dd8637a6b2",
                "idNFT": 0,
                "nftBurnStatus": 1
            }
        ]
    },
    "error": null
}
  • nftsEvolved: Array list with every nfts transactions and data about transaction

    • nftsBurned: NFT status in Blockchain. If something is not working, you receive STATUS_IN_BC.FAILED (4). If transaction was sent succesfull : STATUS_IN_BC.PENDING. If NFT was evolved in Blockchain STATUS_IN_BC.MINTED

    • hash: Hash Transaction

    • id: Id in Minteandome DB

    • idNFT: id NFT in blockchain.

  • STATUS_IN_BLOCKCHAIN

export enum STATUS_IN_BC {
    PENDING, // 0
    SIGNED, // 1
    MINTED, // 2
    REJECTED, // 3
    FAILED, // 4
    DEPRECATED // 5
}

Last updated