Open pietromosca1994 opened 4 weeks ago
Hey, you can not use the same mint address for a token metadata NFT and a core asset. What are you trying to achieve here? Maybe there is a different solution. It's important to understand that core and TM are completely indpendent programs.
Hi Mark! Thank you very much for your reply :) I would like to mint an NFT that has attributes that the update authority can change on-chain. I was able to create an NFT with the following method from mpl-token-metadata
await createAndMint(umi, {
mint,
name: 'name',
symbol: "symbol",
uri: 'uri',
sellerFeeBasisPoints: percentAmount(0),
amount: 1,
tokenOwner: umi.identity.publicKey,
tokenStandard: TokenStandard.NonFungible
}).sendAndConfirm(umi)
and I was able to mint an NFT with the solana token program
let tx = new Transaction().add(
createUpdateFieldInstruction({
metadata: mint.publicKey,
updateAuthority: payer.publicKey,
programId: TOKEN_2022_PROGRAM_ID,
field: 'myfield',
value: 'old-value',
}),
);
Is there a way to achieve a combination of the two in Metaplex and have an NFT with both traits (off-chain) and fields on chain that I can update with transactions? Thank you very much for the reply!
I am trying to mint a NFT by combining the create functionality from mpl-core, which allows to add plugins, and the minting functionality from mpl-token-metadata. When I try to mint the token I get the following error:
Here the program that I am running for replication
Here the versions of the packages that I am using (latest on 04/06/2024)
Thank you very much in advance for your help!