Skip to main content

Questions tagged [spl-token]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
118 views

How to generate ATA?

I'm trying to create a new ATA owned by a program. Here is my code : var ata_program = await getOrCreateAssociatedTokenAccount( pg.connection, pg.wallet.keypair, MINT_USDC, pg.program....
Albear's user avatar
  • 31
1 vote
0 answers
98 views

How to update Token2022 transfer fee? [duplicate]

Hello I would like to know if it's possible to update the transfer fee for a Token2022 using @solana/web3 or any other way I've been looking all I i can find is the ...
David Dacruz's user avatar
3 votes
1 answer
511 views

Parse transactions in human readable format

How can I convert the data to the same form as it is done on the solana explorer for better readability?
slntrx's user avatar
  • 107
0 votes
2 answers
503 views

how to find a new token in the block

I searched for a similar question but couldn't find one. So, I get the last block, then inside this, block I parsing all transactions. My task is to find information that a new token has been created. ...
slntrx's user avatar
  • 107
1 vote
1 answer
81 views

Update mint & freeze authority for an NFT

This is the command I'm using to update the authority of my NFT at address 9ZgNKyB7qoqpEeMmQqxg9MNJASCb5S9rc2sLN7ZbZ9w8: spl-token authorize 9ZgNKyB7qoqpEeMmQqxg9MNJASCb5S9rc2sLN7ZbZ9w8 mint ...
Sunidhi Singh's user avatar
0 votes
1 answer
174 views

Example 'spl-token-minter' of github.com/solana-developers failed on my localnet

I tried example [spl-token-minter] on github.com/solana-developers repo on my local net. Run anchor run test got error: Error Number: 3009. Error Message: Program account is not executable. Error ...
breeze wang's user avatar
0 votes
1 answer
215 views

Temporarily lock SPL token transfer for all ATAs

I'm new to solana development, with previous EVM experience, so it's hard to change my paradigm😅 I'm wondering what is the best way to lock SPL token transfers temporarily. So, I have mint ...
Oleh's user avatar
  • 33
3 votes
2 answers
150 views

Is it possible to fetch user account balance in smart contract?

Is it possible to fetch account balance or token balance in the smart contract itself?
blackhorse's user avatar
1 vote
1 answer
622 views

Public Data API for Token Security

Does there exist a version of an API, like this https://docs.gopluslabs.io/reference/tokensecurityusingget_1 which is not paywalled like birdeye.so API.
data4rtist's user avatar
1 vote
1 answer
613 views

Token22 create/update metadata using metaplex

The token was created using the Token22 program and the metadata was added directly to the mint account as described in the documentation: https://spl.solana.com/token-2022/extensions#metadata Because ...
spl-token22's user avatar
0 votes
0 answers
24 views

I want to check HNT balance for My SOL address using JS.? Below is the code please check

Here I have an address but the result is showing blank...as there is no token associated with the address but I want to know and check the HNT balance if available in the address and also how can I ...
Anurag Pandey's user avatar
0 votes
1 answer
69 views

Multiple ATAs for the same mint

I've created a Python script that creates a wallet and monitors all SPL transactions of this wallet. Using an example to illustrate the problem: The generated public key belongs to account A with ...
theb's user avatar
  • 3
3 votes
1 answer
198 views

Token name and icon are not showing on explorers

The token name and icon are not showing on Solana explorers: https://explorer.solana.com/address/3Gx8FbPiWfSdgXoBMzT4r22n9nhyF5CiRv52qf3WhEL8 https://solscan.io/token/...
spl-token22's user avatar
2 votes
1 answer
297 views

What are Token Extensions in Solana?

I hear that solana token extensions are coming soon. A cursory search results in this: https://solana.com/solutions/token-extensions Is this the same as solana SPL-2022? What are the big differences ...
AceGravity's user avatar
1 vote
1 answer
195 views

Transfer Hook: Not backwards compatible with common wallets

As far as I understand from documentation all the Token-2022 extensions should be backwards compatible with normal transfers from spl-token standard. However when testing Transfer Hooks I was only ...
LubWn's user avatar
  • 13
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? ...
Nick's user avatar
  • 21
1 vote
2 answers
1k views

Can't Update Token Metadata

I have been using @solana/web3.js and @solana/spl-token to create new token mints and mint tokens on devnet. However, I cannot figure out how to update the token metadata. In my Javascript code, I am ...
EvanOnEarth's user avatar
2 votes
1 answer
321 views

SPL token account creation and airdrop

I created a spl-token and I want to let users claim airdrops from my website. My current implementation in short: Calculate associated token account Check if the token account exist If not, create ...
Amos Wu's user avatar
  • 23
0 votes
1 answer
115 views

Getting Transaction simulation failed: Error processing Instruction 0: custom program error: 0x6, while creating permanent delegate

My instruction for creating permanent-delegate is invoke( &initialize_permanent_delegate( &ctx.accounts.token_program.key(), &ctx.accounts.mint_account.key()...
blackhorse's user avatar
1 vote
1 answer
288 views

Get transactions between a wallet and a token

Is there a way to fetch transactions that involve a certain wallet AND token address? Meaning, any transaction(sale, mint, etc) that occurred between the two. I've tried filtering manually using @...
yoyo 's user avatar
  • 11
1 vote
1 answer
48 views

Funding Native Mint: Sum of account balances before and after instruction do not match

I'm trying to fund a Native Mint token Account from a PDA and then Sync it like so. **(funder.try_borrow_mut_lamports()?) -= excess_sol; **(wrapped_sol_escrow.try_borrow_mut_lamports()?) += ...
Trevor's user avatar
  • 115
1 vote
2 answers
216 views

Getting error while minting token to an account "Transaction simulation failed: Error processing Instruction 0: invalid account data for instruction"

My mint test cases are failing and I am clueless where it is going wrong pub fn mint(ctx: Context<MintToken>, params: MintTokenParams) -> Result<()> { // Check user balance ...
blackhorse's user avatar
1 vote
1 answer
45 views

Can you retrieve funds of an ATA owned by another ATA?

I created a USDC ATA and was accepting funds there. I closed the ATA and recouped the SOL. This means the ATA's owner became the System Program instead of the Token Program. Finally, someone sent ...
user7659's user avatar
1 vote
2 answers
1k views

Make token metadata immutable with SPL-TOKEN

Tech Stack: Solana CLI / SPL-TOKEN Ubuntu 18 Token vs Token-2022 Program I am using the CLI SPL-TOKEN cargo package, I am not a rust user, nor a javascript user, so my access level into the solana ...
Solana Review's user avatar
0 votes
0 answers
26 views

Web2 to Web3 on Solana

I have a member website built on WordPress where members can post content (forums, posts, jobs, articles,...). I want to turn it into web3, where members can earn tokens for posting content. I want to ...
live well's user avatar
0 votes
0 answers
37 views

Best advice for fixing spl-token in production

After creating and minting an spl-token, I moved all assets to a new wallet and authorized mint for metadata changes, i assumed wrong. Then ran the close command on the original minting wallet. My ...
ReDNeQ's user avatar
  • 1
1 vote
1 answer
695 views

I need to get the creator of an SPL token that has been minted already

What I'm basically trying to do is what Rugcheck does. When given a token address, it shows the creator of that token. My initial approach was getting all transactions of the token with ...
materwelon's user avatar
0 votes
0 answers
224 views

How can I fetch all the newly minted SPL tokens in real-time?

Can someone confirm whether all recently created SPL tokens originate from the same source protocol/contract, such as TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA? If not, could you please provide ...
Abdullah Aftab's user avatar
3 votes
1 answer
832 views

Creating an SPL Staking Contract + Understanding Staking

I'm working on a basic SPL staking contract for a token i've created on devnet. Pretty simple goal: lock up tokens for x amount of time, claim, unstake. As this is all relatively ~basic~ functionality,...
blockchief's user avatar
2 votes
2 answers
250 views

How do I send a token with the transfer-hook extension using the spl-token command line interface?

I am trying to test the transfer-hook extension by creating and minting a token using the example transfer-hook program. I have successfully deployed the program, created the token with the transfer-...
tonton's user avatar
  • 55
4 votes
1 answer
294 views

How to parse SPL2022 Token Metadata back from the @solana/spl-token-metadata JS library?

I'm trying to parse a mint-stored metadata as per the SPL Token 2022 Metadata extension (pointing to the mint itself). Here's what I'm trying to do: const mint = await program.provider.connection....
kevinrodriguez-io's user avatar
1 vote
1 answer
38 views

Token transfer with splToken throwing error wehen asking to sign

i made a function to transfer a custom token on Solana with spl-token, but when i get to sign the transaction it prompts me this error: Error processing intruction 2: invalid accounr data for ...
user19288852's user avatar
1 vote
1 answer
149 views

How do I use spl-token through cdn.jsdelivr.net?

I am having some troubles using the spl-token library. How do I use it? <script src="https://cdn.jsdelivr.net/npm/@solana/[email protected]/lib/cjs/index.min.js"></script> It is ...
user19288852's user avatar
6 votes
3 answers
4k views

How do I get real-time information about newly created tokens on Solana?

I want to receive information about newly created tokens on the Solana blockchain with minimal latency. What are some ways to do this? So that I get information about a freshly created token after, ...
Andrew Swift's user avatar
1 vote
4 answers
137 views

Solana address, Spl token, Mint

can anyone help me to make a new solana address and new spl token and show me how to mint those into the solana address through CLI
oofblock_0000's user avatar
0 votes
0 answers
39 views

How to get my pre Metaplex legacy token's update authority?

I created a token before the existence of Metaplex, and during that time, token metadata was managed through the https://github.com/solana-labs/token-list repository. I now wish to update my token's ...
Tolui Davaasuren's user avatar
0 votes
1 answer
320 views

I sent my token (from Trust Wallet) to my ATA (Solflare), the balance still 0? Can I recover from this? [duplicate]

So basically what I did was, sending my Solana token from my Trust Wallet to my ATA of the token on my Solflare. The balance still says 0, how do I recover from this? Is it possible or not? And for my ...
SomeRandomCode's user avatar
1 vote
2 answers
113 views

An account required by the instruction is missing

I'm trying to migrate from Ethereum to Solana, I'm stuck on a simple piece of code. The add liquidity method is supposed to mint fungible tokens, but I get an error "Error: failed to send ...
Nutinaguti's user avatar
0 votes
1 answer
93 views

TokenAccountNotFoundError

I am a new developer trying to learn and dive into the Solana ecosystem. I'm currently trying to complete this lab: https://www.soldev.app/course/token-program. I'm on step 2 of the lab, where you ...
kapforty's user avatar
0 votes
2 answers
183 views

How to send SOL through a wallet that has become the token address of a token?

I have all the privatekey and phrase key. i try to send the sol using phantom and solflare but i got the error "Transaction simulation failed: this account may not be used to pay transaction fees ...
Rasmus's user avatar
  • 1
1 vote
1 answer
543 views

How to get an SPL token's name and symbol from its mint address?

How do I get an SPL token's name and symbol from its mint address? There seems to be no way to do this using any of the json-rpc endpoints.
wonton's user avatar
  • 21
2 votes
2 answers
514 views

Making existing token immutable

How can I change an existing token I created from mutable to immutable? I want to change this on an SPL token would appreciate any help!
Tony's user avatar
  • 21
0 votes
0 answers
67 views

Solana SPL Token logo doesn't show anywhere [duplicate]

I made an token using spl-token before I found out about the new standards. So I uploaded my metadata using Metaboss and my token name and symbol appear in Solscan and Phantom wallet but my logo doesn'...
Baruuk's user avatar
  • 1
1 vote
2 answers
80 views

Best way to get SPL tokens generated from site?

I'm working on a website where a user can create their own SPL token with metaplex metadata attached to it. Something that I want to keep track of is all the SPL tokens that were created using my DApp....
0x0x0x0's user avatar
  • 31
0 votes
2 answers
150 views

Error: IncorrectProgramId at transferCheckedWithFee

import { Connection, Keypair, PublicKey, SystemProgram, Transaction, clusterApiUrl, sendAndConfirmTransaction, } from '@solana/web3.js'; import { ExtensionType, TOKEN_2022_PROGRAM_ID,...
Benny's user avatar
  • 1
2 votes
1 answer
89 views

how to handle spl token transfer as a delegate

account a has giving account b approval as a delegate to x tokens, how do i transfer x - 1 tokens from account a to account c, after the delegate transaction has been approved. i keep trying with ...
0xSol's user avatar
  • 21
2 votes
1 answer
287 views

Is there a way to batch together spl-token sdk transactions?

I have a program that is creating a mint account, the associated token account, the meta data account. Right now I'm just testing it out without a frontend, but eventually I want to batch them all ...
0x0x0x0's user avatar
  • 31
1 vote
0 answers
104 views

Unable to do the CPI to Orca whirlpool program after obtaining its interface via solang

Description We are unable to correctly finalize the call to the Orca whirlpool program fork after we have obtained the whirlpool interface via the solang idl whirlpool.json command. When doing the CPI,...
Aleksandr Kuperman's user avatar
0 votes
0 answers
30 views

How can I use RPC to locate the leg accounts for LP token?

I am working on a project that involves interacting with LP tokens, and I'm trying to locate the leg accounts associated with a specific LP token using RPC. Here is a static data what I need to get ...
x_ror's user avatar
  • 101
0 votes
0 answers
101 views

How to add metadata to my SPL token with multisign

I have a problem with a token created in early 2022. I can't add metadata! the mint account is multisign and I can't use metaplex to upload metadata file. I thought I could to change authorize owner ...
Theca Lab's user avatar

1
3 4
5
6 7
12