Hey everyone,
I’m trying to track NFT movements in and out of my Solana wallet. Does anyone know if there’s a good API for this?
I gave getSignaturesForAddress from @solana/web3.js a shot, but it doesn’t seem to keep NFT transfer info. I’m looking for something that works like the token history feature in Solana Explorer.
Here’s a quick example of what I’ve tried:
const web3 = require('@solana/web3.js');
async function getNFTTransfers(walletAddress) {
const connection = new web3.Connection(web3.clusterApiUrl('devnet'));
const pubKey = new web3.PublicKey(walletAddress);
const signatures = await connection.getSignaturesForAddress(pubKey);
// This doesn't give me the NFT transfer info I need
console.log(signatures);
}
getNFTTransfers('your_wallet_address_here');
Any ideas on how to get this working? Thanks!
hey there StrummingMelody! 
i’ve been fiddlin with nft tracking too and ran into similar roadblocks. have you considered givin the Metaplex API a shot? it’s got some nifty features for nft-related stuff on solana.
what kinda nft data are you trying to snag exactly? just transfers, or you lookin for more deets? 
also, curious - are you buildin something cool with this data? always love hearin about new projects in the space!
btw, if you end up finding a solid solution, mind sharin? could be super helpful for others (like me!) wrestlin with similar challenges. good luck on your quest! 
hey mate, have u tried using the Helius API? its pretty solid for fetching NFT transfer records. they got an endpoint specifically for this. u can grab historical NFT transfers with all the juicy details. might be worth checkin out if ur still stuck!
For fetching NFT transfer records on Solana, I’d recommend looking into the Solana NFT API by Moralis. It provides comprehensive data on NFT transfers, including timestamps, transaction hashes, and token details. You’ll need to sign up for an API key, but their documentation is thorough and the implementation straightforward.
Here’s a basic example of how you might use it:
const Moralis = require('moralis').default;
const { EvmChain } = require('@moralisWeb3/common-evm-utils');
await Moralis.start({
apiKey: 'YOUR_API_KEY'
});
const address = 'WALLET_ADDRESS';
const chain = EvmChain.SOLANA;
const response = await Moralis.SolApi.nft.getNFTTransfers({
address,
chain,
});
console.log(response.result);
This should give you the NFT transfer data you’re looking for. Hope this helps!