Skip to content
This documentation is in beta, and we’re looking for feedback. See how you can contribute 🌟

Get Owners by Contract

GET owners of NFTs for a given contract.

  • Requests for contract addresses not yet indexed will automatically start the indexing process for that NFT collection.
Query ParamsDescription
chainThe chain to query
address (required)The address of the wallet
const Moralis = require("moralis").default;
const { EvmChain } = require("@moralisweb3/common-evm-utils");
const { config } = require("dotenv");
// Inject environment variables
config();
const runApp = async () => {
await Moralis.start({
apiKey: process.env.MORALIS_API_KEY,
// ...and any other configuration
});
const address = "0xCAFFA4b5F72a44C75F796E94F22dEBd6369F04FC";
const chain = EvmChain.PALM;
const response = await Moralis.EvmApi.nft.getNFTOwners({
address,
chain,
});
console.log(response.toJSON());
};
runApp();

💡 Learn More