Get Owners For Token

Changed on

Get the owner(s) of a token.

get/nft/gating/getOwnersForToken

Request

  • Base URL
    https://api.blockvision.org/v2
  • URL
    https://api.blockvision.org/v2/nft/gating/getOwnersForToken
  • Auth
    API key in header x-api-key

Query parameters

chainstring required

String - The chain name to get the NFT getOwnersForToken for. Supports 'Ethereum' and 'BSC'. 'Omnichain' for all data on two chains.

contractAddressstring required

String - The contract address of the NFT collection(ERC-721 and ERC-1155 supported) to get the owners.

tokenIdstring required

String - The ID of the token. Can be in hex or decimal format.

pageSizeinteger

Integer - The number of records showing on each page. 20 by default and up to 50.

pageIndexinteger

Integer - The index of the page to retrieve. The first page is typically indexed as 1, and subsequent pages are numbered incrementally.

Response

200

codeinteger
messagestring

Example response

{
  "code": 200,
  "message": "Success",
  "result": {
    "owners": [
      "0x9f4F78A6c4a5E6F8AFA81631b9120ae3C831b494"
    ]
  }
}

Changes