Questions tagged [spl-token]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
77 views

How can I add metadata to an existing fungible token? [duplicate]

I have an existing token mint created with the createMint() from "@solana/spl-token" How can I add metadata to the fungible token? The Metaplex docs cover creating a new fungible token from ...
mikemaccana's user avatar
  • 1,805
0 votes
0 answers
16 views

Token auth rules for fungible tokens

There is Metaplex Token Auth Rules tool that allows setting permissions for programmable NFTs. Is there a similar tool for setting up additional validation rules, but for fungible tokens created by ...
solanauser67's user avatar
0 votes
0 answers
48 views

Transaction cost associated with Creating a new Associated Token Account ~10X higher than expected

I am creating a new SPL Token, and creating Associated Token Accounts for two wallets. The documentation indicates that the cost of creating a new Associated Token Account is ~0.00204428 Sol ($0....
Ariel's user avatar
  • 1
2 votes
1 answer
48 views

Transfer Hook vulnerabilities

I can't tell how safe it is to arbitrarily support transfers on "transfer hook" enabled tokens via CPI from my program. At the moment i am setting is_signer and is_writable to false on all ...
Trevor's user avatar
  • 115
0 votes
0 answers
58 views

solana pnft staking program

I'm trying to escrow the user NFT in the stake instructions bu using transferbuilder and using sign invoked with master edition nft as i assume it has the freeze authority on pnfts and getting this ...
amirhoseyn hz's user avatar
0 votes
0 answers
16 views

Wallet or wallet owner is undefined in createTokenAccount

It won't create the Token Account, it says: Wallet or wallet owner is undefined. I tried to change it to Wallet: wallet instead of Wallet: any. try { // const connection = new Connection('...
JackSparrow's user avatar
0 votes
1 answer
70 views

TransactionExpiredBlockheightExceededError Cant Send SPL Tokens [duplicate]

I'm trying to airdrop to my users, but 9 out of 10 of the transactions I send fail, I can't understand the reason, does anyone have any suggestions? Example Error: Error sending tokens to ...
Yazılım Destek's user avatar
0 votes
0 answers
38 views

Solana spl-token creation and mint

import { getKeypairFromFile } from "@solana-developers/helpers"; import { ExtensionType, LENGTH_SIZE, TOKEN_2022_PROGRAM_ID, TYPE_SIZE, createInitializeMetadataPointerInstruction, ...
dogevr's user avatar
  • 1
1 vote
1 answer
45 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
  • 11
1 vote
1 answer
37 views

How to use the key pair of the user connecting on my website to mint SPL token

I want to create a website for users to connect their wallets (phantom etc) to my website, then they can generate tokens into their wallets themselves. I looked at the example on https://spl.solana....
Dat Nguyen's user avatar
0 votes
1 answer
98 views

What is the workaround for the "TransactionExpiredBlockheightExceededError" error when transferring "spl-tokens"?

You've created a wallet feature using the Web3js SDK. I created functions related to Solana and SPL-token retrieval and transfer and used them well. However, recently I am getting an error when ...
user11352's user avatar
0 votes
0 answers
114 views

Solana SPL token holder count

I'm trying to find an efficient way to get the total token holders of an SPL token. For ETH ERC-20 tokens I use Etherscan API, this returns me an integer of the total holders of the token address used ...
Timmy12321's user avatar
0 votes
1 answer
47 views

Transfer USDC with Rust one wallet to another

I'm newest here and i would like to do transfer USDC from defined wallet to defined another wallet. From account could be Signer account. I'm really confused and i don't know what should i do. With my ...
Berkay Kaplan's user avatar
2 votes
1 answer
32 views

Can I construct an SPL token account by myself and assign this account to Token Program?

Can I make some USDC like magic via the method described as following? I'll use a keypair to create an account (say account A) with the same space as a token account. Then I'll assign account A to a ...
Yan's user avatar
  • 313
1 vote
1 answer
56 views

Anchor: Initialize token mint with metadata and extension transfer fee

I would like to initialize in my Anchor program a new token to mint with extension transfer fee and metadata. It keeps return error InvalidAccountData when invoke initialize_transfer_fee_config, i ...
Jade's user avatar
  • 82
0 votes
2 answers
113 views

How to get SPL token value in SOL / USD (exchange rate) using the Raydium SDK?

I've already got the SPL token mint address using @solana/spl-token and @solana/web3.js, now I want to get how much this SPL token is valued in SOL using the Raydium SDK. I've looked at some answers ...
Tyran's user avatar
  • 3
1 vote
1 answer
130 views

obtain the contract of a token through the address of a holder

I am currently learning the basics of programming in solana using the different json functions and I have a question Is there a function that gives you the contract of a token having only the address ...
lea's user avatar
  • 11
1 vote
1 answer
38 views

what should be value of tokenswapStateAccount when trying to swap

I am using node js @solana/web3 and @solana/spl-token and spl-token-swap libraries to perform a swap of token. I am confused with what should be the value of tokenSwapStateAccount and where would I ...
Prashant Singh's user avatar
0 votes
0 answers
132 views

Trying to Swap SOL for any token using node js

I am writing a node js code to swap SOL token to any token. I am using @solana/spl-token-swap node module for the same. First, I am creating an associated address for the token I am swapping to. I am ...
Prashant Singh's user avatar
1 vote
0 answers
25 views

Mint NFT using python

currently i am using django as a backend system for my application. I want to create a function to mint the NFT. I have gone through various libraires but couldn't get much idea.
Shubham Jaiswal's user avatar
0 votes
1 answer
38 views

Solana Web3 Instructions Suddenly Not Working (Next.JS)

I've got a Next.js application making a few transactions calls using '@solana/wallet-adapter-react' and @solana/spl-token The application has been working fine locally until with the transactions ...
Steve F's user avatar
0 votes
1 answer
151 views

Swapping a token for SOL on Jupiter. An example from github

I've found this repository https://github.com/jup-ag/sol-swap-flash-fill It claims that it can swap ANY SPL token for SOL. After having examined the code, though, I haven't found any place in it where ...
kriss100's user avatar
0 votes
2 answers
33 views

createFreezeAccountInstruction causing sendTransaction to fail

I'm trying to send a createFreezeAccountInstruction using @solana/spl-token and @solana/wallet-adapter-react but I keep getting a general sendTransaction failed error after signing the transaction in ...
Steve F's user avatar
0 votes
0 answers
42 views

Fetch trending solana tokens without 3rd party API

GM Buildooors! What's the optimal approach to fetching on-chain data about trending SPL tokens like we have on platforms like Dextools, Birdeye, Step Finance etc.? Preferably without the help of 3rd ...
Abdullah Aftab's user avatar
0 votes
1 answer
50 views

mintTo(...) of my Token-2022 - Error processing Instruction 0: invalid account data for instruction

Here's a part of the code of minting my Token-2022 which I've deployed previously //........................ console.log( `\npayer: ${payer} $$ ${payer.publicKey}`, `\nmint: ${mint}`, `\...
barugaggi's user avatar
1 vote
1 answer
38 views

Minting a Fungible SPL token to same ATA (more than 1 time) always fails

I'm pretty new solana ecosystem and have been following multiple tutorials on minting Fungible SPL tokens. On all the tutorials, you create a Mint and ATA and the then the first time the mint ...
newbreedofgeek's user avatar
0 votes
1 answer
238 views

why the transaction failed?

so I send the transaction const buySign = await connection.sendTransaction(swapTx, [wallet], { skipPreflight: true, preflightCommitment: 'confirmed', maxRetries: 3 }) I get ...
slntrx's user avatar
  • 97
0 votes
1 answer
347 views

Need help with raydium sdk

I am building a swap like app that uses raydium but I'm facing alot of problems. I copied someone's code and tried to change it a little bit but something is quite off. Whenever I try to sell the ...
user10900's user avatar
0 votes
1 answer
109 views

Get SPL Token Holders

Is there any other method to retrieve SPL token holders? I'm currently using the Helius API, but it's giving me an "exceeded limit" error.
Maidi's user avatar
  • 444
1 vote
1 answer
236 views

How to get transaction data from getParsedTransaction?

I'm currently writing script to track wallet address by using connection.onLogs , and when i got the signature i called getParsedTransaction hoping to get the transaction details such as what wallet ...
irregular's user avatar
0 votes
0 answers
31 views

How to fetch all information about spl token with token address in anchor or in javascript

i want to fetch token information of spl token directly from the solana blockchain . Give some solution to fetch metadata , tokenomics data and security data of spl token . i want to fetch directly ...
muthu kumar's user avatar
1 vote
0 answers
73 views

Error: Transfering SPL Tokens via Python

I have been transferring my SPL Tokens via python for 2 months and there is no problem. With the same code, nothing has changed. When I did the transfer I got a signature and when I check this ...
Uğur Demirezen's user avatar
0 votes
0 answers
15 views

How to inherit or create an extended version of Token-2022? "is" in Solidity

I know how to create a token based on Token-2022 -- instanciate it. That what in Solidity is is keyword. However, I'm confused: how to create a one that extends it? That is, there would be Token-2022-...
barugaggi's user avatar
0 votes
0 answers
55 views

Solana program for daily SPL token airdrop

I am planning for an SPL token launch and would like people to visit my React app to claim the token on a daily basis. What I am wondering is how much of the logic should go into the Solana program ...
Rahlok's user avatar
  • 1
0 votes
1 answer
26 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
0 votes
1 answer
66 views

Token Not Searchable in Solana Explorer

I have created a new token called UBXP: https://solscan.io/token/HTskJUiHaGzWMEqreucDGJuft3Zco4en2dRkzJ3WRHkh#metadata https://explorer.solana.com/address/HTskJUiHaGzWMEqreucDGJuft3Zco4en2dRkzJ3WRHkh ...
EvanOnEarth's user avatar
0 votes
1 answer
52 views

How transfer SPL tokens from PDA to usual account in clean RUST?

I have PDA created in JS this way: let [pda, bump] = await PublicKey.findProgramAddress( [baseAccount.publicKey.toBuffer(), Buffer.from('1', 'utf8')], programIdPublicKey ); baseAccount is a ...
Maksim Tolstikov's user avatar
1 vote
1 answer
172 views

How to transfer Wrapped Sol from one account to another using solana web3.js

I want to transfer a token from one wallet to another using solana web3.js but am confused on how to. I found this link which does go over how SPL tokens are transferred but there are a few missing ...
Zero's user avatar
  • 123
0 votes
1 answer
78 views

Mint Token in token2022 has name, symbol info, how can it? Does token2022 support metadata?

From my knowledge, Token2022's Mint account is don't have name and symbol info: https://github.com/solana-labs/solana-program-library/blob/6edf3ecc3f51a9f7a6faba9a1a4d30f1e4857e69/token/program-2022/...
breeze wang's user avatar
0 votes
1 answer
62 views

Simple SPL-token stake vault

I'm looking for a simple vault-like for SPL-tokens, something like ERC-4626 for evm, you deposit tokens and you receive shares, then if the pool has more tokens your shares worth more. Reading the ...
Shelvak's user avatar
  • 11
1 vote
1 answer
33 views

How does MintAccont and Metadata Account linked to each other?

Looking at this picture (From https://lorisleiva.com/owning-digital-assets-in-solana/how-nfts-are-represented-in-solana) I have some questions: 1)what is the Mint Account data struct defined? Can ...
breeze wang's user avatar
0 votes
0 answers
117 views

simulate transaction error

trying to simulate a swap transaction using jupiter for the quote + serialized swap tx the error im getting is: {'jsonrpc': '2.0', 'result': {'context': {'apiVersion': '1.17.21', 'slot': 250049932}, ...
user9116's user avatar
1 vote
2 answers
161 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
0 answers
36 views

How can I transfer Solana from several different wallets to one wallet in a single tx?

How can I transfer Solana from several different wallets to one wallet in a single tx? I prefer web3.js if you have the code for that. also I am hiring so write your Discord below if you know the ...
Elliot's user avatar
  • 21
1 vote
1 answer
215 views

Best way to fetch metaplex token metadata

In a NextJS app. Say I enable a user to created a basic token using the @metaplex-foundation/mpl-token-metadata library with some metadata like name, symbol, decimal, uri etc... And I also enable the ...
Dmitry Sky's user avatar
0 votes
2 answers
52 views

Given a list of token accounts for a wallet, how do I determine which accounts the user/wallet has mintAuthority?

I built a ui using NextJS and the Solana wallet adapter library. I'm using getParsedTokenAccountsByowner to display all token accounts when the user connects their wallet. I want to map over all these ...
Dmitry Sky's user avatar
0 votes
1 answer
108 views

Parsing Token Program Transactions

I'm currently working on monitoring the Solana Token Program with the address TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA. My goal is to filter out specific events, namely Token Mints, Token Burns, ...
Abdullah Aftab's user avatar
0 votes
0 answers
16 views

spl-token library failing to fetch rent exemption minumum?

I'm working with the @solana/spl-token lib, and when running createMint, I keep getting hit with TypeError: fetch failed. I have narrowed this down to the getMinimumBalanceForRentExemptMint function ...
Morgandril's user avatar
0 votes
1 answer
136 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
0 votes
1 answer
655 views

the solana program reverted with the following error -- this account may not be used to pay transction fees l [closed]

tudo que eu vou fazer na solana acontece isso e eu tenho muita taxa me ajudem
user9305's user avatar

1
2
3 4 5
12