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

Get NFTs by Wallet

With the Moralis NFT API, you can GET all NFTs in a wallet using just one API call. Use the following code in your index file to do so:

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 = "0xCf8B5C33584F00EC12Ca257Ae5B74D080f9A432b";
const chain = EvmChain.PALM;
const response = await Moralis.EvmApi.nft.getWalletNFTs({
address,
chain,
});
console.log(response.toJSON());
};
runApp();

💡 Learn More