Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 660
6 votes
Accepted

How do I create a spl token with a rust anchor and add it to the token list?

Great question! I was stuck there as well some time ago. In order to show people how it works, I've created a quick repo on github. The way it works is: You mint your token using something like: pub s …
AllBlooming's user avatar
  • 2,309
1 vote

Can I get the past owner of a metaplex NFT without digging through this NFT's transactions?

No, there is no other way. Digging through the transaction history is the way to go. You can automate that by creating a bit of JS/TS code, of course. When the history is long and/or you have a lot of …
AllBlooming's user avatar
  • 2,309
1 vote
Accepted

"error: ... An account required by the instruction is missing" when issuing create_metadata_...

I found the answer after some experimenting. I need to pass another account in the context, namely the metadata_program_id. So the new code for invoke_signed is: invoke_signed( &ix …
AllBlooming's user avatar
  • 2,309
1 vote
1 answer
274 views

"error: ... An account required by the instruction is missing" when issuing create_metadata_...

PublicKey, SYSVAR_RENT_PUBKEY } = anchor.web3; const { TOKEN_PROGRAM_ID, ASSOCIATED_TOKEN_PROGRAM_ID, getAssociatedTokenAddress } = require("@solana/spl-token"); const { findMetadataPda } = require("@metaplex-foundation …
1 vote
1 answer
443 views

How to make token logo appear consistently in Phantom?

I have created a token. The mint is a PDA, so I had to add the metadata from within the Rust code in my Program, calling Metaplex's MetadataProgram. This has been a long and rocky journey, but I final …
2 votes
1 answer
187 views

How to add metadata to a token whose mint is a PDA?

While I can easily mint, it has been a weekslong painful endeavor to try to cut through the jungle of metaplex complexities to achieve a simple feat: Add metadata to my token. …
3 votes
Accepted

CreateMetadataAccountsV3 working on Devnet, but throwing error on Mainnet

In my code, I'm using CreateMetadataAccountsV3, and I just learned from the Metaplex team in Discord that the V3 version hasn't been deployed to Mainnet yet... …
AllBlooming's user avatar
  • 2,309
0 votes
1 answer
187 views

CreateMetadataAccountsV3 working on Devnet, but throwing error on Mainnet

I have a token whose mint address is a PDA, i.e. the token is completely program-controlled. That's why, in order to add metadata, I have to use create_metadata_accounts_v3 in Rust. See the full code …
1 vote
2 answers
1k views

How to create a metadata account for a token whose mint authority is a PDA?

My token's mint authority is my Program. I need to add metadata so that the token appears nicely in my users' wallets. So in order to add the metadata, I need to create a new instruction into my Progr …