getOwnersForCollection - NFT API

Gets owners address with a given NFT.

This endpoint is supported on the following chains and networks:

  • Conflux Core: cfx-core
  • Conflux eSpace: cfx-espace

Parameters

  • contractAddress: [string] address of NFT contract

Returns

  • ownerAddresses: [string]

Example

Conflux Core

Request

curl 'https://cfx-core.unifra.io/v1/cf455a9802364d88b8f87b5273d9ddbb/nft-api/getOwnersForCollection?contractAddress=cfx:acff8dvjv6pys2ws19dhx753h1h00sum6yhu3m188h'

Response

{"ownerAddresses":
    ["0x180C907e85fc1bE40775D27C7122720A4e931eE0",
    "0x1125CA2380c72995609Ab84e7533dBb5839F394d",
    ...]
}

Conflux eSpace

Request

curl 'https://cfx-espace.unifra.io/v1/4bd2d1249e644ae288dbfd4e076f0141/nft-api/getOwnersForCollection?contractAddress=0x324021590bbdd427f104953bb06999d55f230c64'

Response

{"ownerAddresses":
 		["0xe09cc123425ae7f908af2f55e95bab31eba5d599",
     "0x2b42d6d2f5a85f12267bcdc7369add53cef08309",
     ...]
}

Language
URL
Click Try It! to start a request and see the response here!