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

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

Request

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

Response

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