ENS Support on Ethereum Networks


September 29, 2022


← Back

Center now supports the Ethereum Name Service.

You can use ENS names interchangeably with wallet addresses when using Center APIs on Ethereum networks — happy building!

Demo: View assets owned by Vitalik.eth

Request

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

Result

{
  "items": [
    {
      "address": "0xc1640f72DA2f1C3d5E4010f411C96611c021BD4e",
      "tokenId": "5714",
      "smallPreviewImageUrl": "<https://cdn.center.app/1/0xc1640f72DA2f1C3d5E4010f411C96611c021BD4e/5714/9624c4cb7e76535b6b36c6eeb64054f7e10892ccf23522784d9684a9d9d02aff.jpeg>"
    },
    {
      "address": "0x4921aAd8512dBd4096ba71AEdC969CcC99948598",
      "tokenId": "5005",
      "smallPreviewImageUrl": ""
    },
    {
      "address": "0x1F5f70FFBfD81D05857ae5DE351ec61a9d90C5d2",
      "tokenId": "5235",
      "smallPreviewImageUrl": "<https://cdn.center.app/1/0x1F5f70FFBfD81D05857ae5DE351ec61a9d90C5d2/5235/a12498e241135b9e73d499c1b201e3a716f2e959ebe30881c975b9acb50a4633.gif>"
    },
    {
      "address": "0x6387017dd4dda1dE13D93440515765BCb2BA4564",
      "tokenId": "3281",
      "smallPreviewImageUrl": "<https://cdn.center.app/1/0x6387017dd4dda1dE13D93440515765BCb2BA4564/3281/d428adee12541cef8a85df8517711d325d961f2e4caa89208d2694496a656a39.png>"
    },
    {
      "address": "0x6387017dd4dda1dE13D93440515765BCb2BA4564",
      "tokenId": "3282",
      "smallPreviewImageUrl": "<https://cdn.center.app/1/0x6387017dd4dda1dE13D93440515765BCb2BA4564/3282/81d3e52f560257cf580d9f40930c5204a779b6c8627c41b5744a647ba2bb6f2a.png>"
    },
    {
      "address": "0xC8860D38eff8F2C299158237943eFb020f77413F",
      "tokenId": "5404",
      "smallPreviewImageUrl": "<https://cdn.center.app/1/0xC8860D38eff8F2C299158237943eFb020f77413F/5404/84c9cd487ec01ded78e2bd25c5d43e968ea2ae17691459f0647b9ea695ad1d52.gif>"
    },
    {
      "address": "0x1F5f70FFBfD81D05857ae5DE351ec61a9d90C5d2",
      "tokenId": "5356",
      "smallPreviewImageUrl": "<https://cdn.center.app/1/0x1F5f70FFBfD81D05857ae5DE351ec61a9d90C5d2/5356/05a44060fd11f21c2e0b7014f86a1c05cf64f37fae7e5af71df68ff2ebfc4873.gif>"
    },
    {
      "address": "0xb6aa8B9a7e428f9056d6d65b2fb0152770D5Ee41",
      "tokenId": "76",
      "smallPreviewImageUrl": ""
    },
    {
      "address": "0x57f1887a8BF19b14fC0dF6Fd9B2acc9Af147eA85",
      "tokenId": "56924349019865488821364962602010366664447329995024265940243956702989569808665",
      "smallPreviewImageUrl": "<https://cdn.center.app/1/0x57f1887a8BF19b14fC0dF6Fd9B2acc9Af147eA85/56924349019865488821364962602010366664447329995024265940243956702989569808665/72fa10105decde1e1f3bdfcfc011222e82a0093dda9d47d37a9896a847295370.png>"
    },
    {
      "address": "0xe389584dB5313c58aa15d937524F9aad570E8Bd2",
      "tokenId": "6454",
      "smallPreviewImageUrl": "<https://cdn.center.app/1/0xe389584dB5313c58aa15d937524F9aad570E8Bd2/6454/259b0609f55f9cb479c1814997a61ff9d67609fcc6d6fc9c9b0d283453dfb760.png>"
    }
  ],
  "paging": {
    "offset": 0,
    "limit": 10,
    "onLastPage": false
  }
}

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