Skip to main content

New answers tagged

1 vote

Creating a new Associated Token Account is 10 times more expensive than expected

If you're using @solana/spl-token, you can get the amount required to create a token account using getMinimumBalanceForRentExemptAccount https://github.com/solana-labs/solana-program-library/blob/...
Jon C's user avatar
  • 14.4k
1 vote
Accepted

Why do we close WSOL Token Program accounts?

It's really a question of user expectations. There's a fundamental inconsistency with how SOL is treated in wallets vs on-chain programs. In wallets, typically SOL is held directly in the user's ...
Jon C's user avatar
  • 14.4k
0 votes
Accepted

Problem with associated token account of a mint account which initialized using Token2022

When deriving an ATA for token-2022, you also need to provide the token-2022 program id. Try doing: const associatedTokenAccount = await getAssociatedTokenAddress( mintKeypair.publicKey, payer....
Jon C's user avatar
  • 14.4k
0 votes

How to Display Custom Balance of an SPL-Token without Associated Token Account?

If you're writing a custom token program, why not just store the correct balance on the ATA instead of the other PDA you've designed? The ATA is just a PDA too!
Jon C's user avatar
  • 14.4k
0 votes

If I'm already checking that the associated token account is owned by the expected owner, is there any benefit to token-2022's ImmutableOwner feature?

Any upgradeable program, including those built in, can be upgraded by the upgrade authority, in order to fix bugs and so forth. The same would happen for an Api, so solana is no different here really. ...
NotoriousPyro's user avatar
2 votes

how to find a new token in the block

You can use the following API to create the latest tokens. Tokens created in a block - https://ide.bitquery.io/Solana-new-token-created-in-a-block Latest Tokens created API - https://ide.bitquery.io/...
Gaurav Agrawal's user avatar

Top 50 recent answers are included