Skip to main content

Questions tagged [spl-token]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
339 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
32 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
78 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
56 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
29 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
79 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
54 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
227 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
85 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
66 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
34 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
137 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
168 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
38 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
277 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
62 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
131 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
181 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
676 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
0 votes
1 answer
59 views

Unable to create a PDA TokenAccount using anchor constraints

I am trying to create a PDA TokenAccount and transfer an NFT from the users (signer) account to the created PDA. For some reason the PDA is not being created. After the transfer when i try to read the ...
Faheel Mohammad's user avatar
1 vote
0 answers
24 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
0 votes
0 answers
29 views

Can't get instruction to buy now MagicEden API

I don't understand what I'm doing wrong. Trying for a long time on different nfts and still no success, always gets err: 'invalid collection'. But if I'm correct according to official docs it's almost ...
JhonnySl's user avatar
2 votes
1 answer
271 views

SPL Token Not Displaying on Solscan or Phantom Wallet

The logo is not appearing in Phantom Wallet or Solscan. Everything looks to be in order. Any ideas why the image would not be displaying? If so, what solutions are available since the metadata is ...
Indigo818's user avatar
0 votes
1 answer
169 views

How to Process and Display Solana Transactions Like Wallets Do?

I'm working on a project in Node.js executed within a browser, where I'm attempting to process transactions received from various applications and display what they initiate, similar to how wallets ...
scal's user avatar
  • 1
1 vote
1 answer
232 views

Create custom token address

spl-token create-token token-key-pair-file Can this command create same token address with wallet address? When I see “spl-token create-token —help” it provides keypair argument.
jagveer singh's user avatar
3 votes
1 answer
259 views

"Create Account: account Address already in use" when creating a custom token

spl-token create-token 5bciMkmLh96tVzBHVS5ybxYPZFjaXydKZpRnstdoj3Zq.json When creating token: 5bciMkmLh96tVzBHVS5ybxYPZFjaXydKZpRnstdoj3Zq under program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA ...
jagveer singh's user avatar
2 votes
2 answers
116 views

createInitializeMintInstruction() ----> error: invalid account data for instruction using

I am trying to use the "createInitializeMintInstruction()" using JS to create a token. The problem is when executing, it throws an error. Concretely this one: Transaction simulation failed: ...
lauteriust3's user avatar
3 votes
1 answer
159 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
81 views

SPLToken u64 is not working anymore?

let response = await connection.getTokenAccountsByOwner(wallet.publicKey, {"mint": new PublicKey("Mint token")}) response.value.forEach((e) => { console.log(`pubkey: ${e....
Roberto II Gludo's user avatar
1 vote
1 answer
98 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
1 vote
1 answer
61 views

3 different values of Fungible Token Balance with spl-token instructions - which one is good?

1. ABSTRACT OF THE PROBLEM In order to explain my problem, I thought the best way was to put copy & paste of the instructions I put and the answers I got from Solana Network. There is at least 2 ...
AJSP's user avatar
  • 41
1 vote
1 answer
57 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
728 views

Simulating a buy/sell transaction

I just need some direction in figuring out how to simulate a buy/sell transaction of an spl token. example token: G33s1LiUADEBLzN5jL6ocSXqrT2wsUq9W6nZ8o4k1b4L i've messed around with solana-py/solders ...
user9116's user avatar
2 votes
1 answer
581 views

LP locker for Solana

Does anyone offer a process for locking liquidity in Solana projects? I can’t find anyone like pinksale for solana
Hugh's user avatar
  • 31
2 votes
1 answer
113 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
2 answers
75 views

Why doesn't SPL token use PDAs as source and destination accounts when transferring token?

I've recently learnt SPL token, and surprisingly found that when transferring tokens, the source account and destination account are private key accounts (instead of PDAs) that are owned by the token ...
Yan's user avatar
  • 333
0 votes
1 answer
110 views

How to transfer SPL-tokens using Rust

I want to add to my smart-contract tranfer SPL-tokens. How i can do that? If I have ATA, receiverATA, mint, amount, decimals. use solana_program::{ account_info::{next_account_info, AccountInfo}, ...
Adrew Token's user avatar
1 vote
1 answer
953 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
0 votes
1 answer
101 views

CreateMetadataAccountV3: Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s failed: An account required by the instruction is missing

Faced with problem that CreateMetadataAccountV3 simulate fails with Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s failed: An account required by the instruction is missing error. Here is my ...
SODAMNFOOLISH's user avatar
1 vote
2 answers
373 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
1 answer
92 views

How to transfer frozen NFT's

I've got a problem. I can't send NFT in my JS code, or rather include in transaction token NFT account which has state - frozen. How can I unfreeze it? I've seen an example that I need to use Metaplex....
Adrew Token's user avatar
0 votes
1 answer
42 views

Error: Signature verification failed (ThawAccount)

I'm trying to add ThawAccountInstruction to my main transaction but but I'm getting an error Signature verification failed. I'm trying to unfreeze the frozen accounts (NFT) in my wallet and send them ...
Adrew Token's user avatar
4 votes
2 answers
92 views

Why do some token accounts own themselves?

I was under the impression that accounts owned by users owned a set of token accounts which each represent one distinct token that they own - meaning token accounts would only be owned by a user. For ...
xxl's user avatar
  • 43
0 votes
0 answers
21 views

How to send "frozen" SPL-token (NFT)? [duplicate]

How can I send tokens (NFT) if the token account has state - frozen ? Is there any way to do it with TransferInstruction ? Cause they just don't go through in a transaction from one token account to a ...
Adrew Token's user avatar
1 vote
1 answer
71 views

How to use SystemProgram.assign?

I have my two accounts. Is there any way to make the second account the owner of the first account using SystemProgram.assign instructions? So that I can sign transactions with the secret key of the ...
Adrew Token's user avatar
0 votes
1 answer
79 views

How to remove/change "Estimated Changes" in Phantom app?

I need to not show Estimated Changes before sending a transaction, is there any way to do this? Or even change the parameters that are shown there. When I send tokens to myself. I have a hunch that it ...
Adrew Token's user avatar
2 votes
1 answer
59 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
  • 151
0 votes
1 answer
49 views

Error with sending SPL-TOKENS (NFT) using @solana/spl-token library

I have a problem with sending tokens. I need to send NFT from my Phantom wallet. Most likely the problem is with Assosiated Token Account, because somewhere in this process I catch errors. I'm trying ...
Adrew Token's user avatar

1 2
3
4 5
12