The Solana network endpoint to connect to.
The wallet address of the user whose NFTs are to be fetched.
const run = async () => {
const solanaEndpoint = 'https://api.mainnet-beta.solana.com';
const walletAddress = 'YourWalletAddressHere';
try {
const nfts = await getNftsByWalletAddress(solanaEndpoint, walletAddress);
console.log('NFTs:', nfts);
} catch (error) {
console.error('Error:', error);
}
}
run();
Generated using TypeDoc
Retrieves all NFTs owned by a specific wallet address on the Solana blockchain.