Contract

Contract represents a smart contract on the blockchain.

Contract Deployment

When you sign up in the Niftory Admin Portal, we help you automatically deploy a contract for your application. All NFTs minted for your application are based on this contract, and user wallets have to be initialized for this contract.

For details on how to deploy a smart contract, follow this guide.

Contract API

There are several ways to query for your Contract.

contract - returns the Contract for the current App context (determined by API Key)

query ContractQuery {
  contract {
    id
    address
    blockchain
    name
  }
}
Sample Response
{
  "data": {
    "contract": {
      "id": "56",
      "address": "0xf8d6e0586b0a20c7",
      "blockchain": "FLOW",
      "name": "MyApp Contract",
    }
  }
}

app query (and include the Contract fragment)

query AppWithContractQuery {
  app {
    id
    contract
  }
}

Last updated