Skip to main content

Questions tagged [spl-token]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
30 views

Need some guide or snippet, demo to transfer SPL token out from program's PDA account

My goal is to have my own program receive any Token, store in one of PDAs of program. Then transfer they out to end user wallet. Currently I successfully send token to program's PDA, but still not ...
breeze wang's user avatar
2 votes
2 answers
204 views

Need some guide or snippet, demo to transfer SPL token out from program's PDA account

My goal is to have my own program receive any Token, store in one of PDAs of program. Then transfer they out to end user wallet. Currently I successfully send token to program's PDA, but still not ...
breeze wang's user avatar
0 votes
1 answer
9 views

Query Regarding Solana Contribution Cap Implementation

We're exploring the implementation of a crucial feature for Solana-based project. Would it be possible to make a mechanism that enforces an individual contribution cap to a liquidity pool? This is ...
SLP tests's user avatar
0 votes
1 answer
220 views

Trying to deploy A solana SPL token With A Max Wallet

I have been searching for hours and hours and days but i cannot find a way to deploy a spl token with a max wallet for each user such as , a wallet can buy only 2% of the supply , not more , is there ...
Daily1 Motivation's user avatar
0 votes
1 answer
56 views

How to get all addresses that hold a specific SPL token and the token balance during a specific time?

Is there a way to get all addresses with a specific SPL token and its balance during a specific time?
t330's user avatar
  • 1
1 vote
1 answer
327 views

Ho to transfer SPL-tokens (NFT) to another wallet using Phantom?

I'm working on project where i need to transfer NFT's or tokens from connected wallet with Phantom or Solflare. So idk how to create token account (if it doesn't exist) and include it in ...
Adrew Token's user avatar
1 vote
1 answer
49 views

Add SPL Token Balance as Variable in Quote Response

Hi brand new to this and trying to teach myself so I apologize for any dumb questions. I am trying to build a javascript that automates purchases on the solana network. For my test, I am trying to buy ...
Clinton Graves's user avatar
0 votes
0 answers
155 views

Not enough tokens when sending SOL to other wallet on Main net

I am trying to send 1000000000 * 0.00001 lamports to my other wallet. Sol fee is like 0.00011 SOL in total it's like 0.00001+0.00011=0.00012. I have 0.04444 SOL in my wallet already but when I hit the ...
Mohammad Zubair's user avatar
1 vote
2 answers
498 views

SPL Token lock/unlock

I need help with locking and unlocking SPL tokens. Does Solana or Metaplex provide any functionality for this, or do we need to work on a Rust program to achieve this?
Maidi's user avatar
  • 454
1 vote
1 answer
182 views

Adding a whitelist to a SPL contract

Hey so i need to make a simple test contract with a SPL token I got one created using the CLI using the guide from https://spl.solana.com/token But i have no idea how to introduce a whitelist, so that ...
Taco's user avatar
  • 11
0 votes
1 answer
69 views

Token extension Transfer hooks js helper functions not adding additional account

I am trying to use the js helpers to add additional accounts to transfer hooks. Adding the accounts manually works fine: transferInstruction.keys.push( { pubkey: program.programId, ...
Jonas H.'s user avatar
  • 5,032
0 votes
0 answers
111 views

SPL token metadata update

Our program currently has mint authority but lacks metadata authority, preventing us from updating metadata on our SPL token. Have we explored any solutions for this issue? Attempts to transfer ...
Njegosh's user avatar
0 votes
1 answer
121 views

How to use @solana/spl-token library in my html file with node.js code?

I need help. I don't understand how to use the @solana/spl-token library so that it is available in the browser. I am writing a project related to NFT transactions from one wallet to another using ...
Adrew Token's user avatar
1 vote
1 answer
67 views

Get signatures for address including SPL transfers

I would like to check who has transferred a certain SPL token to a given wallet. But when i try to filter all transactions the SPL token transfers are not included. recent_transactions = await client....
Devils Crypto's user avatar
0 votes
0 answers
68 views

WalletSignTransactionError: Blockhash is invalid or can not be validated

it has been a while I am getting this error. This is only seen in my Brave Browser. Does anyone have idea on fixing this ? This is caused on a function to send spl token using @Solana/web3.js. I have ...
Shadow Pixel's user avatar
1 vote
1 answer
180 views

What SPL Token Program should I use, Token or Token2022?

I would like to create my own SPL token. However, I'm not sure which program is the best one to use since Token2022 is very new. Can you help me choose the best or right one?
Caroline's user avatar
1 vote
1 answer
100 views

TypeError: connection.getAccountInfo is not a function

I am getting an error TypeError: connection.getAccountInfo is not a function at getAccount (account.ts:102:1) in method getOrCreateAssociatedTokenAccount() my parameters are const ...
Mohammad Zubair's user avatar
1 vote
1 answer
202 views

How to automatically burn solana token occasionally?

Is it possible to burn specific amount of solana token occasionally on some specific web hook event? For example: On a blog site when a new post is published on specific tag, then n amount of token ...
JustAnotherUser's user avatar
1 vote
2 answers
2k views

Custom token smart contract in Solana

Very new to the Solana ecosystem. As I come from an ethereum background it's pretty straight forward to create your custom ERC20 token implementation. With Solana I know we can create a token using ...
Faheel Mohammad's user avatar
0 votes
2 answers
3k views

How exactly can I find if "Liquidity" is locked or unlocked for an SPL token?

I am using Node.js with Typescript. Websites like RugCheck.xyz do this. We paste a token that tells us how much liquidity is locked for that particular token. I was told that it depends on how much of ...
materwelon's user avatar
0 votes
0 answers
447 views

How to create and integrate a Presale in a web

I'm trying to create a new token and want to learn more about Solana token program. My goal is to create a pre-sale and implement in on web, but I couldn't find enough YouTube videos. Can anyone share ...
Borja's user avatar
  • 1
0 votes
0 answers
189 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
321 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
3 votes
0 answers
144 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
2 votes
1 answer
370 views

Using @solana/spl-token-swap package on devnet

I'm following along with this site https://www.soldev.app/course/token-swap. However, there seems to be a version difference in the use of TokenSwap.withdrawAllTokenTypesInstruction: I'm using the ...
MONO's user avatar
  • 51
0 votes
1 answer
95 views

what the numbers in the array indicate?

I work with decoding data. I use the @solana/spl-token package for that. sometimes I get the TokenInvalidInstructionKeysError error I have this code ts. as keys I provide an array of keys that I have ...
slntrx's user avatar
  • 107
2 votes
1 answer
44 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
1 vote
3 answers
10k views

How to burn Tokens in a Solana wallet

I want to burn tokens like in Ethereum where you send them in a dead address, and I was wondering if it's safe to send tokens to this wallet: dead111111111111111111111111111111111111111 I'm still a ...
Hyratio's user avatar
  • 11
0 votes
1 answer
319 views

Transferring custom token to a phantom wallet

I'm just beginning as a solana blockchain developer and I was just wondering, how can I transfer custom tokens on solana devnet to another wallet. It's been confusing me for a bit now.
johnny's user avatar
  • 69
1 vote
1 answer
34 views

Can not create TokenAccount for WrappedSOL

I can not create a TokenAccount for WrappedSOL. Here is my code: const connection = new Connection(clusterApiUrl('mainnet-beta'), 'confirmed'); const tokenAddress = getAssociatedTokenAddressSync(new ...
Stefan D.'s user avatar
  • 181
0 votes
1 answer
153 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
2 votes
1 answer
94 views

Issue with mintTo function

I tried to run the script below but got this error and was wondering where I may have made a mistake? bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?) The token was created,...
johnny's user avatar
  • 69
0 votes
1 answer
259 views

Update Metaplex's token metadata - how to change the mutable parameter

I'm using the spl-token command line. What is the simplest way to change the token metadata (from the Metaplex Token Metadata program) and set mutable to false? Thanks!
David's user avatar
  • 51
1 vote
1 answer
161 views

where to get information about isSigner and isWritable from the transaction data?

in the package @solana/web3.js there is such type AccountMeta /** * Account metadata used to define instructions */ type AccountMeta = { /** An account's public key */ pubkey: PublicKey; ...
slntrx's user avatar
  • 107
1 vote
1 answer
630 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
0 votes
1 answer
142 views

Unclear parameters for TokenSwap.swapInstruction()

I try to find a solution for my problem since hours but I couldn't find an answer for my question, so you're my last hope. I'm experimenting with spl-token-swap, precisely with TokenSwap....
Stefan D.'s user avatar
  • 181
1 vote
1 answer
329 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
1 vote
1 answer
49 views

Token Transfer instruction in transaction not returning SPL token

When parsing some transactions for the token transfers instructions, I noticed some token transfer instruction does not include the actual token mint, but has an amount, what are the possible reasons ...
user3966's user avatar
1 vote
1 answer
169 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
2 votes
1 answer
26 views

How to make code using old version libs to pass building on playground?

I got an example: https://beta.solpg.io/64e50b1a6f50baeacc2cd460 It failed to build on playground. I believe that this code tested on old version. Also I found https://github.com/solana-developers/...
breeze wang's user avatar
1 vote
0 answers
315 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
0 votes
0 answers
218 views

How can i fetch SPL token metadata in Python? (Symbol and Image)

im trying to fetch metadata of SPL Token in Python but it isn't working, i tried using BeautifulSoup. I need the Symbol & Image for embed post in discord. Here is an example of a token: https://...
Asus Rog's user avatar
1 vote
1 answer
199 views

How can I get metadata for newly minted tokens?

I'm trying to fetch metadata for newly minted tokens (SPL, not NFTs) and unable to get a lot of data apart from decimals, mint_authority etc, I'd like to get the Name, Picture of the token along with ...
Abdullah Aftab's user avatar
1 vote
1 answer
280 views

Solana Token2022 Metadata

as the uptick in Token2022 tokens come to life, whats the best way to get Metadata and associated extensions. Using all of the metaplax, spl-token, etc JS modules yields nothing but errors. Modules ...
plat_winz's user avatar
0 votes
2 answers
43 views

Sender can send but the receiver not receing amount, and also I can't make it work for USDC

Hello Stack Overflow community, I'm encountering a few challenges with a transaction, and I'd appreciate your insights. Problem with Transaction Signature: I'm receiving the signature from the sender,...
Artashes Baghdasaryan's user avatar
0 votes
0 answers
183 views

Token registration

I would like to register a token, as currently seeing a warning ⚠️ sign in in the wallet. Also on one of the token scans. And can not find tokens within other wallets. It just doesn't show up by ...
user8043's user avatar
0 votes
1 answer
213 views

How to deploy a token and put it on a DEX

I just wanted to understand how I can create a real token and get it on an exchange. I was using the Solana Bootcamp presented by Nick Frosty as a basis but then I'm a bit confused on how to use the ...
johnny's user avatar
  • 69
2 votes
2 answers
1k views

I want to add liquidity into Raydium programmatically

I have developed a presale smart contract using Anchor, and it is currently functional. Now, I am exploring ways to transition to a public sale on decentralized exchanges (DEX) like Raydium after ...
Bheem Coin's user avatar
4 votes
3 answers
1k views

How to verify solana program (SPL Token) on Solana?

I'm struggling to find an answer to how to verify solana programs code on Solana (for a SPL token). On Ethereum there's a function in the IDE to verify the contract, but I can't seem to find out how ...
Devino68's user avatar
2 votes
1 answer
2k 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
  • 107

1 2 3
4
5
12