Questions tagged [token-2022]
The token-2022 tag has no usage guidance.
27
questions
0
votes
0
answers
12
views
Is it possible to have reflection tokens like safemoon on solona?
A reminder on how reflection tokens like safemoon work is every ones balance is simply an equation instead of a fixed number. That way everyone's balance can be instantly updated with no gas needed ...
0
votes
1
answer
33
views
How to update token name in solana token 2022 program
i was trying to update name and symbol etc i tried enable metadata and update and when i use spl-token display in extensions it shows fine but on solscan or wallets name is unrecognized token how to ...
2
votes
1
answer
39
views
Why can i not add metadata to my Token-2022?
Hello smart people of StackExchange,
I am currently playing arround with the new Token-2022, and i am attempting to create a token with Metadata directly in the mint account.
I am currently attempting ...
1
vote
1
answer
31
views
How do I initialize the transfer-hook account using the provided CLI?
I am trying to follow the examples provided on the Solana website to create and implement a transfer-hook program. I have successfully built and deployed the example program provided here, then minted ...
2
votes
2
answers
44
views
Is it possible yet to use mint tokens supporting both transfer fees and confidential transfers?
I can see in the documentation that Token-2022's transfer fees and confidential transfers are supported (or intended to be supported) when used together. However, when I attempt to mint a token with ...
1
vote
1
answer
56
views
Does token-2022 allow selling fees instead of a basic transfer fee?
I understand now that the token-2022 standard allows transfer fees but does this also allow a fee that only enforces itself when the coin is being sold just like on Ethereum.
1
vote
1
answer
21
views
How to use Confidentical transfer USDT?
I want to use Confidentical transfer USDT or USDC for privacy. I want to know does it support on solana testnet?The offical document seems not finish.
2
votes
1
answer
112
views
How do I create a basic program to use as a Token-22 transfer hook in Anchor? Is it even possible now?
I want to create a counter PDA that counts the number of times a token has been transferred. I understand how to create the counter PDA using the Solana Playground tutorial as the basis and I know how ...
1
vote
1
answer
51
views
SPL Token-2022 - How to modify transfer fee configuration for an existing mint?
The documentations show how to initialize a new mint with a transfer fee, using createInitializeTransferFeeConfigInstruction().
My question is how to modify the transfer fee configuration later? ...
1
vote
1
answer
102
views
transfer hook in token 2022 - how to actually transfer?
I'm trying to understand how the transfer hook works in the token 2022 program. I have deployed a program that implements the Execute and InitializeExtraAccountMetas functions (they both currently do ...
1
vote
1
answer
43
views
Creating token accounts using InterfaceAccount
I'm using Anchor 0.28.0 and want to use this new feature that lets you specify which token program to use.
It looks very practical because it's used almost the same way as standard SPL accounts but I'...
2
votes
1
answer
104
views
Token-2022 in Anchor-Spl 0.28.0 version
Thanks for your concerns.
I was building smart contract on Solana. I used token-2022 and anchor_spl::token_interface::{Mint, TokenAccount}
I checked Mint and TokenAccount. There is Owners trait ...
4
votes
1
answer
57
views
spl token 2022 - creating a transfer fee mint in rust "invalid account data for instruction"
I am trying to test out the spl token 2022 program to make a token with the transfer fee extentsion. So far I have the following:
let extension_types = vec![spl_token_2022::extension::ExtensionType::...
1
vote
1
answer
90
views
how do I use Token2022 with local Anchor tests?
I've downloaded and built the token 2022 program, and added to the Anchor.toml like this:
[[test.genesis]]
address = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
program = "...
2
votes
1
answer
68
views
How can I mint a non-transferrable token using Token-2022 in JS/TS?
How do I mint a non-transferrable token using Token 2022 using JS/TS (eg @metaplex-foundation/js or similar).
Right now I use @metaplex-foundation/js to run:
const createOutput = await metaplexNFTs....
1
vote
1
answer
60
views
Is the zk proof verifier program open source?
So i wanted to get an idea on how the equality and range proofs get verified by the native proof verifier program but I don’t see verifier codebase anywhere. Is it open source? If not when will it be?
0
votes
0
answers
32
views
Create an token account from connected wallet address
I am trying to create a token address from the connected wallet with the "@solana/wallet-adapter-react" library.
This is my code:
const wallet = useWallet();
const { connection } = ...
2
votes
1
answer
25
views
How do equality proofs work mathematically?
What exactly is the math behind equality proofs in confidential transfers? Like if I can get an idea of how equality proofs work with ciphertexts.
1
vote
1
answer
165
views
Confidential token transfer whitepaper
I recently watched the talk "Use Token-2022 for Everything". The speaker mentions that there is an interesting whitepaper about the system they are implementing. Where can I find this ...
1
vote
1
answer
60
views
Are some of the confidential transfer instructions like transfer, withdraw, deposit cross program invokable?
confidential transfer instructions like transfer, withdraw, deposit require you to provide zk-proofs from the client side, is there a workaround where i can transfer tokens confidentially from a PDA ...
5
votes
3
answers
247
views
Token-2022 in anchor program
how can i use Token-2022 in anchor program? There is anchor_spl crate but i dont see any reference to Token-2022. There are examples only with javascript but no for anchor program
https://spl.solana....
1
vote
1
answer
95
views
Since an Associated Token Account for a wallet can be created by anybody, how can we enforce that Token-2022 immutable ownership is performed on ATAs?
Here we see that anybody can create an ATA for anybody else's wallet for any token:
https://spl.solana.com/associated-token-account#creating-an-associated-token-account
But the process of enforcing ...
1
vote
0
answers
43
views
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?
I was surprised to see this logging appear when my transaction was executed:
"Please upgrade to SPL Token 2022 for immutable owner support"
Leaving aside my surprise at the fact that the ...
0
votes
1
answer
52
views
What does it mean exactly for token account owners to reassign ownership to another address?
In review of this Token-22 extension, it says that token account owners can reassign ownership to another address:
https://spl.solana.com/token-2022/extensions#immutable-owner
I am having a hard time ...
2
votes
0
answers
34
views
Do the different mint lengths in the Token-2022 Program affect the dataSize of token accounts?
The Token Program produces token accounts that are 165 bytes in length. This makes it easy to consistently filter for them when using getParsedProgramAccounts. But if we are creating token mints with ...
5
votes
1
answer
91
views
What is the closing mint in the Token-2022 program?
I noticed the new Token-2022 program appear recently and I was wondering if anyone knows what the "closing mint" will do in the list of new features:
https://spl.solana.com/token-2022
(I ...
2
votes
1
answer
79
views
Where can I find more information about "token-2022" and how it relates to the current token program?
Where can I read about the need for token-2022, it's overall design, expected benefits, and how it relates to the current token program?
I've been through the following resources:
current token ...