import { updateMetadata } from "thirdweb/extensions/erc1155";
import { sendTransaction } from "thirdweb";
const transaction = updateMetadata({
contract,
targetTokenId: 0n,
client: thirdwebClient,
newMetadata: {
name: "this is the new nft name",
description: "...",
image: "new image uri",
// ...
},
});
await sendTransaction({ transaction, account });