Moralis icon

Moralis

Interact with Moralis Web3 APIs for blockchain data, NFTs, tokens, and DeFi

NFT → Get NFT Owners

AI-generated

Overview

This node operation fetches the owners of an NFT collection from a specified blockchain using the Moralis Web3 API. It is useful for scenarios where you need to retrieve ownership information for NFTs within a particular contract address, such as for analytics, portfolio tracking, or verifying ownership.

Use Case Examples

  1. Retrieve all owners of an NFT collection on the Ethereum blockchain by providing the NFT contract address and optionally limiting the number of results.
  2. Fetch NFT owners on Polygon with metadata included to analyze ownership distribution.

Properties

Name Meaning
Chain The blockchain network to query for NFT owners, e.g., Ethereum, Polygon, BSC.
NFT Contract Address The contract address of the NFT collection to query owners for.
Additional Fields Optional parameters to customize the query, including limit, cursor for pagination, whether to include metadata, and number format.

Output

JSON

  • json - The JSON response containing NFT owners data, including ownership details, operation, resource, chain, and timestamp.

Dependencies

  • Moralis Web3 API accessed via an API key credential

Troubleshooting

  • Common issues include invalid or missing NFT contract address, unsupported blockchain network, or API key authentication errors.
  • Error messages may indicate 'No data found' if the NFT contract address is incorrect or the collection has no owners.
  • Ensure the API key credential is correctly configured and has access to the Moralis API.

Links

Discussion