Skip to main content
3 votes

When using the wallet-adapter-react-ui package how can I handle the wallet connect event?

Looking at the WalletMultiButton, which inherits from the BaseWalletMultiButton, you do not have much control over it. type Props = ButtonProps & { labels: Omit< { [TButtonState in ...
Jimii's user avatar
  • 3,120
2 votes

Error Code: ConstraintSeeds. Error Number: 2006. Error Message: A seeds constraint was violated

The error suggests that you might be driving the PDA wrongly. Try removing the as_ref() method from your seeds since the b"" token, already converts the string slice to a byte sequence &[...
Jimii's user avatar
  • 3,120
2 votes

I get error at step: createAssociatedTokenAccountInstruction, failed: incorrect program id for instruction

This is a shot in the dark, but GetAccountDataSize on SPL Token only takes in the mint. If it's giving an IncorrectProgramId error, then the mint account you're providing is not an SPL Token mint. Be ...
Jon C's user avatar
  • 15.3k
2 votes
Accepted

Creating a lookup table with web3.js

You can use AddressLookupTableProgram.createLookupTable to create an LUT and then AddressLookupTableProgram.extendLookupTable to add addresses to it. Here's a quick snippet: export const ...
Joey Meere's user avatar
  • 1,324
2 votes

solana/web3.js Request Airdrop 429 error

You have hit the rate limit. As the message suggests, you will have to wait till the 24 hours are up to request again. More Info https://solana.com/docs/core/clusters#devnet You might also want to ...
Jimii's user avatar
  • 3,120
2 votes

sendTransaction() fails with signature must be base58 encode

This is a shot in the dark, but since your script is trying to do multiple things at once, and the third step depends on the second step having been confirmed, you might just need to change the ...
Jon C's user avatar
  • 15.3k
1 vote

'invalid account data' error when using Immutable Owner extension and Non-transferable extensions together

The provided account length won't be enough, because you also need to include space for the NonTransferableAccount extension. I think it should work if you just change the line creating accountLen to: ...
Jon C's user avatar
  • 15.3k
1 vote

Invoking Solana Programs

I'm going to assume that you are using the solana CLI to perform these operations since there isn't a lot of specific information to go on from your question. To perform mainnet-beta operations, ...
Jimii's user avatar
  • 3,120
1 vote

I got an Error: InvalidAccountData when I mint token

It looks like you've commented out the line which confirms the transaction to create the ATA, which means that the chain hasn't confirmed that your ATA is created. When you try to mint to it, it will ...
Jon C's user avatar
  • 15.3k

Only top scored, non community-wiki answers of a minimum length are eligible