Skip to main content
Version: 2.2

Get NFT collections by wallet

Don't have an API key yet?

Start using this API for your project today.

Get your free API key
GEThttps://deep-index.moralis.io/api/v2.2/:address/nft/collections

Get NFT collections owned by a given wallet address.

PATH PARAMS
addressstringrequired
The wallet address of the owner of NFTs in the collections
QUERY PARAMS
chainstring
The chain to query
limitnumber
The desired page size of the result.
token_countsboolean
Should token counts per collection be included in the response?
exclude_spamboolean
Should spam NFTs be excluded from the result?
cursorstring
The cursor returned in the previous response (used for getting the next page).
Responses
API KEY
import Moralis from 'moralis';

try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});

const response = await Moralis.EvmApi.nft.getWalletNFTCollections({
"chain": "0x1",
"address": "0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326"
});

console.log(response.raw);
} catch (e) {
console.error(e);
}
Response Example
{
"status": "SYNCING",
"page": "2",
"page_size": "100",
"cursor": "",
"result": {
"token_address": "0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB",
"contract_type": "ERC721",
"name": "CryptoKitties",
"symbol": "RARI",
"possible_spam": "false",
"verified_collection": "false",
"count": 5,
"collection_logo": "https://cdn.moralis.io/eth/0x67b6d479c7bb412c54e03dca8e1bc6740ce6b99c.png",
"collection_banner_image": "https://cdn.moralis.io/eth/0x67b6d479c7bb412c54e03dca8e1bc6740ce6b99c.png"
}
}