Skip to main content

Questions tagged [spl-token]

The tag has no usage guidance.

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

Error: solders.SignerError: not enough signers

I am trying to buy a token through solana.ру, but in the process of writing the code, I get an error from solana.rpc.api import Client, Keypair, Pubkey from spl.token.constants import TOKEN_PROGRAM_ID ...
0 votes
0 answers
5 views

Intermittent Transaction Failures in Python: How to Ensure Reliable SPL Token Transfers?

I'm trying to implment spl token transfer in TG bot in python, but the transfer is failing from time to time with quite delay, I suspect it might something to do with the solana network, or rpc node ...
0 votes
0 answers
4 views

SPL-Token-2022 Fee Epoch length

Good evening, I am just wondering how long an Epochs for the Transfer Fees are. I Just playing around with that in a localtestnet and wondering when the epoches Changed. As i setted new Fees, Set the ...
0 votes
1 answer
12 views

seeds do not result in a valid address javascript

async function ata() { const secretKey = Uint8Array.from(JSON.parse(process.env.PRIVATE_KEY)); const keypair = Keypair.fromSecretKey(secretKey); const owner = new PublicKey(keypair.publicKey); ...
0 votes
0 answers
9 views

Unable to Retrieve Data Using get_program_account with SPL Token Program (Python)

I'm developing a script to track newly created tokens on the Solana network. However, I'm encountering an issue when attempting to retrieve data using client.get_program_account. Despite my efforts, I'...
1 vote
1 answer
28 views

How can I resolve this "Error processing Instruction 1: custom program error: 0x1004"

I'm running into the following error trying to work through the transfer hook docs. https://solana.com/developers/guides/token-extensions/transfer-hook I am using Ubuntu on Windows WSL: I am running ...
0 votes
1 answer
21 views

Set Mint Authority as PDA

I have written my code and tests in typescript to create a Token 2022 which I would like to have it's PDA be the mint authority. This was working using spl-token but it seems the function I am using ...
0 votes
1 answer
24 views

expected a sequence of length 32 (got 43) error when using solana in Python

Solana community! I'm working on a Python script to filter transactions executed through the SPL Token Program. I aim to specifically identify and list new token creation transactions. However, I'm ...
2 votes
1 answer
82 views

Why does Solana Explorer not play well with token2022 metadata?

Spl-token2022 > why doesn't 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 ...
1 vote
2 answers
31 views

What is the preferred way to create Fungible Token with Metadata on Solana

I created a Fungible Solana Token using Metaplex Umi, mpl token metadata, mplCandyMachine libraries. It seems to be working fine, but I am just wondering if this is the best way to create a fungible ...
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 ...
2 votes
2 answers
69 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?
2 votes
1 answer
27 views

How to transfer spl token using wallet-adapter or any other wallet like phantom wallet?

Almost all of the tutorial and materials online/guide uses keypair, which is not practical
1 vote
0 answers
29 views

I can't buy my tokens in mainnet from another wallet

I can't buy my tokens in mainnet from another wallet. The spl-token mint command returns the following error: Error: Client(Error { request: Some(SendTransaction), kind: RpcError(RpcResponseError { ...
1 vote
0 answers
22 views

Helius Webhook for get real-time information about new tokens created

I'm using Helius webhook services to track new token creations with the TOKEN_MINT transaction type on the Solana blockchain. My webhook is set to listen to transactions from the account ...
5 votes
2 answers
4k views

Get Token Metadata (decimals,symbol,name...)

I'm looking to query token metadata by looking up the token address(pubkey or mint). Specifically looking for data around the name, symbol, and decimals. Is there an RPC method for this? How does ...
0 votes
1 answer
62 views

Problem installing @solana/spl-token @solana/web3.js

I want to deploy and interact with a NFT solana program. As recommanded by the documentation I am using this code https://github.com/solana-developers/program-examples/blob/main/tokens/nft-minter/...
0 votes
0 answers
23 views

How to Use WebSockets to Check if a Token Mint Address is Tradable on Raydium?

Does anyone here know how to check if the given token mint address is already tradable using WebSocket? My current code polls the token holders and checks if Raydium already exists as a holder. But it ...
0 votes
0 answers
16 views

blacklist token

I would like to know how I can create a black list on Solana, with solidity I do: function updateBlacklist(address _address, bool _isBlacklisted) public { isBlacklisted[_address] = _isBlacklisted; ...
0 votes
1 answer
34 views

How to get name and symbol of token from mint address

Im using javascript and i have the mint address of a token, for example this "Ei71196o8MpDsVdXyZEewEdxP4A8n3KMZKTFE7KE2xTR" and i want to get the name which in this case is Sillybird and the ...
0 votes
0 answers
16 views

Accidentally sent tokens to Associated Token Account Program ID

I made a mistake and accidentally sent my tokens directly to the Associated Token Account Program ID: ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL. I understand that this is a program ID and not a ...
0 votes
0 answers
30 views

How do I send Spl tokens to other wallet consistently?

I'm new to solana development but I'm facing an issue. I'm writing a function to send spl tokens to other wallets using the private keys. I'm coding in Javascript. The issue I've been facing is that ...
1 vote
1 answer
49 views

What is required for a Solana token to always show up in wallets?

I have created an SPL token and it seems to show in some wallets, some it says 'unknown' and others doesn't show at all. What is required for the token to always show as a verified token in wallets? ...
0 votes
1 answer
2k views

How to transfer SPL Tokens? [duplicate]

I'm running a Solana node and I'd like to send a transfer request to my running node. I can transfer SOL but I don't know what I need to do for transferring SPL Tokens like GMT or SRM. I was looking ...
2 votes
1 answer
226 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? ...
0 votes
2 answers
38 views

Can't find token when trying to swap

I have recently created a meme token. I use Phantom Wallet and when I attempt to "swap" SOL to my token(HMT), the token isn't found when searching based on name, symbol, or contract address. ...
0 votes
1 answer
33 views

Issue in Adding Token Metadata using SPL Token CLI

I have created a new SPLToken on DevNet and added the following account - 2ePFwPK3coTPqzirUaM9fugKnQL1V6zQp5TbPmopipiH I am trying to add the metadata to the newly created SPL Token using the ...
0 votes
1 answer
35 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?
1 vote
1 answer
18 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.
0 votes
1 answer
44 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 ...
1 vote
0 answers
19 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
0 votes
2 answers
950 views

newly created SPL-tokens are not displaying in phantom

I created some SPL-tokens via spl-token create-token ..., and applied some metadata (name, symbol, description, image) via metaboss create metadata .... They appear correctly on solscan, but are not ...
1 vote
1 answer
37 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 ...
2 votes
1 answer
73 views

how to transfer spl token with transfer-hook extension

I used the Solana Playground wallet to deploy a program and obtained the program ID. The ID is 6baxXgMr7HypeTBhN64rbrt31UwbSeRtsQQxGw1KBi5b. Then, I used the following script to create an SPL token. //...
1 vote
1 answer
34 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 ...
1 vote
3 answers
5k views

I want to add metadata to the Solana token on cli

I have created a token in solana using the cli but now I'm unable to add metadata can someone please help me. https://solscan.io/token/Gy5oaTpM6tkc9aj4BZkjMXHaWm2U16CsfBtL4jBMKztX
0 votes
0 answers
34 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("...
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 ...
3 votes
1 answer
50 views

Transfer Hook - How to get destination ATA owner public key

For my program, I need to implement the Token2022 transfer hook. Inside the transfer hook, I need to read and write a PDA account driven from the address of the owner of the destination ATA. EDIT: In ...
2 votes
0 answers
72 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 ...
0 votes
1 answer
27 views

Token get initialized but not minted

I'm trying to mint a token on the devnet. I want to use rust, as I'm learning it in order to build more advanced functionalities later on, which I think wouldn't be very viable using command line or ...
0 votes
1 answer
12 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 ...
0 votes
1 answer
29 views

Token Creation Issue on DevNet

I am trying to create a token after setting my wallet using the following command. solana-keygen grind --starts-with ott:1 The wallet creation is successful. I have also configured the connection to ...
1 vote
1 answer
29 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 ...
1 vote
0 answers
18 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/...
2 votes
1 answer
63 views

what's the best way to get post token balance from `getTransaction` if there is no postTokenBalance for an address?

I'm trying to get a historical daily balances of holders for certain tokens. To do this, I'm calling getSignaturesForAddress for the token address, then going through each holder and calling ...
0 votes
0 answers
19 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 ...
1 vote
1 answer
36 views

Send SPL token from PDA to ATA

I was testing https://github.com/ashishpandiit23/tokentopdatransfer/blob/master/programs/ANCHORFIRST/src/lib.rs but once i try to test sendtokenpda with Solana Play Ground alway i get If somebody can ...
0 votes
2 answers
31 views

NFT Collections with Token22

Is it possible to create verified collections with token22 and not metaplex? I could add a collection address in the token extensions metadata, but is there anything preventing someone else creating ...
0 votes
1 answer
43 views

How to decode Message Compiled Instruction? for decodeTransferCheckedInstruction

I was using decodeTransferCheckedInstruction with legacy version but want to move to VersionedTransaction. However, I can't find any alternative of decodeTransferCheckedInstructionfor versioned ...

1
2 3 4 5
12