API Reference

getOwnersForToken - NFT API

Gets owners address with a given NFT with tokenid.

This endpoint is supported only on the following chains and networks:

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

Parameters

  • contractAddress: [string hexadecimal] - contract address for the NFT collection
  • tokenId: [string] - the id of the token

Returns

  • owner: [string hexadecimal] address for the queried NFT owner

NOTE:


Example

Conflux Core

Request

curl 'https://cfx-core.unifra.io/v1/cf455a9802364d88b8f87b5273d9ddbb/nft-api/getOwnersForToken?contractAddress=cfx:acff8dvjv6pys2ws19dhx753h1h00sum6yhu3m188h&tokenId=1021'

Response

{"owners":["0x19241022053a3e2236c48E86B62957C8654B65a1"]}

Conflux eSpace

Request

curl 'https://cfx-espace.unifra.io/v1/4bd2d1249e644ae288dbfd4e076f0141/nft-api/getOwnersForToken?contractAddress=0x324021590bbdd427f104953bb06999d55f230c64&tokenId=21ab9'

Response

{
    "owners": [
        "0x3a7ca1bd4334fb37def4716f90fd8f23f7002bdb"
    ]
}
Language
URL
Click Try It! to start a request and see the response here!