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 answers only not deleted user 139
2 votes
Accepted

Anchor error while running test

Your program uses authority.key() as a seed for both pdas However, when you derive the pdas, you use deployKeypair.publicKey for one and userKeypair.publicKey for the second one. Try using userKeypair …
john's user avatar
  • 7,794
-1 votes

How can I access the 'Retry-After' HTTP response header while using @solana/web3.js to make ...

If you're currently using the public rpc and getting rate limited, try signing up for a free helius account and use a custom rpc endpoint. https://www.helius.dev/
john's user avatar
  • 7,794
0 votes

Set Mint Authority as PDA

Here is an example of an Anchor program instruction that creates a token2022 mint account with the metadata extension enable. You can use it as a starting point and update it to use a PDA as the mint …
john's user avatar
  • 7,794
5 votes
Accepted

How do we call solana methods if program.rpc deprecated?

Try adding .rpc to the end of await program.methods to send the transaction Example format below, (signers([]) can be excluded if there are not additional signers required): // sends transaction await …
john's user avatar
  • 7,794
4 votes
Accepted

How do I mint an SPL token with custom Metadata without using the Metaplex JS SDK?

You'll still end up needing to use metaplex since metaplex controls the Token Metadata Program. Specifically, you'll need to use createCreateMetadataAccountV3Instruction from @metaplex-foundation/mpl- …
john's user avatar
  • 7,794