The Solana network endpoint to connect to.
The mint address of the NFT or asset.
const run = async () => {
const solanaEndpoint = 'https://api.mainnet-beta.solana.com';
const mintAddress = 'MintAddressHere';
try {
const owner = await getMagicEdenOwner(solanaEndpoint, mintAddress);
console.log('Most Recent Owner:', owner);
} catch (error) {
console.error('Error:', error);
}
}
run();
Generated using TypeDoc
Retrieves the most recent owner of a minted item on Magic Eden, excluding Magic Eden's address.