Questions tagged [spl-token]

The tag has no usage guidance.

129 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
130 views

Using createMetadataAccountV3

I am trying to add metadata to my token, so I wrote the following function: import {clusterApiUrl} from "@solana/web3.js"; import {createUmi} from "@metaplex-foundation/umi-bundle-...
Udi Hakim's user avatar
3 votes
1 answer
802 views

Why does OpenBook Market ID show Unknown-USDC in Solscan when metadata is completed?

I have created an SPL token with metadata: https://solscan.io/token/H6jYKkuRM6DX7t7keeVDm7neGW6RUQWSNw2EZub1ruhz#metadata I can see the token image and the metadata, so everything looks okay. But, ...
dancing_carrot's user avatar
2 votes
1 answer
41 views

Where to find ammConfig address?

I'm currently experimenting with AAM Pools from Raydium. Some actions require a ammConfigId. Does someone know where I can find or fetch this address?
Stefan D.'s user avatar
  • 181
2 votes
0 answers
38 views

Loan Execution using sharkysdk

I was hoping to get some help here we were able to integrate wallet to our platform and we are close to integrating sharky sdk so users can take loans from us, but we had an error in the last step ...
Youssef Massabi's user avatar
2 votes
1 answer
125 views

Recreate SPL Transfer from a `CompiledInstruction`

i wanted to ask if i can decode an existing SPL token transfer from transaction hash only. const transaction = await client.getTransaction(transactionHash!); Returns a TransactionReponse from @solana/...
Saad Ahmed's user avatar
2 votes
0 answers
141 views

How to mint an spl token in a Rust script?

I've been learning Rust and piecing together some code that will mint 1 spl-token. My script compiles, creates an account, initializes a mint, creates the associated token account, and mints 1 token ...
Brian's user avatar
  • 21
2 votes
0 answers
525 views

Token accounts and "setAuthority"

I've been trying to understand the intended use cases of setAuthority function in the context of Token accounts. For Mint accounts, it is clear that setAuthority can be used to set the mint and freeze ...
mcshell's user avatar
  • 205
2 votes
0 answers
183 views

I cannnot name my solana token created with spl-token cli

I have created a new fresh token in the terminal with the spl-token creator MacBook-Pro token-vesting % spl-token create-token Creating token F2Ty85DNzwXYfVaHhnBGCvmJyzRU9tZiDfJPYJMAc57h MacBook-Pro ...
Martin Tonev's user avatar
1 vote
0 answers
9 views

Error deploying spl-token

Hi can I ask some questions, I was trying to deploy a spl-token to solana it works in devnet however it doesn’t work in mainnet-beta. Does anyone know how to resolve this? Thanks
Jethro Cenas's user avatar
1 vote
1 answer
16 views

Sending multiple tokens in one transaction without exceeding transaction limit

I'm making multiple swap tokens soft, so i work with a lot of different SPL tokens. The issue i ran in to is transfering all of this tokens in one or few transactions. Let's say i create one ...
youwish's user avatar
  • 13
1 vote
1 answer
16 views

SPL Token Metadata Initialization Error - Transaction Simulation Failed

I am trying the SPL Token Program to configure the metadata for the token deployed on DevNet. I have validated the token mint address. It is displaying the following error. Could you please help to ...
Gokul Alex's user avatar
1 vote
0 answers
27 views

how to create market id in devnet with js

I was learning solana evm on devnet and I started to code a token with @solana/spl-token library and then I tried to add a liquidity to radiyum and then it asked for openbook market id , I want to ...
diana artist's user avatar
1 vote
0 answers
12 views

Does spl-stake-pool support Token-2022 standard? I want my xsol or ysol to be of Token-2022 standard, Is it possible?

As in the title when i stake my sol to the stake-pool, The token that i get in return should be of Token-2022 standard. Is it possible? I don't have much idea of the spl-token pool.
Abhishek Faliya's user avatar
1 vote
0 answers
14 views

How to transfer SPL token to a PDA from Phantom or Solflare

As the title, I can not transfer token to a initialized PDA from the wallet. It say errors on Phantom and Solflare: PDA address: https://solscan.io/account/...
Lê Văn Anh Tú's user avatar
1 vote
1 answer
15 views

spl-token Metaplex adding metadata issues

can anyone help with this error. happens after i try run my javascript that i compiled from typescript, to add metadata to my existing solana token. bigint: Failed to load bindings, pure JS will be ...
bigjohn's user avatar
  • 21
1 vote
0 answers
16 views

Transfer Token2022 and spl-token

How can I transfer Token2022 and simple Token in a same instruction using anchor?
Tayab's user avatar
  • 11
1 vote
1 answer
36 views

How do I mint a Fungible SPL token with name, symbol, and other Metadata?

I am fairly new to Solana development and currently learning how to mint fungible tokens with custom metadata. I am able to mint a SPL-Token on devnet using spl-token library, however finding it bit ...
BlockLearner's user avatar
1 vote
1 answer
40 views

Solana SPL-22 token fee not claimable

I made a Solana spl-2022 memecoin on Dexlab with a 4.9% fee for marketing. Some transactions are made and a withheld amount is visible on the blockchain (solscan). When I look at Dexlab's claim fee ...
VKah33's user avatar
  • 11
1 vote
0 answers
25 views

hung transactions (connection.sendTransaction return txHash but it never mined)

const signature: signature = await connection.sendTransaction(transaction, [account], options) I am sending multiple transactions via private key I get a hash of the transaction but it doesn't get ...
Павел Хавилов's user avatar
1 vote
0 answers
28 views

TokenAccountNotFoundError when trying to pass SPL tokens using anchor

I am trying to build an anchor project where I want to pass a specefic token from one address to another. The token was made using spl-token in cli. I am getting TokenAccountNotFoundError when running ...
Gopal Mathur's user avatar
1 vote
1 answer
32 views

sendAndConfirmTransaction does not exist for typ connection

How can I solve this? as far as I have seen, it has the typ connection.. export async function createMint( wallet: WalletAdapter, mintAuthority: Keypair, decimals: number ) { if (!wallet....
JackSparrow's user avatar
1 vote
0 answers
112 views

Bypass TransactionExpiredBlockheightExceededError

So, i've been trying to send multiple addresses my token using Javascript (@solana/web3.js and @solana/spl-token). Sadly, the same error occurs multiple times, ...
Ellen's user avatar
  • 11
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
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
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
1 vote
0 answers
22 views

Deploy / Add metadata / Mint supply / Transfer - ALL IN ONE TRANSACTION

I saw something on explorer that it deploy, add metadata, mints, and transfer the token in one single transaction. Is that a bug or he just using the instruction? Example scenario
Glock's user avatar
  • 11
1 vote
1 answer
54 views

How can you check if a SPL token has been modified from the stock Token Program?

How can you check (programatically) that an SPL token has not been extended or modified beyond the standard custom parameters such as Symbol, Name and Supply etc available in an SPL token. I want to ...
Robert Griffith's user avatar
1 vote
1 answer
862 views

Liquidity pool without UI from Raydium

I'm looking to create a SPL token and I'm wondering if you can create a liqudity pool / remove liquidity pool without using the UI on Raydium.
Koken's user avatar
  • 11
1 vote
2 answers
331 views

Getting "incorrect program id for instruction" when attempting to create a token account after creating a mint

I have just started learning Solana and my first exercise is to build a script that can create a token and then create vault accounts for use on openbook market: Create token create & initialize ...
trippyfish's user avatar
1 vote
0 answers
300 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
1 answer
572 views

Set Mutable Metadata to False on SPL Token

GM guys I hope you can help me. I'm going crazy trying to find a way to delete the "Mutable metadata" entry from my token (attached image). Resources on the internet are limited at the ...
Newbie dev Solana 's user avatar
1 vote
1 answer
142 views

Solana Program failing "An account required by the instruction is missing"

I am currently playing around with Solana Playground and have come across an error that I can not seem to fix. I have written a program for native Solana in Rust with a little help from GPT4 which has ...
Dr. alx's user avatar
  • 11
1 vote
0 answers
190 views

Create OpenBook Market with 0 decimal spl token

i have created a 0 decimal spl token and i need to Create OpenBook Market on raydium. My question is how much "minimum order size, and minimum price tick size should i set for 0 decimal token? ...
Nick's user avatar
  • 11
1 vote
0 answers
97 views

Unable to do the CPI to Orca whirlpool program after obtaining its interface via solang

Description We are unable to correctly finalize the call to the Orca whirlpool program fork after we have obtained the whirlpool interface via the solang idl whirlpool.json command. When doing the CPI,...
Aleksandr Kuperman's user avatar
1 vote
1 answer
37 views

How to transfer an NFT token from a regular (onCurve) account to a PDA one using Solang

Does anyone have an example of how one can transfer an NFT token from a user account to the PDA one using Solang? The reason is to be able to acquire NFT-s sent by users on a program account (deposit),...
Aleksandr Kuperman's user avatar
1 vote
1 answer
183 views

How to send SPL tokens from a contract in Solang?

I'm trying to use the lever/hand example together with the SPL token example, but I keep getting: Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: ...
Jonat Yellow's user avatar
1 vote
2 answers
141 views

Associated Token Account address not correct?

I'm trying to access this associated token account: https://solscan.io/account/DizwsnTVoLCXskwqLMxYCaLqssrArUP2NRQb7dHzDprb via the following code: const token = new PublicKey("...
Thud's user avatar
  • 41
1 vote
0 answers
975 views

How to add metadata to my SPL token

I'm trying to add metadata to my token on the Devnet and every solution listed on the documentation doesn't seem to work. I tried to: update it from here: https://token-creator-lac.vercel.app/update ...
Anthony's user avatar
  • 21
1 vote
0 answers
299 views

mpl-token-metadata library not installing build Failed

I tried different versions, after adding mpl-token-metadata library and then simply running anchor build fails with the following error. use spl_token::state::is_initialized_account; | no `...
Abdullah Qureshi's user avatar
1 vote
0 answers
20 views

dex lab invisibile token in swap

I'm trying to exchange my token on dex lab but I can't do it, because it's not visible in the area "buy my token". You can look here: https://www.dexlab.space/token/...
AlexWin99's user avatar
1 vote
0 answers
87 views

Sending SPL Token Exception

I am attempting to transfer tokens when a user clicks a button. Once a user connects their wallet I have this method that gets called when a user clicks a button async function claimTokens() { ...
ShadyTSD's user avatar
1 vote
0 answers
86 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 ...
Zantetsu's user avatar
  • 136
1 vote
0 answers
349 views

Find Staked NFTs Of A Wallet

I want to build a portfolio tracker for SOL wallets. I'm stuck on finding the staked NFTs of a user(wallet). Do I have to dig over the transactions or is there a smart way to find the staked NFTs of a ...
IsthereAnyoneee's user avatar
1 vote
0 answers
109 views

Getting unexpected `TokenAccountNotFoundError` while creating a new Associated Token Account

I am creating an ATA by the following code: export const createAta = async (mint: web3.PublicKey, keyPair: web3.Signer) => { const { connection } = useWorkspace(); try { const ata = await ...
CeNiEi's user avatar
  • 11
1 vote
0 answers
200 views

Attach metadata to existing fungible token

I have tried to use CreateMetadataV2 to attach the metadata to my token, but the token name, symbol and image is still not changed. The metadata is shown in Solana Explorer with no issue. Is there any ...
Jia Yih's user avatar
  • 11
1 vote
1 answer
272 views

SPL Token Image not displaying in Phantom or Solscan

My image is not appearing in Phantom or Solscan. Metadata looks correct, image is an arweave link that works when searching. Any ideas why the image would not be displaying? https://solscan.io/token/...
Dadchain's user avatar
0 votes
1 answer
28 views

unable to fetch spl token metadata using SPL SDK?

My goal is to try to get the metadata for a token. Let's say BONK. The code snippet im using: const tokenMetadata = await getTokenMetadata( connection, new PublicKey("...
user9102's user avatar
0 votes
1 answer
6 views

Burn operations fail

I'm playing around with Solana Playground using this example - https://beta.solpg.io/6570e5b7fb53fa325bfd0c4e and what I'm trying to do is burn some of the locked token fees, I'm doing it at this ...
Steliqn Nedev's user avatar
0 votes
0 answers
10 views

How to specify the amount to be minted and total supply in "createAndMint(...)"?

Fungible tokens The createAndMint(...) function accepts the parameter amount. This is an amount of tokens to be minted immediately, right? Then how to specify the total supply?
barugaggi's user avatar
0 votes
0 answers
16 views

plateform scams solana

I recently fell victim to an exchange scam. I sent 8000 USDT from my Binance platform to a site called < solsit.com >, believing it was a legitimate exchange. However, after completing the ...
malika rizki's user avatar