Skip to main content

Questions tagged [token-extensions]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
19 views

anchor_spl token_group_initialize invalid instruction

I'm receiving invalid instruction when calling token_group_intialize from the anchor_spl crate, I have followed this similar post but still no solution. Full code below. use anchor_spl::...
Daniel Boyer's user avatar
1 vote
0 answers
23 views

Does token-2022 allow selling tax instead of a basic transfer fee?

I'm new to Solana, I just wanted to figure out if the Token22 transfer fee extension can segregate buy tax and sell tax because in Ethereum I guess we could alter the ERC-20 contract by taking the LP ...
Rishabh Jamwal's user avatar
1 vote
1 answer
26 views

Is there a way add Creators addresses to an NFT with Token Extensions like Metaplex does?

I followed this tutorial to create NFTs with Token Extensions: https://solana.com/developers/guides/token-extensions/dynamic-meta-data-nft, however I don't see a way to add the Creators and display ...
Alex Ramirez's user avatar
1 vote
1 answer
28 views

SPL-TOKEN with token extensions enabled specifically transfer hooks ... would the SPL-BURN instruction invoke the transfer hook?

Follow on question from my earlier (and first) question regarding SPL-BURN instruction... If I have an SPL-TOKEN with token extentions enabled, specifically the transfer hooks extension ... if a user ...
GZERO's user avatar
  • 11
0 votes
1 answer
22 views

What's the difference between 'createInitializePermanentDelegateInstruction' and 'approve'?

The createInitializePermanentDelegateInstruction sets a permanent delegate for a mint. But then why do I need to use the approve method?
Manu Soman's user avatar
0 votes
0 answers
14 views

cannot find ../target/types/transfer_hook library

There is a reference for the below library in all Transfer hook examples. However, I have no idea how to install that in our local import { TransferHook } from "../target/types/transfer_hook"...
Sol Addict's user avatar
0 votes
1 answer
19 views

Exception in Transfer Hook program

I have a token mint with a Transfer fee and Transfer hook, I also have a hook program that limits the no of tokens sent in a single transaction. How do I make an exception in the hook program to ...
Sol Addict's user avatar
0 votes
0 answers
8 views

How to Create Extra Meta using Typescipt

I could not find a way using typescript to create extra metadata for the transfer hook program. I can initiate the Tranferhook Instruction using createInitializeTransferHookInstruction(mint, payer....
Sol Addict's user avatar
1 vote
1 answer
28 views

No transfer fee for Mint Owner

is it possible to exempt the token mint owner from the transfer fee? if not what happens when we create a market for such a token on Dex, Do all the rules apply while creating the market, like when we ...
Sol Addict's user avatar
1 vote
1 answer
34 views

Batch Transfer SPL Token that has Token transfer extension enabled

Is it even possible to batch transfer an SPL token that has a Token transfer(token fee) extension enabled? I would Like to create a program which takes the destination wallet from a JSON file and ...
Sol Addict's user avatar
2 votes
1 answer
228 views

How can I get my token using Token Extensions Metadata to display in Solana Explorer?

Why doesn't Token Extensions metadata display properly on Solana Explorer while Solscan, Solana.fm & Phantom wallet displays metadata without issues? For example, on devnet, I've created a test ...
Ken P's user avatar
  • 23
2 votes
1 answer
27 views

Transfer hook error: undefined (reading 'tlvData')

I'm having an issue creating a Mint with Transfer Hook. I'm getting Cannot read properties of undefined (reading 'tlvData'). This happens when I call createTransferCheckedWithTransferHookInstruction, ...
Justin Lee's user avatar
1 vote
1 answer
52 views

What is the purpose of Metadata Pointer Extension, given that Token Metadata means I can store metadata directly in the mint?

Reading How to use the Metadata Pointer extension - and other sources - I am struggling to understand the purpose of the Metadata Pointer extension, given that the Token Metadata extension exists ...
mikemaccana's user avatar
  • 2,031
0 votes
1 answer
23 views

How to calculate interest for InterestBearingConfig extension without sending a transaction?

Currently, it seems like to calculating the accrued interest for a mint account with the InterestBearingConfig extension requires sending a transaction with the AmountToUiAmount instruction. /** * ...
john's user avatar
  • 7,445
1 vote
1 answer
48 views

What token extensions are live on mainnet?

We are planning on using various 2022 token extensions for our project, having spoken with a few other Solana developers, it seems that not all token extensions are currently working on mainnet. Is ...
Kraz's user avatar
  • 13
2 votes
2 answers
144 views

How to create a token with confidential transfers and transfer fee extensions?

How can I create a SPL token with the both the confidential transfer and transfer fee extensions?
erah's user avatar
  • 21
0 votes
1 answer
31 views

Solana Token Extensions to Modify Transaction

Regarding token extensions: https://cdn.builder.io/o/assets%2Fce0c7323a97a4d91bd0baa7490ec9139%2F83c26b9268f64400b8eb67442579a31a?alt=media&token=525415b0-d3ea-48d7-83d6-0fb0d9e522c6 "...
Drew R's user avatar
  • 21
1 vote
1 answer
83 views

Create Token extension mint results in "invalid account data for instruction"

I am trying to create a token mint with extension in anchor. This works fine until I try to to add an additional extension to the mint. When I call: let space = ExtensionType::...
Jonas H.'s user avatar
  • 5,737
2 votes
1 answer
159 views

Cannot create a confidential token account using Token2022

I am trying to follow the quickstart guide here, and when I get to the third command, trying to configure a confidential transfer account on Solana testnet, and I am getting the following error: Error:...
michaelb's user avatar
1 vote
1 answer
126 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
2 votes
1 answer
90 views

Create soulbound NFT using solana token extension

I want to create soulbound NFT (aka nontransferrable NFT) using Solana token extension specifically with the nontransferable token extension. How do I achieve this and how do I specify the metadata?
Tahlil's user avatar
  • 161
0 votes
0 answers
18 views

Conditional Tokens on Solana

I'm trying to experiment with conditional tokens on Solana. A link to the docs below from Gnosis is a reference to what they are. Their main use case is prediction markets esp. those with an AMM ...
gritty's user avatar
  • 61
2 votes
3 answers
385 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
2 votes
1 answer
410 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
89 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
  • 276
0 votes
2 answers
436 views

How to read the metadata on a mint account created using the metadata interface?

I've tried creating a mint account with metadata stored on the mint account using the metadata pointer extension and the metadata interface, but I'm not sure how to read the metadata from the mint ...
john's user avatar
  • 7,445
0 votes
0 answers
59 views

How to pass a signer through to custom Transfer Hook program?

When sending a transferChecked transaction with the transfer hook extension enabled, it seems that a custom transfer hook program fails to receive the signers from the Token 2022 program when it CPIs ...
john's user avatar
  • 7,445
1 vote
1 answer
176 views

What's the use case for the Interest Bearing Mint Token Extension?

The Interest Bearing Mint token extensions seems allow for a "interest rate" to be configured directly on the Mint Account. The interest accrued is then only a UI calculation for a given ...
john's user avatar
  • 7,445
1 vote
1 answer
89 views

What's the use case for the CPI Guard Token Extension?

The comments for the CPI Guard token extension mentions the following: /// Lock certain token operations from taking place within CPI for this /// Account, namely: /// * Transfer and Burn ...
john's user avatar
  • 7,445