Ship NFT apps on Avalanche


September 27, 2022


← Back

Center is a great place for developers. So is Avalanche.

That’s why we’re excited to announce that Center NFT APIs support Avalanche.

Developers on Avalanche can now use Center’s best-in-class APIs to build rich search experiences, create powerful NFT renderers, and retrieve comprehensive NFT data.

Get started

We already support NFT marketplaces, wallet applications, data intelligence tools and portfolio trackers (just to name a few) — what will you build?

Or check out a few examples:

Demo: Search for a collection

Request

curl -XGET "<https://api.center.dev/v1/avalanche-mainnet/search?query=chikn&limit=3>"

Result

{
  "results": [
    {
      "id": "avalanche-mainnet/0x8927985B358692815E18F2138964679DcA5d3b79",
      "name": "chikn",
      "previewImageUrl": "<https://cdn.center.app/v2/43114/db9e832efbe01207461c7f80daf8777e7400d4e0efe70df191f8ac29ae92b849/2292cae839dfaeb1d753d23996d0c29c4bd0f478de48eb42f03a4cc6fcb369fd.jpeg>",
      "relevance": 8.646469,
      "url": "<https://center.app/avalanche-mainnet/collections/0x8927985B358692815E18F2138964679DcA5d3b79>",
      "address": "0x8927985B358692815E18F2138964679DcA5d3b79",
      "type": "Collection"
    },
    {
      "id": "avalanche-mainnet/0xE3943A542c31F53e93312bf51D24B9103f628A18",
      "name": "chikn",
      "previewImageUrl": "",
      "relevance": 8.273326,
      "url": "<https://center.app/avalanche-mainnet/collections/0xE3943A542c31F53e93312bf51D24B9103f628A18>",
      "address": "0xE3943A542c31F53e93312bf51D24B9103f628A18",
      "type": "Collection"
    },
    {
      "id": "avalanche-mainnet/0x6FCED97Ab31549601591D31b1a9FFC26ADEc3a58",
      "name": "Chikn",
      "previewImageUrl": "",
      "relevance": 8.270896,
      "url": "<https://center.app/avalanche-mainnet/collections/0x6FCED97Ab31549601591D31b1a9FFC26ADEc3a58>",
      "address": "0x6FCED97Ab31549601591D31b1a9FFC26ADEc3a58",
      "type": "Collection"
    }
  ]
}

Demo: Find all assets owned by a particular address

Request

curl -XGET "<https://api.center.dev/v1/avalanche-mainnet/account>
/0x7b65AcfC694ba8f664E7D0232d059b3De568C766/assets-owned?limit=3"

Result

{
  "items": [
    {
      "address": "0xbc5B48E72a9EfE176f211141B3B255B643a740f4",
      "tokenId": "290",
      "smallPreviewImageUrl": "<https://cdn.center.app/v2/43114/1d000b8e1fe5768c5c65a59a45ad5824edd3fa4cff268aaa60b663db3b0784e0/0cd721d72efa76f4507e3f2ff7bfe1dac049ee88a5fdf65d68da8e7466fc7f74.png>"
    },
    {
      "address": "0xbc5B48E72a9EfE176f211141B3B255B643a740f4",
      "tokenId": "237",
      "smallPreviewImageUrl": "<https://cdn.center.app/v2/43114/f35e130d8421d0474785a39b7c50fc9c24c9f244dc29da3b1376456c7db979c9/358a8db624d75745ffede80e66f8ae735be9bfbd844a0436a5e4c0837341e866.png>"
    },
    {
      "address": "0x2CCa3a1a45C1b1036D7194CD15A981B8C2f9DeE4",
      "tokenId": "870",
      "smallPreviewImageUrl": "<https://cdn.center.app/v2/43114/dbbb6270e00d4a7b63dbe3bf075690ba08fdcf3c90607142053c60f06229c894/0f34d2af88c55f7902eb1fa65d1314a9af8a1a7810a5c4f78bd206051f344663.png>"
    }
  ],
  "paging": {
    "offset": 0,
    "limit": 3,
    "onLastPage": false
  }
}