Get Owners For Collection

Changed on

Gets all owners for a given NFT contract.

get/nft/gating/getOwnersForCollection

Request

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

Query parameters

chainstring required

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

contractAddressstring

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

collectionSlugstring

String- The OpenSea collection slug.

withTokenBalancesboolean

Boolean - The query will include the token balances for every token id for each owner if this field is set to TRUE. FALSE by default.

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": {
    "OwnerAddress": [
      "0xe46F1112D4790419c1D6522121bA8855394C5253"
    ]
  }
}

Changes