Quick Start

🚄 Learn how to create an account, a new game collection, and mint your first NFT!

To get you started with the ChainEngine, in this guide, we'll quickly teach you how to sign up, log in, create a new game, and mint your first NFT.

1948

📝 Step 1: Register Account

  1. Start with registration
  2. Verify your email address.
  3. Login using your registered email address here.

🎮 Step 2: Create a Game

To create a game on the ChainEngine console, follow the steps below:

  1. Click the Create Game button on the ChainEngine console.

  2. Fill in the blank fields, then click on the Create Game button.

📘

Note:

Please upload the right image for your game, as the image will represent your game on the authentication page.

588

📍 Step 3: Mint NFTs

There are two ways to mint NFTs, i.e., via console or API. To mint NFTs via console, refer here.

To mint an NFT via API, you need your gameId, API Secret, and API Key. Follow the steps below:

  1. Go to the Game Details page and copy the gameId.
555
  1. Go to the Account tab, then copy your API Key and API Secret.
1502
  1. Use the API command below and insert your gameId, API Secret, and API Key.
curl --location --request POST 'https://api.chainengine.xyz/nfts/game/YOUR_GAME_ID' \
--header 'x-api-secret: YOUR_API_SECRET' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw '[
     {
          "supply": 5,
          "description": "The R-301 Carbine, or R-301, is an assault rifle that utilizes Light Rounds. It can be switched between fully-automatic and semi-automatic fire modes.",
          "name": "R - 301",
          "imageURI": "https://goodyousan.com/wp-content/uploads/2021/04/Apex-Legends-2021_04_13-22_19_01-2-1024x568.png",
          "mintToAccount": false
     }
]
'

The API command above will return the NFT details you just minted, as shown below. For further details, please refer to the payload response here.

[
  {
    "id": "1d8d12a8-8bf1-4d6a-812c-51394a5aec30",
    "contractAddress": "0x0F2aa1D728AA38cf90C558fACD659113C4408303",
    "onChainId": "14",
    "chain": "mumbai",
    "transactionHash": "0x04709b4097fd8b75a724a3d196b3ae12e5e241113cb11bc97ad00958fe098bae",
    "accountId": "ba6421f9-cdc0-4074-9262-80baf217fca8",
    "gameId": "d69b3e60-d907-40f6-a295-07ca0899b059",
    "status": "ONCHAIN",
    "metadata": {
      "name": "R - 301",
      "description": "The R-301 Carbine, or R-301, is an assault rifle that utilizes Light Rounds. It can be switched between fully-automatic and semi-automatic fire modes.",
      "image": "http://api.chainengine.xyz/nfts/1d8d12a8-8bf1-4d6a-812c-51394a5aec30/image",
      "URI": "ipfs://QmTMhkkDRxtYW3Xcvvdm18yT12yEaLvJp4N6oCWTL7AcB3"
    },
    "supply": 5,
    "supplyAvailable": 5,
    "createdAt": "2022-09-28T05:44:26.420Z"
  }
]
730

✅

Well done, you just minted your first NFT!

The developer console should have a new NFT now. You can now manage your NFT through the Console, API, or SDK.

📚 Find Out More!

Check out our high-level overview and get started with our SDK here.

💬 Feedback?

Do you have any suggestions or require any kind of assistance? Please get in touch: [email protected]