Skip to main content

Questions tagged [spl-token-program]

Filter by
Sorted by
Tagged with
1 vote
1 answer
16 views

facing WalletSendTransactionError: Unexpected error

**this is the error i am facing while creating the token ** WalletSendTransactionError: Unexpected error at StandardWalletAdapter.sendTransaction (adapter.js:224:23) at async Object.eval [as ...
HARSH's user avatar
  • 11
1 vote
2 answers
30 views

Anchor: How to validate Token Program in Account structs?

In my account struct: #[derive(Accounts)] pub struct WithdrawToken<'info> { #[account(mut, token::mint = mint, token::authority = signer, token::token_program = token_program)] pub ...
Russo's user avatar
  • 277
2 votes
1 answer
28 views

Why is token_program needed when initiating an associated token account?

In the code below if I don't have token_program defined, I get compile time error. However, I am only initializing the ATA but not minting, transferring, approving, or burning the token mint which is ...
WowBow's user avatar
  • 201
1 vote
1 answer
22 views

Can you derive the program owner of a SPL token?

Is there any way to derive the program owner of a token locally without having to use the GetAccountInfo call for example. Such that if I input a token address, it will return whether it is apart of ...
sashavsthewrld's user avatar
0 votes
1 answer
68 views

How to get program account of a token without knowing its program id?

I want to fetch a token's program account but I don't know the program id. I only have the token mint address. Is it possible to get it? Thanks in advance. Here is an example. It fetches the program ...
s.khan's user avatar
  • 101
0 votes
1 answer
21 views

How to update the Metadata for Tokenkeg, the original Solana token standard

Is it possible to update the token metadata for the Tokenkeg program? How to do it using Javascript?
Sal Samani's user avatar
1 vote
1 answer
52 views

How do I to update the name and logo of my SPL token?

I am new to solana programming and I just minted some tokens. I would like to update the name and logo. Can someone help with the next steps? Where do we store the metadata? Thanks in advance.
Tico Salamanca's user avatar
1 vote
0 answers
27 views

Is there any API in Raydium to get the price to token pair?

How can I use the Raydium API to get on chain prices of tokens?
user23684's user avatar
1 vote
1 answer
21 views

Following the Token Extension Program, How do I add a burn function to my token

I followed the youtube torutrial from the solana yt channel(https://www.youtube.com/watch?v=1U1ae2D2jk4), but they don't include how to add the burn function and when I go to the website they don't ...
Change Gold's user avatar
1 vote
0 answers
36 views

What is the best way to get the latest transactions for an SPL token, and how can I calculate the price impact of those transactions?

I am working on monitoring the transactions over many SPL tokens. Currently I've setup a webhook from Helius and getting SWAP transactions of the token but I'm unable to figure out how can I calculate ...
ZORO013's user avatar
  • 11
1 vote
1 answer
21 views

When I try to add metadata to my spl token on my Mainnet coin

For some reason when I try adding metadata to my spl token it never works, I’m using the program id TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb and when I try to add metadata using my mint address it ...
Destel's user avatar
  • 11
2 votes
0 answers
52 views

Error processing Instruction 0: custom program error: 0x26

----> TX ├─ Signatures[len=1] │ └─ 4UJPHEtrmksnNrX2DemwZHkyPDsYwtNgLvezzymzULjbuRB6QSEnFwig46rTD3j3kBUw1jFnaRRVi9FTUBG1UWiP ├─ Message │ ├─ Version: legacy │ ├─ RecentBlockhash: ...
Vigelante's user avatar
1 vote
1 answer
16 views

TokenMetadata not an export? ...just following the code in docs

I am following the Solana docs: "Example: Create a mint with metadata" using Javascript. Why does an error say that "TokenMetadata" is not an export"? It also said that this ...
Virginia B Robertson's user avatar
0 votes
0 answers
20 views

Token logo missed on phantom wallet

our cto token logo disappeared on phantom wallet could you help with this problem? CA : 4h8LjZWUfUQVgbEZ29UzTuGXNW6rwrJis78ZU66ekkPV
bitsagee's user avatar
3 votes
1 answer
130 views

What is the best way to get all token holders and their balances by mint address?

There is a way to get token accounts by mint address using https://spl.solana.com/token#finding-all-token-accounts-for-a-specific-mint But unfortunately it only returns token accounts without balances,...
NoodleX's user avatar
  • 73
0 votes
1 answer
72 views

Adding Set Authority Feature To SPL Token Creator

Recently our team completed a token launcher platform for EVM tokens, now we want to create a another platform for creating SPL tokens. I'm not very familiar with Solana, but I've found some starting ...
DeFiDevJimmy's user avatar
0 votes
1 answer
11 views

Blocking specific token program's TXs

As a validator, how do you block a specific token program's txs?
Candas Ozgenc's user avatar
0 votes
0 answers
18 views

when i am creating 'create-extra-metas' using cli i am getting 'invalid program argument' Error

../../target/debug/spl-transfer-hook create-extra-metas HooGStFZgkeZ5wCSg9vHtuEYBSotB26tVEvXra4PEKYJ MoxLrhGXAjVnEiVAjG5ycQbp9MVd4sjfj1yLPFVXhkh error: send transaction: error: send transaction: RPC ...
Mohammad Abuzar's user avatar
0 votes
0 answers
22 views

How do I create customized Solana SPL or SPL 2022 contracts with these specific security functions

How do I create customized Solana SPL or SPL 2022 contracts with these specific security functions? ''The function I wanted in this contract is that only the developer's wallet can apply the token's ...
Mateus MK2's user avatar
0 votes
0 answers
43 views

GetTransaction API Data

GM, I'm currently building a python script to pull back fees being paid by bots prespamming token launches. As additional functionality to this bot, I want to know how much Sol they are planning to ...
wolfofwolves's user avatar
2 votes
1 answer
31 views

Why we cannot enable transferfee config or enable metadata after minting on token 2022?

We were trying to enable transfer fee config after minting a token22 token using realloc instruction, but it was not working! We then tried to enable the transferfee config on minting and later tried ...
Renjith Thankachan's user avatar
2 votes
1 answer
230 views

Decoding an instruction for a token on the spl token program

Hello you may have seen my last post, Error : TypeError: Cannot read properties of undefined (reading 'equals') This is a follow up to that post. I decided to experiment more with ...
Golden's user avatar
  • 51
3 votes
1 answer
108 views

Observing a contract's behavior and withdrawing tokens from it

I recently encountered an error while trying to withdraw stSOL from the Tulip Protocol's "Lending" section: Program Error: "Instruction #3 Failed - null" At first, I thought it ...
Max Pasmanik's user avatar
5 votes
1 answer
55 views

({"err":{"InstructionError":[2,"PrivilegeEscalation"]}})

use anchor_lang::prelude::*; use anchor_spl::token::{Mint, Token, TokenAccount, Transfer}; declare_id!("5L3ky71YgB1rRMbJMxw9iH2vw9A59wZ2krWW7vdwfn61"); #[program] pub mod hodl_token_lock { ...
tushar mahajan's user avatar
2 votes
0 answers
88 views

How to identify liquidity pool burns in Sol Incinerator and determine authority in Solana?

When a liquidity pool is burned in Sol Incinerator on Solana, will the associated token always have Raydium as the authority? Additionally, how can I filter transactions to specifically identify when ...
Nerevaine's user avatar
  • 309
0 votes
1 answer
92 views

'Octal escape sequences are not allowed in strict mode' error when generating keypair

I started Solana and web 3 dev recently Have been having this issue for like 3 days, tried checking online for solutions and nothing. Please help anyone CODE import { Keypair } from "@solana/web3....
Isu Solomon's user avatar
0 votes
0 answers
33 views

Is there anyway I can make my spl token transfer consistent despite the congestion just like phantom wallet?

I am trying to send spl tokens and make it consistent despite this congestion. I've been getting 2 successful transactions in 50 tries even though I am using a function from Jupiter that forcefully ...
Olaiwola Ayoola's user avatar
1 vote
3 answers
821 views

Getting dapp could be malicious warning during phantom wallet transaction

Hi I have deployed my spl-token program to mainnet-beta recently, so its publicly available but from last two days I am getting warning "This dapp could be malicios" warning on phantom ...
blackhorse's user avatar
2 votes
1 answer
119 views

Transfer specific token to and from a known account

Given that I have the following program use anchor_lang::prelude::*; use anchor_spl::token::{self, Mint, Token, TokenAccount, Transfer as SplTransfer}; declare_id!("...
mstelz's user avatar
  • 55
2 votes
1 answer
29 views

SNS - Retrieve all Domains+Subdomains of an User

The following code is used to retrieve all Sub-Domains of a Public-Key. const getAllSNSProgramAccounts = async () => { const accounts = await connection.getProgramAccounts(new PublicKey('...
Eduardo Chongkan's user avatar
0 votes
0 answers
45 views

Token 2022 Program: FreezeAccount (Program Error: "Invalid account state for operation")

I bought YUKI tokens and got this message when I tried to sell them, "Token 2022 Program: FreezeAccount (Program Error: "Invalid account state for operation")" what do I do to get ...
kliji's user avatar
  • 1
1 vote
1 answer
260 views

Why do we close WSOL Token Program accounts?

Background: If I understand correctly: During transactions where we transfer SOL to/from wallets, we need to wrap the SOL in a temporarily created WSOL Token Program account. Then use that to transfer ...
Joe's user avatar
  • 123
3 votes
1 answer
92 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
113 views

How to create associated token account for a new mint?

I created a new token with metadata with this guide. Now I want to create the corresponding token account by using const tokenAccount = await getOrCreateAssociatedTokenAccount( ...
levmilarl's user avatar
2 votes
0 answers
43 views

What function should I use to purchase a token transfer with program_id?

I am trying to repeat this transaction (4Ku7oqwPAwRLPm7jNp2oTigYv8XpcTPLJwF49dLVS6ypi35vH9orwRAPcfMj37jj8FwmpMFuP5j8cS1hwdoXJp67) programmatically on solana or solana cli (I will be grateful for any ...
AREW's user avatar
  • 33
1 vote
0 answers
22 views

Fund associated token account

I am trying to swap SOL to USDC on the devnet. I get this error "Input token account empty". I know that this means that the associated token accounts A and B have to have some funds. I am ...
tomiella's user avatar
1 vote
0 answers
90 views

The provided token program does not match the token program expected by the swap

import { logger } from "../helpers"; import * as web3 from "@solana/web3.js"; import * as token from "@solana/spl-token"; import { TokenSwap, TOKEN_SWAP_PROGRAM_ID, ...
tomiella's user avatar
1 vote
1 answer
450 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 ...
Nerevaine's user avatar
  • 309
1 vote
1 answer
134 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 ...
Ayman's user avatar
  • 111
0 votes
1 answer
31 views

Are funds sent into an address with IsOnCurve: false Retreivable?

I sent USDC to an address with IsOnCurve False, it was an exchange address. From what I have read, the funds are lost because nobody really has access to that address. Then, I read here that there is ...
eratz's user avatar
  • 1
2 votes
1 answer
167 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. //...
blueboy's user avatar
  • 33
1 vote
1 answer
120 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
0 votes
1 answer
128 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 ...
Gokul Alex's user avatar
1 vote
1 answer
112 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
1 vote
1 answer
103 views

InvalidAccountData error on token transfer function ( using metaplex-toolbox )

I've created a dApp on React which uses the Solana blockchain to create, mint, and send utility tokens. I'm using @metaplex-foundation/umi and @mpl-toolbox to create the token, mint it to the creator'...
Sudhanshu Shekhar's user avatar
0 votes
1 answer
113 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
1 vote
2 answers
1k views

Error: unable to confirm transaction. This can happen in situations such as transaction expiration and insufficient fee-payer funds

1. Description of my context on api.mainnet-beta.solana.com Token machine made with Windows 11 remote PC Connected to Sol network by api.mainnet-beta.solana.com 1.1 Detailed description coming from ...
AJSP's user avatar
  • 51
0 votes
0 answers
41 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
4 votes
2 answers
379 views

Check mint to create either Token or Token2022 on demand

Solana's Token 22 tutorial tells you how to upgrade to 2022, but most deployed programs need to support existing accounts that were made with the Token program. Let's say we have an ix that makes a ...
Whiteseal's user avatar
  • 3,346
0 votes
0 answers
31 views

Is it possible to send SPL token from a wallet to another wallet using laravel?

I want to try writing code to send SPL tokens from one wallet to another. I've tried it before using a JS framework, but now I want to try using Laravel. I managed to create a wallet connection, but ...
mb-1208's user avatar