UpdateNftContractDraft

This mutation is used to configure the contract deployment process before or after the contract deployment.

Sample mutation

mutation UpdateNftContractDraft($contractId: UUID1!, $input: NftContractDeploymentInput) {
	UpdateNftContractDraft(contractId: $contractId, input: $input) {
    id
    nftContractId
    nftContract {
      id
      nftContractType {
        id
        name
      }
      name
      symbol
      networkId
      wallet {
        id
      }
    }
    collectionType
    collectionDescription
    status
    asciiMark
    deploymentType
    mintingMethod
    deploymentFlag
    baseContractStatus
    extensionContractStatus
    registerExtensionStatus
    hotWalletApprovalStatus
    delayedRevealStatus
    isRedeemable
    redeemableCollectionName
    redeemableCollectionSymbol
    __typename
  }
}

Sample variable

{
  "contractId": "becae1e3-07f5-4ce3-91e3-780938984596",
  "input": {
    "orgId": "8fb128bd-f55d-4bcc-8b6c-0beb684e4d4e",
    "collectionType": "OpenEdition",
    "networkId": "b260424b-bb37-4a3e-86d0-0866175e5e67",
    "contractType": "ERC721Creator",
    "deploymentType": "HOT_WALLET",
    "hotWalletId": "d6162331-802e-488d-a46e-011f410b697d",
    "mintingMethod": "PRE_MINT",
    "isDelayedReveal": false,
    "totalSupply": 100,
    "royalties": [],
    "maxEdition": 0,
    "isRedeemable": true,
    "redeemableCollectionName": "harihk",
    "redeemableCollectionSymbol": "harihk",
    "tokenHoldingAddress": "0x454d25d3f512ADe0f1C488ADaEcCC334759D211E"
  }
}

Sample Response

{
  "data": {
    "UpdateNftContractDraft": {
      "id": "0daadd26-904e-4fdc-b77b-85d4e006b115",
      "nftContractId": "becae1e3-07f5-4ce3-91e3-780938984596",
      "nftContract": {
        "id": "becae1e3-07f5-4ce3-91e3-780938984596",
        "nftContractType": {
          "id": "000d78c8-0902-4477-a947-8d0aec7a4d7a",
          "name": "ERC721Creator",
          "__typename": "NFTContractType"
        },
        "name": "testharik",
        "symbol": "testhari",
        "networkId": "b260424b-bb37-4a3e-86d0-0866175e5e67",
        "wallet": {
          "id": "d6162331-802e-488d-a46e-011f410b697d",
          "__typename": "Wallet"
        },
        "__typename": "NFTContract"
      },
      "collectionType": "OpenEdition",
      "collectionDescription": "",
      "status": "DRAFT",
      "asciiMark": "",
      "deploymentType": "HOT_WALLET",
      "mintingMethod": "PRE_MINT",
      "deploymentFlag": true,
      "baseContractStatus": "PENDING",
      "extensionContractStatus": "NOT_REQUIRED",
      "registerExtensionStatus": "NOT_REQUIRED",
      "hotWalletApprovalStatus": "NOT_REQUIRED",
      "delayedRevealStatus": "NOT_REQUIRED",
      "isRedeemable": true,
      "redeemableCollectionName": "harihk",
      "redeemableCollectionSymbol": "harihk",
      "__typename": "NFTContractDeployments"
    }
  }
}


Arguments

NameTypeDescriptionRequired
contractIdUUIDNFT Contract IDYes
orgIdUUIDOrganization IDYes
collectionTypeStringType of CollectionNo
networkIdUUIDNetwork IDNo
contractTypeStringContract TypeNo
deploymentTypeStringDeployment TypeNo
hotWalletIdUUIDHotwallet IDNo
mintingMethodStringMinting MethodNo
isDelayedRevealBooleanis Delayed RevealYes
totalSupplyIntTotal supplyNo
royaltiesArrayRoyalty detailsNo
maxEditionBigIntRedeemable NFT Contract IDYes
isRedeemableBooleanThe Contract Deployment TypeYes
redeemableCollectionNameStringNewCollection NameYes
redeemableCollectionSymbolStringNew Collection SymbolYes
tokenHoldingAddressUUIDToken Holding AddressYes

Field

NameTypeDescription
NFTContractDeploymentsObjectThe NFTContractDeployments Obejct will return ID, nftContractId, nftContract, collectionType Etc.