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
Name | Type | Description | Required |
---|---|---|---|
contractId | UUID | NFT Contract ID | Yes |
orgId | UUID | Organization ID | Yes |
collectionType | String | Type of Collection | No |
networkId | UUID | Network ID | No |
contractType | String | Contract Type | No |
deploymentType | String | Deployment Type | No |
hotWalletId | UUID | Hotwallet ID | No |
mintingMethod | String | Minting Method | No |
isDelayedReveal | Boolean | is Delayed Reveal | Yes |
totalSupply | Int | Total supply | No |
royalties | Array | Royalty details | No |
maxEdition | BigInt | Redeemable NFT Contract ID | Yes |
isRedeemable | Boolean | The Contract Deployment Type | Yes |
redeemableCollectionName | String | NewCollection Name | Yes |
redeemableCollectionSymbol | String | New Collection Symbol | Yes |
tokenHoldingAddress | UUID | Token Holding Address | Yes |
Field
Name | Type | Description |
---|---|---|
NFTContractDeployments | Object | The NFTContractDeployments Obejct will return ID, nftContractId, nftContract, collectionType Etc. |