The mint address of the NFT.
The Solana network endpoint to connect to.
const run = async () => {
const nftMintAddress = 'Fg6...sdf';
const solanaEndpoint = 'https://api.mainnet-beta.solana.com';
try {
const result = await getNftOwnerByTokenMint(nftMintAddress, solanaEndpoint);
console.log('NFT Owner:', result);
} catch (error) {
console.error('Error:', error);
}
}
run();
Generated using TypeDoc
Retrieves the owner of an NFT by its token mint address.