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 84
0 votes

Blocking specific token program's TXs

This is going out a bit on a limb, but you should be able to do this by modifying banking stage by hand on your validator. You can add a new packet filter to filter out transactions that contain the p …
Jon C's user avatar
  • 19.6k
1 vote

is there a way to mass-burn all SPL tokens in existence (of which may be in various ATAs) in...

To put it simply, no. If the tokens are in other user's accounts, you can't take control of them, unless you get their private key or have them delegate to some other key.
Jon C's user avatar
  • 19.6k
1 vote
Accepted

Verifying SPL Token Code

Since there's only one token program that handles the processing for all SPL tokens, all token mints are automatically "upgraded" whenever there's a new release of the SPL token program. You can find …
Jon C's user avatar
  • 19.6k
1 vote
Accepted

I have a question about token 2022 program with migration

It's very simple, there is no migration! All current SPL tokens belong to the SPL token program, and all token-2022 tokens belong to token-2022. Two possible migration paths are: "upgrade" your token …
Jon C's user avatar
  • 19.6k
1 vote

Are funds sent into an address with IsOnCurve: false Retreivable?

If IsOnCurve is false, it means the address is a program-derived address. If an exchange has control of that address in their program, they can update their program to do anything with it, including r …
Jon C's user avatar
  • 19.6k
3 votes
Accepted

Anchor: How to validate Token Program in Account structs?

By defining Interface<'info, TokenInterface>, your program will automatically check that the provided token program is either SPL Token or SPL Token 2022: https://github.com/coral-xyz/anchor/blob/a0dd …
Jon C's user avatar
  • 19.6k
0 votes

facing WalletSendTransactionError: Unexpected error

This is a guess, but MINT_SIZE is probably not enough to cover for the base mint + metadata pointer extension + metadata extension, or there aren't enough lamports passed in to cover rent-exemption wh …
Jon C's user avatar
  • 19.6k
3 votes

Can I simulateTransaction with arbitrary token balance amounts?

No, with the current version of simulateTransaction, you don't have the ability to override account data. On the other hand, you can probably find huge holders of the tokens that you want to trade, an …
Jon C's user avatar
  • 19.6k
1 vote
Accepted

mint_to instruction is failing ,`Program logged: "Error: InvalidAccountData"`with this error

InvalidAccountData can unfortunately mean many things, but most likely the mint account hasn't been created / initialized, or the token account hasn't been created / initialized.
Jon C's user avatar
  • 19.6k
3 votes
Accepted

Transfer_hook in spl-2022: Only deduct tax from swap transaction

This is up to your own design in the end, but if you want to detect that a particular transfer is being called from a swap program, there's a few options: include the "instructions" sysvar in your tr …
Jon C's user avatar
  • 19.6k
2 votes

"Program log: Instruction: GetAccountDataSize", "Program log: Error: IncorrectProgramId", "P...

If you're running into that error during GetAccountDataSize, I'm almost 100% sure it's this line: https://github.com/solana-labs/solana-program-library/blob/c94eeec63bdada46453eb46d0e7add4c504b1799/to …
Jon C's user avatar
  • 19.6k
1 vote
Accepted

Issue in Adding Token Metadata using SPL Token CLI

Since you're using the spl-token CLI, then the metadata that you're trying to create is specific to spl-token-2022. To create the metadata then, you first need to create a mint with spl-token-2022 usi …
Jon C's user avatar
  • 19.6k
1 vote

SNS - Retrieve all Domains+Subdomains of an User

This is correct in all cases -- domains also have the owner written after 32 bytes. Here's the only data used for SNS accounts: https://github.com/solana-labs/solana-program-library/blob/272bbe0b3dcf4 …
Jon C's user avatar
  • 19.6k
1 vote
Accepted

Transfer Hook: Not backwards compatible with common wallets

You've noticed the problem perfectly -- the normal instruction creators will not check for a transfer hook and add the required accounts. The CLI does all of this for you through the spl-token-client …
Jon C's user avatar
  • 19.6k
3 votes

Why we cannot enable transferfee config or enable metadata after minting on token 2022?

Most mint extensions cannot be added after the mint is initialized because they fundamentally alter how the token operates. If people are already using a token, and all of a sudden the mint creator ad …
Jon C's user avatar
  • 19.6k

15 30 50 per page