nftContractRegisterExtension

This mutation registers the NFT Contract extension

Sample Mutation

Register an NFT contract extension:

mutation{
  nftContractRegisterExtension(contractId:"5f256d06-d155-4119-8e0d-b6ea902fda36"
  maxTokenSupply:100
  extensionType:ProvenanceExtension){
    id
    nftContractType{
      id
      name
    }
    name
    symbol
    wallet{
      id
      name
      address
      parentType
      parentID
    }
    contractAddress
    marketplaceAddress
    activationTxHash
    deploymentTxHash
    mediaTxHash
  }
}

Sample Response

{
  "data": {
    "nftContractRegisterExtension": {
      "id": "5f256d06-d155-4119-8e0d-b6ea902fda36",
      "nftContractType": {
        "id": "dac53439-6f45-4874-b499-a981b63c093d",
        "name": "ERC721Creator"
      },
      "name": "",
      "symbol": "",
      "wallet": {
        "id": "c9b0e4dd-9403-458c-985d-ce8dd3c57b22",
        "name": "Wallet_1",
        "address": "0x8b644Bedfc172FeC9371FD4302B40792e941CAC6",
        "parentType": "organization",
        "parentID": "a1dc174d-abf4-47d3-be3c-9281c6eba456"
      },
      "contractAddress": "0xd444B5c2f7071c74468DE0cDB065484d33DE42dC",
      "marketplaceAddress": "",
      "activationTxHash": "0x97d2a1738ebc5d688fa3e443705da66a4100a8e9efd452efd012cc2174e63e80",
      "deploymentTxHash": "0xde1b0fff9e7937714d7b7a22a3eb7562fa1103aea9750a27d86da2102b315f34",
      "mediaTxHash": ""
    }
  }
}

Arguments

NameTypeDescriptionRequired
contractIDUUIDThe NFT contract ID.Yes
maxTokenSupplyIntegerThe maximum amount of token supply.Yes
extensionTypeEnumThe NFT contract extension type. The value can be either ProvenanceExtension or RedeemableExtension.Yes

Returns

NameTypeDescription
NFTContractObjectAn object that contains all the information about NFTContract object.

Example

Register an NFT contract extension by contract ID, max token supply, and extension type: