Questions tagged [token-2022]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
67 views

Need Help In Token-22

Suppose if we set transfer fee 0.5% can we update it too 1% after token mint? How can we set specific owner wallet address to receive tax fee? 3- Can we put multiple tax fee for multiple wallet ...
jagveer singh's user avatar
0 votes
2 answers
43 views

Why are the validator functions in `solana_clap_v3_utils` deprecated? What is the intended flow for solana clap tools?

I am trying to build a clap cli tool using the latest utils from solana_clap_v3_utils 1.18.2 and there are currently no good examples in the solana-program-library that use v3 in the builder context ...
tonton's user avatar
  • 55
0 votes
1 answer
23 views

How to charge transaction fee in my token insteed of SOL if any one tranfer my XYZ token they pay in XYZ instead SOL, Ithey don't need to hold SOL

I'm seeking for help any body can help regarding spl, token, I'm working on app it has in app wallet, if some did dum task I'll provide my token as mining reward, so what I need that, when they ...
Crypto Centric's user avatar
3 votes
1 answer
88 views

Sol contract analysis

Hey I come from ethereum. Im conducting contract audits for adding new tokens to our platform. I can't seem to find the source code for a lot of these SPLs and token2022. like on ethscan the contract ...
Will's user avatar
  • 31
1 vote
1 answer
18 views

spl-token-cli: how to fix this error

$ spl-token transfer --expected-fee 0.000005 ++m+++++++++++++++++2u++ 100000 destination.json Transfer 100000 tokens Sender: ++zt++++++++++++++++++Dw++ Recipient: ++LN+++++++++++++++++++75++ **...
Crypto Centric's user avatar
3 votes
1 answer
67 views

Why isn't the new Token 2022 metadata being picked up by explorers/Phantom?

I've created a Token 2022 mint with the metadata extension, and I'm not sure if most apps support the new format. Here's the token: https://explorer.solana.com/address/...
JohnQN's user avatar
  • 31
2 votes
1 answer
114 views

How to create a Liquidity pool for a token 2022 token

How would I go about creating a Liquidity pool for a token-2022 program token? How does fluxbeam do it? Do they have their own custom program? A general breakdown on what to Google and how to get to a ...
Sid's user avatar
  • 141
0 votes
0 answers
51 views

Why won't solscan display the metadata on this token?

Token account: https://solscan.io/token/FgR2pbKw6GAc1C4gj6wUDB4A7bxpyNKCbYQUXgcym5Y8?cluster=devnet Add metadata: https://solscan.io/tx/...
octagon_q's user avatar
1 vote
1 answer
57 views

Creating SPL token Non-Transferable Extension with metadata on React

I'm trying to create SPL token with Non-Transferable Extension with metadata. Right now I can create token with each features only follow these guides, and fails to combine them. below is how I tried ...
cablespecific's user avatar
0 votes
1 answer
49 views

Errors when trying out Confidential Transfer token extension on solana-test-validator

I am getting errors when trying the confidential transfer token extension. Followed the instructions given in the documentation. First tried it on the testnet, it worked fine till the create account ...
Soumith Basina's user avatar
0 votes
1 answer
47 views

Does token-2022 allow transfer fees in SOL instead of a token?

That is, the receiver of a fee should get a fee not in a token but in SOL. Is it supported by token-2022? I'm aware of transfer hook. Would one use it, send a TX to a DEX such as Raydium? Otherwise, ...
barugaggi's user avatar
0 votes
0 answers
30 views

spl-token-cli + missing token-2022 extensions

I have a token-2022 mint using token-2022 metadata extension. The extensions display correctly on solana explorer (you can see the name, symbol, and uri along with the metadata pointer): https://...
neft's user avatar
  • 231
3 votes
1 answer
39 views

Modify sent amount on Transfer hook

I have been recently started to play around the transfer hook and explored the Anchor tutorial on the website. My question is if the transfer hook reflects the end state of the transfer is there any ...
munifao's user avatar
  • 43
1 vote
1 answer
43 views

Token2022 testing interest bearing token doesn't update balance and freeze when updateRate

I need some help/insight to fix/make the tests work. I'm trying to test locally a complete case of Token2022 with interest, but I have 2 problems locally (in devnet everything works as expected). The ...
Shelvak's user avatar
  • 11
1 vote
1 answer
100 views

How to create transfer hook program for an existing Token-22 Program?

I am new to token-22 and hoping someone can help me out. I recently launched a token-22 program on Fluxbeam using the transfer tax extension. Unfortunately, they don't give the ability to also add a ...
Tarchie's user avatar
  • 11
0 votes
0 answers
80 views

Best API to get newly listed tokens (Solana)

I am developing a solana bot and would like to recieve newly listed Solana tokens but all the APIs I find are very expensive. Looking to try find a cheaper yet still fast alternative.
Ryan Lightfoot's user avatar
1 vote
0 answers
98 views

Token2022 Error - Incorrect Program ID for Instruction

So I'm creating a Token2022 token for testing purposes right now, and I want to use the withdraw fee extension to hold a percentage on transfer and use my withdrawal authority account to capture those ...
Brian M.'s user avatar
  • 111
1 vote
0 answers
56 views

How can I decode token group extension data from a token-2022 mint?

The getTokenMetadata helper is great for decoding metadata for token-2022 mints: https://github.com/solana-labs/solana-program-library/pull/5667/files#diff-...
nftechie's user avatar
0 votes
1 answer
79 views

Why my minted spl-token-2022 not coming up on phantom wallet?

I have created my spl-token-2022 from anchor smart contract but the minted tokens are not showing on my phantom wallet. What could be the possible reasons for this? This is my token https://solscan.io/...
blackhorse's user avatar
0 votes
0 answers
19 views

How to calculate account size for token 2022?

I want to create token account for token 2022 (BERN for example) by js. What I need to do?
beauty_free's user avatar
2 votes
1 answer
91 views

Custom program error: 0x7dc8348c

I using instructions from here https://spl.solana.com/token-2022/extensions, and getting error: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x7dc8348c while ...
Andriy's user avatar
  • 21
0 votes
0 answers
33 views

How to use "spl-token set-transfer-fee" CLI function in JS?

I noticed there is CLI function in SPL-token library for setting transfer fee but this function is missing from javascript SDK. CLI: https://github.com/solana-labs/solana-program-library/blob/master/...
LubWn's user avatar
  • 13
1 vote
0 answers
141 views

how to work sniper bots [closed]

please explain me how sniper bots work in solana. i am interested in their logic of operation. how does it work? the bot finds a coin, but the trading pair may not appear immediately. What does the ...
john mlan's user avatar
1 vote
1 answer
329 views

how to decode data instructions with javascript

upd: https://docs.solana.com/developing/programming-model/transactions#instruction-data here, my task is to decode this data using js I tried to solve the issue with this post How to get Solana ...
slntrx's user avatar
  • 97
2 votes
2 answers
85 views

Dynamically use PDA with transfer-hooks

I want to build a program using transfer-hooks that creates(or get) a PDA when a user makes a transaction using the signer public key as a seed. I'm using this code as a template : https://github.com/...
PandaPanda's user avatar
2 votes
2 answers
102 views

InterfaceAccount<'_, TokenAccount> fails to create Associated Token Account

I have basic instruction, all it does is create an ATA for a user (mint is already initialized), this is what my context looks like // lib.rs use { crate::constants::*, crate::states::*, ...
Isaac Frank's user avatar
1 vote
0 answers
50 views

Getting error "An account required by the instruction is missing" while creating associated token address

I am trying to create associated token address on solana program with below configuration #[derive(Accounts)] #[instruction(params: TokenParams)] pub struct MintToken<'info> { /// CHECK: ...
blackhorse's user avatar
1 vote
1 answer
389 views

How do I get real-time information about new created tokens on Solana?

So guys, I followed this question How do I get real-time information about newly created tokens on Solana?. I configured a helius hook that monitors the token program at the address ...
slntrx's user avatar
  • 97
3 votes
1 answer
109 views

How to take a snapshot of Token2022 holders?

How to take a snapshot of all holders of a Token2022? I get an output of 0 require('dotenv').config(); const fs = require('fs'); const path = require('path'); const {PublicKey, Connection} = require('@...
David Dacruz's user avatar
1 vote
0 answers
90 views

How to update Token2022 transfer fee? [duplicate]

Hello I would like to know if it's possible to update the transfer fee for a Token2022 using @solana/web3 or any other way I've been looking all I i can find is the ...
David Dacruz's user avatar
3 votes
1 answer
137 views

Parse transactions in human readable format

How can I convert the data to the same form as it is done on the solana explorer for better readability?
slntrx's user avatar
  • 97
0 votes
2 answers
205 views

how to find a new token in the block

I searched for a similar question but couldn't find one. So, I get the last block, then inside this, block I parsing all transactions. My task is to find information that a new token has been created. ...
slntrx's user avatar
  • 97
2 votes
3 answers
181 views

What is the advantage of using the Token22/token extensions program over the older SPL token program?

My purpose is to mint fungible token a with a symbol and decimals. Should I use Token22 or the the old SPL token program What the advantage of token-2022? Is it fully adopted?
breeze wang's user avatar
0 votes
1 answer
83 views

Example 'spl-token-minter' of github.com/solana-developers failed on my localnet

I tried example [spl-token-minter] on github.com/solana-developers repo on my local net. Run anchor run test got error: Error Number: 3009. Error Message: Program account is not executable. Error ...
breeze wang's user avatar
0 votes
1 answer
115 views

Temporarily lock SPL token transfer for all ATAs

I'm new to solana development, with previous EVM experience, so it's hard to change my paradigm😅 I'm wondering what is the best way to lock SPL token transfers temporarily. So, I have mint ...
Oleh's user avatar
  • 3
1 vote
1 answer
228 views

Token22 create/update metadata using metaplex

The token was created using the Token22 program and the metadata was added directly to the mint account as described in the documentation: https://spl.solana.com/token-2022/extensions#metadata Because ...
spl-token22's user avatar
3 votes
1 answer
96 views

Token name and icon are not showing on explorers

The token name and icon are not showing on Solana explorers: https://explorer.solana.com/address/3Gx8FbPiWfSdgXoBMzT4r22n9nhyF5CiRv52qf3WhEL8 https://solscan.io/token/...
spl-token22's user avatar
2 votes
1 answer
166 views

What are Token Extensions in Solana?

I hear that solana token extensions are coming soon. A cursory search results in this: https://solana.com/solutions/token-extensions Is this the same as solana SPL-2022? What are the big differences ...
AceGravity's user avatar
1 vote
1 answer
103 views

Transfer Hook: Not backwards compatible with common wallets

As far as I understand from documentation all the Token-2022 extensions should be backwards compatible with normal transfers from spl-token standard. However when testing Transfer Hooks I was only ...
LubWn's user avatar
  • 13
2 votes
1 answer
104 views

Questions on Token2022 Metadata

Question 1 I was wondering how do I create a metadata PDA account that matches 1:1 with the T22 Metadata Interface. Here is my attempt so far: #[account] #[derive(Default, Debug)] pub struct Mint22 {...
Burger Bob's user avatar
  • 1,256
0 votes
1 answer
53 views

Getting Transaction simulation failed: Error processing Instruction 0: custom program error: 0x6, while creating permanent delegate

My instruction for creating permanent-delegate is invoke( &initialize_permanent_delegate( &ctx.accounts.token_program.key(), &ctx.accounts.mint_account.key()...
blackhorse's user avatar
0 votes
1 answer
44 views

SPL Token 2022 initialize_group - "Invalid Instruction"

** The code is functional. The issue was with the test framework. See solution **. I'm trying to create a group mint with token-2022. I've followed the steps in: https://github.com/solana-labs/solana-...
neft's user avatar
  • 231
2 votes
1 answer
28 views

How to use recover-lamports in Token2022 cli?

I just sent wrong SOL to the token program owned PDA (Token 2022) I found the url https://github.com/solana-labs/solana-program-library/pull/4094 And follow the url, I know that we can with draw SOL ...
Bach Tung's user avatar
2 votes
1 answer
59 views

Minting Token2022 token error. Account not found

I am trying to mint a Token2022 token. My first step: spl-token --program-id TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb create-token --enable-metadata Then: spl-token initialize-metadata ...
Jonas H.'s user avatar
  • 3,963
3 votes
1 answer
110 views

On calling ctx.bumps.get("mint_account"), failing with error method `get` not found for this struct

Hi I am trying to call ctx.bumps.get("mint_account") on #[derive(Accounts)] #[instruction(params: CreateTokenParams)] pub struct CreateToken<'info> { /// CHECK: New Metaplex ...
blackhorse's user avatar
2 votes
2 answers
128 views

How do I send a token with the transfer-hook extension using the spl-token command line interface?

I am trying to test the transfer-hook extension by creating and minting a token using the example transfer-hook program. I have successfully deployed the program, created the token with the transfer-...
tonton's user avatar
  • 55
0 votes
1 answer
177 views

How to get metadata pointer address for a token generated with Token program 2022

I am trying to decode name and symbol for token mint 9ymawKvJmd3yeNpi6h3WaWvxkjQiGPW6od9ZTXZaVxGD. It's owner is token program 2022, this is a token from fluxbeam AMM. It implements metadata extension,...
Mario's user avatar
  • 1
1 vote
0 answers
155 views

5 questions from a newbie about token2022 [closed]

I created a token2022 with Spl token cli (windows) can i add a logo to this How should I technically proceed to add it to any exchange? Transaction History "Executable: No " " Current ...
Ali's user avatar
  • 11
2 votes
1 answer
88 views

How to Access SPL-Token ATA Account Inside a Program for Burning

I'm creating a Token-2022 token with a transfer hook that burns some of the token on transfer. However, the token I want to use I want to create in the CLI. However, in order the burn a token, I need ...
Brian M.'s user avatar
  • 111
1 vote
1 answer
140 views

Token-2022: Can an Instruction to Execute a Transfer Hook be added to a Program with other Instructions?

I'm looking into using the transfer hook from token-2022 to run some logic whenever my custom spl-token is transferred. I came this Github link and while it helps, I have a lot of questions. Like for ...
Brian M.'s user avatar
  • 111