Center Changelog: November 8, 2022


November 8, 2022


← Back

The best companies get built during the bear markets. Much like our users, we’ve built a lot in the last few weeks. Here are some highlights of things we’ve shipped and improved upon in the last few weeks:

Traits API

Use our Traits API to easily incorporate NFT traits data into your application! You can now use Center to search assets by traits, get traits of assets in a collection or get attribute values for a trait.

Check out an example for BAYC’s Mouth trait:

Request

curl "<https://api.center.dev/v1/ethereum-mainnet/0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D/traits/Mouth>"

Response

{
  "items": [
    {
      "value": "Bored",
      "count": 2272
    },
    {
      "value": "Bored Bubblegum",
      "count": 119
    },
    {
      "value": "Bored Cigar",
      "count": 121
    },
    {
      "value": "Bored Cigarette",
      "count": 710
    },
    {
      "value": "Bored Dagger",
      "count": 49
    },
    {
      "value": "Bored Kazoo",
      "count": 74
    },
    {
      "value": "Bored Party Horn",
      "count": 88
    },
    {
      "value": "Bored Pipe",
      "count": 132
    },
    {
      "value": "Bored Pizza",
      "count": 50
    },
    {
      "value": "Bored Unshaven",
      "count": 1551
    }
  ],
  "offset": 0,
  "limit": 10,
  "onLastPage": false
}

Transfers API

NFTs get transferred. A lot. Now you can use Center’s API to easily track NFT transfers the moment they happen.

Use our Transfers API to retrieve information for asset transfers (e.g., network, addresses, tokenID, block number).

Check out an example for BAYC #1:

Request

curl "<https://api.center.dev/v1/ethereum-mainnet/transfers?collection=0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D&tokenID=1>"

Response

{
  "items": [
    {
      "network": "ethereum-mainnet",
      "address": "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D",
      "tokenId": "1",
      "from": "0xaBA7161A7fb69c88e16ED9f455CE62B791EE4D03",
      "to": "0x46EFbAedc92067E6d60E84ED6395099723252496",
      "blockNumber": 12344148,
      "logIndex": 328
    },
    {
      "network": "ethereum-mainnet",
      "address": "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D",
      "tokenId": "1",
      "from": "0x0000000000000000000000000000000000000000",
      "to": "0xaBA7161A7fb69c88e16ED9f455CE62B791EE4D03",
      "blockNumber": 12292922,
      "logIndex": 86
    }
  ],
  "paging": {
    "offset": 0,
    "limit": 10,
    "onLastPage": true
  }
}

New Documentation on Readme.io

We’ve enhanced our documentation! You can now learn about all of our endpoints (and test them!) at docs.center.dev. Check it out to learn more about everything you can do with Center.dev.

Screenshot of new documentation

React Components v1.0 Release!

We’ve improved our React Components for even better performance and new features (e.g., custom loading and error rendering). Our new package name is @center-inc/react — check it out and stay tuned for further improvements!

React demo

Search

We leveled up our search experience!

  • We added new fields to the search result document to enhance usability (address, tokenId, and result type)
  • Users can now filter results by type (asset, collection , or both)
  • We increased our search relevance through a variety of performance tweaks (e.g., incorporating name aliases, adding verified collections)

We encourage you to check out our NFT collection search API to learn more.

Example: Asset search

$ curl <https://api.center.dev/v1/ethereum-mainnet/search?query=meebits+12&type=asset>
{
  "results": [
    {
      "id": "ethereum-mainnet/0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7/12",
      "name": "Meebit #12",
      "previewImageUrl": "<https://cdn.center.app/1/0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7/12/a5fbd22d8a8c89db66d26300615e2b7cae18c7c06e914e6e518da0e9dd1ebf45.jpeg>",
      "relevance": 14.188332,
      "url": "<https://center.app/collections/0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7/12>",
      "address": "0x7Bd29408f11D2bFC23c34f18275bBf23bB716Bc7",
      "tokenId": "12",
      "type": "Asset"
    },
    ...
  ]
}

ENS Support

Tired of using full addresses every time you make a call? ENS names can now be used interchangeably with wallet addresses when using Center’s APIs on Ethereum networks.

Demo: View assets owned by Vitalik.eth

Request

curl "<https://api.center.dev/v1/ethereum-mainnet/account/vitalik.eth/assets-owned>"

Result (subset shown)

{
  "items": [
    {
      "address": "0xc1640f72DA2f1C3d5E4010f411C96611c021BD4e",
      "tokenId": "5714",
      "smallPreviewImageUrl": "<https://cdn.center.app/1/0xc1640f72DA2f1C3d5E4010f411C96611c021BD4e/5714/9624c4cb7e76535b6b36c6eeb64054f7e10892ccf23522784d9684a9d9d02aff.jpeg>"
    },
    {
      "address": "0x4921aAd8512dBd4096ba71AEdC969CcC99948598",
      "tokenId": "5005",
      "smallPreviewImageUrl": ""
    },
        ...
  ]
}

More Chains

We live in a multi-chain world. We’ll keep adding chains as long as builders keep building on them.

  • polygon-mainnet : Support added for Polygon-mainnet
  • arbitrum-mainnet : Support added for Arbitrum-mainnet
  • fantom-mainnet : Support added for Fantom-mainnet
  • avalanche-mainnet : Support added for Avalanche-mainnet
  • harmony-mainnet : Support added for Harmony-mainnet
  • celo-mainnet : Support added for Celo-mainnet

Chains supported

Other requests or ideas? Please submit a feature request or reach out to our support team.