Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.2

Get Wallet NFTs

GEThttps://solana-gateway.moralis.io/account/:network/:address/nft

Gets NFTs owned by a given network and address.

PATH PARAMS
networkstringrequired
The network to query
addressstringrequired
The address of the wallet
Responses
API KEY
import Moralis from 'moralis';

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

const response = Moralis.SolApi.account.getNFTs({
"network": "mainnet",
"address": "DDy5QHKEDgg5ZyWmwi1rJKwYHe7ZR5udGQfJkc8EPfLM"
});

console.log(response.raw);
} catch (e) {
console.error(e);
}
Response Example
Empty