Hey everyone, I’m having a tough time changing the metadata for my Metaplex NFT. I’ve been using the @metaplex/js library and wrote some code to update it. The weird thing is, when I run the transaction, it looks like it goes through fine. No errors pop up, and I can see it on Solana Explorer. But when I check, the metadata hasn’t changed at all.
Here’s a simplified version of what I’m trying:
import { MetaplexLib } from '@metaplex/wrapper';
async function tweakNFTInfo() {
const nft = new MetaplexLib.NFT('MY_NFT_ADDRESS');
const wallet = MetaplexLib.loadWallet('my_key_file');
const updatedInfo = {
name: nft.currentName,
symbol: nft.currentSymbol,
uri: 'https://arweave.net/new_content_address',
creators: nft.currentCreators
};
const result = await nft.updateMetadata(wallet, updatedInfo);
console.log('Update status:', result);
}
Any ideas what might be going wrong? The transaction seems successful, but the metadata stays the same. I’m scratching my head here. Thanks for any help!
yo, had same issue. make sure ur using latest metaplex/js. they changed some stuff recently. also, check if ur new uri is valid and accessible. sometimes it takes a bit for changes to show up, so wait like 10-15 mins and check again. if still no luck, maybe try a different rpc node. good luck!
I have encountered a similar issue where the metadata update did not immediately reflect due to caching delays in RPC nodes. Although the transaction appears successful, the updated metadata might not be visible right away. It is advisable to verify that the URI correctly points to the new metadata JSON file and to ensure that you are using an up-to-date version of the library. Additionally, trying a different RPC endpoint and allowing a few minutes for the cache to clear can help determine if the update has truly been applied.
hey mia! that’s a real head-scratcher you’ve got there. have you tried using the Metaplex CLI instead of the JS library? sometimes switching tools can help pinpoint where the issue is.
also, i’m curious - are you able to see the transaction details on solana explorer? it might give us some clues about what’s going on behind the scenes.
oh, and here’s a random thought - could it be related to your wallet permissions? just throwing ideas out there.
let us know if you make any progress! it’d be super interesting to hear what eventually solves this mystery. good luck!