Search Results
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 token-2022
Search options answers only
not deleted
user 84
0
votes
Initializing Token2022 Metadata with PDA mint authority
The error log is a bit unclear in this case unfortunately:
"Program log: Error: Unknown",
This is typically an error from Borsh deserialization, so there's something up with the serialized data pas …
0
votes
How to add metadata for Token program
If you're using Anchor and want to use the token-2022 metadata extension, you may want to follow the example in the Anchor repository at https://github.com/coral-xyz/anchor/blob/b6724d2bcbfb5531224057 …
0
votes
Close Associated Token Account (token 2022 program) to get back deposited sol
You need to specify the token-2022 program id as a normal positional argument, and not in a new object. Try doing:
const closeTx = await closeAccount(
connection,
user, // payer
…
1
vote
Cross-program invocation with unauthorized signer orr writable account
Your program is being called from token-2022, and then your program is trying to CPI back into token-2022, which isn't possible. Re-entrancy is not allowed on Solana.
You'll need to update your soluti …
1
vote
getprogramaccounts with filter on symbol ? (token 2022)
Unfortunately, you can't do this using a filter on getProgramAccounts, since the metadata information can be in different places in the mint account. This is why other programs like Metaplex maintain …
2
votes
how to know if a token is legacy SPL or Token2022 and transfer Token2022?
Q1: you need to look at the owner of the account:
$ solana -ud account 4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU
Public Key: 4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU
Balance: 67.147504055 SOL
…
3
votes
Accepted
Totally blocked by expected `solana_program::program_error::ProgramError`
You'll need to use the dependencies required by Anchor, otherwise your project will pull in two major versions of solana-program and then have a hard time disambiguating the two.
Here are the dependen …
0
votes
Accepted
spl-token-2022 PodMint and Mint or PodAccount and Account usage
The concept of PodMint vs Mint is to allow for in-place / zero-copy deserialization, which uses much fewer compute units on-chain. If you want to do things in-place, then you can use the Pod variants. …
1
vote
Can I update the FEE and Withheld authority if I'm only the Update Authority?
With SPL Token, only the applicable authority can update that authority type. So for example, only the mint authority can change the mint authority, only the freeze authority can change the freeze aut …
0
votes
anchor test fails at initialize instruction which initializes token 2022 accounts
There's a few questions here, so I'll do my best to answer:
if you're using TokenInterface, it means that your program supports both SPL Token and SPL Token 2022. So when someone calls your program, …
1
vote
After deploying my spl_token_2022.so successfully, i do not know how to initialize the metad...
I just tested this out, and it seems to work with a simple setup. Try the following:
npm i @solana/spl-token
npm i @solana/[email protected]
npm i @solana/spl-token-metadata
Rename the file to js:
mv exam …
2
votes
Accepted
How to deserialize all the extension data for mint account?
You have three different options:
requesting the account with jsonParsed encoding should parse all of the extension data for you
in Rust:
use spl_token_2022::{
extension::{BaseStateWithExtension …
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 …
2
votes
Accepted
anchor_spl token_group_initialize invalid instruction
The token group extension in token-2022 has not been deployed yet. If you want to use it, you'll need to build token-2022 yourself and include it in your test validator, ie:
$ git clone https://github …
3
votes
Accepted
How to transfer tokens using transfer hook in Anchor
There might not be Anchor helpers yet to create the proper transfer with all the transfer hook accounts. In the meantime, you can use the onchain helpers that come with token-2022 at https://github.co …