Skip to main content

Questions tagged [spl]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
32 views

Creating a new Associated Token Account is 10 times more expensive than expected

I have two questions. import { createAssociatedTokenAccount } from "@solana/spl-token" import { Connection, Keypair, PublicKey, clusterApiUrl } from "@solana/web3.js" import { ...
Ariel's user avatar
  • 21
2 votes
1 answer
29 views

How to fetch token metadata on chain?

I am trying to retrieve the metadata for a token only using on-chain method such as getProgramAccounts. Unfortunately I cannot use any other language except Python so I cannot make use of libraries ...
sashavsthewrld's user avatar
1 vote
2 answers
19 views

Does the cli command spl-token support priority fees?

Does the spl-token cli package currently support setting priority fees?
Sal Samani's user avatar
0 votes
1 answer
24 views

Is the stateless-ask program deployed on mainnet somewhere?

Has someone or some organization deployed the stateless ask program on mainnet somewhere? https://github.com/solana-labs/solana-program-library/tree/master/stateless-asks
spirobel's user avatar
0 votes
0 answers
23 views

Problem with SPL Token accounts TokenAccountNotFoundError

I am trying to transfer some SPL tokens from X wallet to Y. const key = new web3.PublicKey( 'bSo13r4TkiE4KumL71LsHTPpL2euBYLFx6h9HP3piy1', ); const fromTokenAccount = ...
chenzen's user avatar
0 votes
1 answer
44 views

Fetching Trending Token Data: How to Access via API from Dexscreener or Birdeye

I'm trying to gather data on currently trending tokens, and I've been exploring options like Dexscreener and Birdeye. Unfortunately, I haven't found a direct way to access this information via their ...
Nerevaine's user avatar
  • 124
0 votes
0 answers
17 views

Retrieving active jupiter limit orders for a given pair

I'm trying to add limit order views to a dex project i'm working on, and i cannot work out how to scrape/interpret the active limit orders for a given pair. Has anyone had any success in doing this ...
hhoogg's user avatar
  • 1
1 vote
1 answer
41 views

How to Retrieve Token Metadata Including Social Networks in URI Using Python

I'm working on a project where I need to extract metadata from a token, specifically the social networks listed in its URI. I've attempted to use the getAccountInfo method via websockets, but it didn'...
Nerevaine's user avatar
  • 124
-1 votes
0 answers
25 views

Solana SPL price on Solscan

What is the requirement or way to do to get a token show the price on Solscan? Thank you
Stackofcash's user avatar
0 votes
1 answer
27 views

Filtering Instruction Data for Revoke Authority Events in Solana Blockchain using logsSubscribe

I'm working with the Solana blockchain and need to track specific events: 'Revoke Mint Authority' and 'Revoke Freeze Authority'. Currently, I'm using the logsSubscribe method in conjunction with ...
Nerevaine's user avatar
  • 124
1 vote
1 answer
35 views

Fetching all signatures of a address

getSignaturesForAddress fetches max 1000 signatures at once, and to fetch all signatures of a particular address, this process becomes sequencial, is there any way to parallelize fetching?
ashish0411's user avatar
3 votes
1 answer
42 views

Confidential Transfer Solana Setup script failing

I am trying to understand Solana Confidential Transfers, so I ran this script from the official Solana repository for a simple demonstration https://github.com/solana-labs/solana-program-library/blob/...
0xSOL's user avatar
  • 31
1 vote
1 answer
30 views

What's wrong? I'm having problems with Solana imports @solana/spl-token

This is my package.json file: { "name": "TokenCreator", "version": "0.2.0", "license": "MIT", "private": false, "...
Solana Noob's user avatar
1 vote
1 answer
24 views

How to set max supply for a token using spl-token cli?

I want to create a token with the following features Custom name and ticker Fixed supply The problem i am facing is that i am not able to fix the supply
user14104's user avatar
1 vote
0 answers
42 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 { ...
AREW's user avatar
  • 33
1 vote
0 answers
21 views

How to get token transaction history with sold tokens in specific time range amout in Solana blockchain?

Could someone please guide me on how to retrieve transaction history along with the bought token amounts on the Solana blockchain? Like it is in Dexscrener? .png example below I want to get that ...
Deimantas Maksele's user avatar
0 votes
0 answers
70 views

Partial SPL swap using raydium sdk

I have problem, because I have script, which is buying tokens and then selling it base on set criteria, but it's not working as I would like. Main problem is, whenever I do, script is selling entire ...
FassiS's user avatar
  • 1
0 votes
0 answers
21 views

Is there is any representation of a ERC-1155 token in SPL? Or is possible to mimic it with SPL

So my main question is in description. I want to know is there is any ready to go solution or it might be something hand written. I saw a new programmable NFT in Candy Machine documentation but it's ...
convo's user avatar
  • 1
0 votes
1 answer
40 views

getOrCreateAssociatedTokenAccount method always returns TokenAccountNotFoundError

In @ solana/SPL - token repository getOrCreateAssociatedTokenAccount method, when there is no this scrip address yourself why always returns TokenAccountNotFoundError. I'm pretty sure my parameters ...
xiay's user avatar
  • 1
0 votes
0 answers
11 views

Solana SPL wallet

I used solana airdrop 1 command in solana spl wallet and got 1 sol. I had 0.5 real sol in that same wallet. Solscan is showing 0.5 but when i check by solana balance command it is saying 1. I want use ...
Tuymurod Jabborov's user avatar
0 votes
1 answer
24 views

How to pass multiple contexts to a single function?

I'm creating a staking contract and one of the functions that takes in the deposits, I'm using a struct in the context of transferring SPL, however, to keep the records for the same I need to create ...
ProgrammerForFun's user avatar
1 vote
1 answer
76 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
  • 23
0 votes
0 answers
10 views

Stuck in the process validate/attest, adding to strict list SPL v2 SOL token

Mint address: 8Vi8Rc3cWzKwcNnC2LkG8DPPrYoMETu1WNGHCfLaudwd Sorry new ... I am not completely understanding were to submit these questions and how to get on strict list. https://github.com/jup-ag/token-...
Alien's user avatar
  • 1
0 votes
0 answers
34 views

Error When Creating SPL Token Account: Incorrect Program ID for Instruction Body:

I'm new to Solana development and have encountered an issue while trying to create an SPL token account on the devnet using the SPL Token CLI. After creating a new SPL token, I attempted to create a ...
david's user avatar
  • 1
0 votes
0 answers
19 views

How to efficiently get all transactions of a particular mint address

How to efficiently get all transactions of a particular mint address, Since transfer doesn't reference to mint address, filtering transaction by mint address doesn't include transfer transaction.
ashish0411's user avatar
0 votes
1 answer
36 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 ...
Gokul Alex's user avatar
0 votes
0 answers
15 views

Filtering all transaction of a particular mint address

Filtering all transaction of a particular mint address, getSignaturesForAddress functions returns transactions, but still some of the transaction are missing in the returned list. Like actual number ...
ashish0411's user avatar
0 votes
0 answers
33 views

SPL Token with Tokenomic on Solana

I need to know about creating tokenomics for a token on Solana. I'm attempting to mint an SPL token in 2020 or 2022 with tokenomics, where I determine the public supply, marketing, and development ...
Bobz's user avatar
  • 474
1 vote
1 answer
40 views

solana spl token revoke authority of accountowner

Blockquote I would like to revoke all Wormhole token delegation permissions. I configured ChatGP and Python code as shown below, but it does not run. Transactions with existing permissions are as ...
3111's user avatar
  • 11
0 votes
1 answer
38 views

What is the address of the noop program?

Other spl programs have a fixed address (usually where the first few characters represent the purpose of the program), for example the Token Program's address is always ...
Ahri's user avatar
  • 3,365
0 votes
1 answer
31 views

Transfer SPL tokens with web3 from seed account based on the System Program Id

Can I transfer SPL tokens from the seed account (PDA) based on the System Program Id created this way: let derivedAccount = await PublicKey.createWithSeed(usualAccountPublicKey, seed, SystemProgram....
Maksim Tolstikov's user avatar
0 votes
1 answer
31 views

How can a user create an ATA in phantom wallet before owning the actual token?

So, I have a list of 20k+ whitelisted people for a project, and am trying to find a way to airdrop it without significant cost. As i understand, the biggest cost of the actual airdrop is opening ATA ...
Chilled's user avatar
2 votes
2 answers
285 views

How to send tokens to multiple accounts in bulk

I am following the tutorial to send a token to a specific recipient (https://spl.solana.com/token#example-transferring-tokens-to-an-explicit-recipient-token-account). Below is the code that works ...
bigbulb's user avatar
  • 23
0 votes
1 answer
20 views

How to filter most recently created pdas of a program

How to filter most recently created pdas of a program, How should date be store in pda data so that we can directly filter based on the data stored in pda. For ex. filtering all pda of a program ...
ashish0411's user avatar
1 vote
1 answer
520 views

How to subscribe (listen) to SPL token transactions with full data using @solana/web3.js

I've searched a lot and can't find a solution. I want to track SPL token swap transactions to calculate the token price and get information about wallets. I found several solutions, but still have ...
Mike Wazowski's user avatar
0 votes
0 answers
36 views

Transfer SPL Token only using Plain HTML and JS

I want to ask, is it actually possible to make transactions using only HTML and JS without using a framework? I am currently trying to transfer an SPL token, but I am always getting stuck using only ...
mb-1208's user avatar
1 vote
0 answers
43 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
66 views

Send SPL per lamport for msg.sender solana alternative

I just switched to solana from solidity. currently im using solang for ease of use. I know in solana there is no msg.sender but solana can detect payer of tx. I want to write a program that will send ...
Danial Qsk's user avatar
1 vote
1 answer
44 views

Why is it impossible to make a reflection token ("frictionless yield") on Solana?

I'm getting conflicting answers from multiple sources on this to the point where I've concluded it's practically impossible to create a custom token on Solana that: Takes a fee from every transfer (e....
cosbyPlays's user avatar
0 votes
1 answer
22 views

Error processing Instruction 2: Cross-program invocation with unauthorized signer or writable account

I am trying to transfer tokens in a PDA and withdraw from that program, deposit works fine but it throws the error when I withdraw. pub fn withdraw_token( ctx: Context<TokenPaymentAccounts&...
user9345's user avatar
0 votes
0 answers
428 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
2 answers
271 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
0 answers
8 views

Gotting Error on spl token latest version [duplicate]

Previously, I was using SPL Token version 0.3.8 to mint tokens from the frontend. However, when I attempt to install the latest version(0.3.11), it returns an error. ReferenceError: Buffer is not ...
Bobz's user avatar
  • 474
0 votes
1 answer
65 views

Best way to ensure correct SPL token transfers based on a counter

I have a game where, the more time users spend playing, interacting with the environment, etc they earn a number of tokens. As this is happening in real-time, this is currently just an incremented ...
Needleski's user avatar
0 votes
3 answers
2k views

Why does my transaction takes ages to be sent

I am trying to make a swap transaction on Raydium using Python. I always preparing the transaction and necessary instructions for the swap in advance: print("Add Instructions To Transaction...&...
xallve's user avatar
  • 17
0 votes
1 answer
92 views

SPL Token 2022 minting

I am facing an issue while minting the SPLToken2022 using a React app. the problem arises when minting the transaction. The process works fine when passing the keypairs directly, but encounters an ...
Bobz's user avatar
  • 474
0 votes
1 answer
105 views

Fetch Metadata SPL Token 2022

How can I fetch the metadata of an SPL Token in 2022? I attempted to fetch it from UMI, but it failed. It works fine with SPL 2020, but it's showing an error const umi = createUmi("https://...
Bobz's user avatar
  • 474
1 vote
1 answer
72 views

Transfer_hook in spl-2022: Only deduct tax from swap transaction

Is there a way to modify the transfer_hook in order to deduct tax fee in $SOL from swap transaction only? I know there is transfer-hook supported that, but dont know how I check program address of ...
Jade's user avatar
  • 117
1 vote
1 answer
89 views

How to think about monthly subscriptions in Solana

I am looking to build a Monthly subscription program in anchor/Solana that allows a user to subscribe to a SPL token subscription (like USDC or SOL) such that the recipient automatically receives the ...
AceGravity's user avatar
0 votes
1 answer
56 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