Skip to main content

Get NFT collections by wallet

GEThttps://deep-index.moralis.io/api/v2/: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.
disable_totalboolean
If the result should skip returning the total count (Improves performance).
cursorstring
The cursor returned in the previous response (used for getting the next page). Learn more on cursor pagination here.
Responses
API KEY
import Moralis  from 'moralis';
import { EvmChain } from '@moralisweb3/evm-utils';

try {
const address = '0x1234567890123456789012345678901234567890';

const chain = EvmChain.ETHEREUM;

await Moralis.start({
apiKey: 'YOUR_API_KEY',
// ...and any other configuration
});

const response = await Moralis.EvmApi.nft.getWalletNFTCollections({
address,
chain,
});

console.log(response);
} catch (e) {
console.error(e);
}
Response Example
{
"status": "SYNCING",
"total": "2000",
"page": "2",
"page_size": "100",
"result": {
"token_address": "0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB",
"contract_type": "ERC721",
"name": "CryptoKitties",
"symbol": "RARI"
}
}