Questions tagged [token]

The tag has no usage guidance.

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

How to update token name in solana token 2022 program

i was trying to update name and symbol etc i tried enable metadata and update and when i use spl-token display in extensions it shows fine but on solscan or wallets name is unrecognized token how to ...
Alan's user avatar
  • 11
0 votes
0 answers
20 views

Help with Solana Transaction

I would appreciate if you could help me. By mistake I sent a pair of solana tokens (28) to the Solana contract address for the BSC network BNB Smart Chain (BEP20). I have all the background. Please ...
Christian Tolosa's user avatar
0 votes
1 answer
39 views

"Program log: Instruction: GetAccountDataSize", "Program log: Error: IncorrectProgramId", "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA

Based on reading [https://github.com/solana-labs/solana-program-library/blob/master/token/program/src/instruction.rs#L426][1] It looks like the Token program does in fact have GetAccountDataSize so I ...
dirtyzero's user avatar
0 votes
1 answer
59 views

Up-to-date documentation on how to create metadata for fungible token smart-contract on mainnet

We are trying to deploy our token (AIDS) on mainnet: https://explorer.solana.com/address/ExCgGC6CEegjjif7yqxpcreEaarb83K8YaXzmf3PRWAZ . When we are trying to create metadata for this token, we cannot ...
Andrei Tintari's user avatar
0 votes
1 answer
37 views

Getting frozen account when trying to transfer NFT for created ATA

Im getting frozen account when trying to transfer some NFTs from a recently created ATA: I create the ATA in the same transaction that im sending the NFT for , and getting this error:
ZuckOFB's user avatar
0 votes
1 answer
34 views

Need Help Displaying Token and NFT Holdings in Solana Dapp Portfolio

I'm currently working on a Solana Dapp portfolio project where users can connect their wallets and view their token and NFT holdings. I am done making the wallet connection buttons and installing ...
M.amanullah behlim's user avatar
2 votes
1 answer
45 views

Solana inflation mechanism design

When Solana quotes a percentage inflation figure, is that to be understood as annual inflation of the current circulating supply? For example, if inflation is 10% and current circulating supply is 400 ...
yeehaa's user avatar
  • 21
1 vote
2 answers
58 views

Does Solana have a clear-cut distinction between SOL and SPL tokens?

In Ethereum, the only native asset is Ether (ETH). It's the only asset that gets first-class treatment in terms of cost and ability to be pushed and pulled through contract calls. Is there a similarly ...
Paul Razvan Berg's user avatar
0 votes
1 answer
33 views

How can I query all the owners of an SPL token?

My background is in Ethereum, where it is easy to get the full list of owners for a particular token (e.g. USDC) using The Graph or a node (by filtering Transfer events). How can I do this with an SPL ...
Paul Razvan Berg's user avatar
0 votes
0 answers
39 views

Send SPL-tokens to unfunded account + set fee payer

I'm trying to create a seamless process for my clients via paying for the transaction fees when initiating a tokenswap (token A to token B) via jupiter. In this scenario, the user doesn't have any sol ...
Franny's user avatar
  • 1
3 votes
1 answer
53 views

How to get Mint Address of of SPL token using associated token account? without rpc call

I can get an associated token account knowing the mint address and wallet address with spl_associated_token_account::get_associated_token_address function But is it possible to get a mint address, ...
Scott's user avatar
  • 33
1 vote
1 answer
61 views

creating token on solana blockchain

Created token on solana blockchain using tutorial on internet but then seen this message that solana repo is closed and have to find another way to create token. It says : "Adding a New Token You ...
KryptoSwir's user avatar
1 vote
1 answer
39 views

Right token price from liquidity

I have a problem regarding the price of the initial Token, I would like to insert 100 dollars of initial liquidity so as not to give the possibility to buy large quantities immediately, but I cannot ...
malloc's user avatar
  • 11
1 vote
2 answers
68 views

Can I use the meta plex js SDK to update SPL token meta data?

I am creating a token mint and was wondering, if i can use the meta plex sdk to upload meta data for it. I am trying like this. const mint = await createMint( pg.connection, pg.wallet.keypair, ...
Jonas H.'s user avatar
  • 1,857
2 votes
1 answer
898 views

How to get token metadata?

Since @solana/spl-token-registry package is deprecated, I have the question: how to get token metadata by contract address? decimals - can be obtained by getParsedAccountInfo method of @solana/web3....
mahnunchik's user avatar
1 vote
1 answer
119 views

How to resolve error: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA excluded from account secondary indexes; this RPC method unavailable for key'?

I am using connection.getTokenLargestAccounts(new PublicKey(tokenAddress)); method to fetch the owners of a token. Calling this function like below, on an array of NFT address on mainnet-beta via ...
ZeroGravity's user avatar
2 votes
1 answer
63 views

Solana approve via signature

I wonder if there's a mechanism of transferring assets with receiver fee payment. Something like permit functions in solidity language? Is it possible to copy this approach with PDAs? Share some ...
Ruarin's user avatar
  • 23
1 vote
2 answers
126 views

Solana Token Swap Program - Error Given pool token amount results in zero trading tokens when performing Swap instruction

Hello I get an issue when I try to perform a swap on a token-swap program deployed on devnet. Error : Given pool token amount results in zero trading tokens Transaction as an example : ...
Skelt's user avatar
  • 31
0 votes
2 answers
132 views

Solana Token Swap Program - Program log: panicked at 'index out of bounds: the len is 0 but the index is 0', token-swap/program/src/state.rs:61:17

I am facing an issue when I try to create a token swap through the js binding for the token swap program. https://github.com/solana-labs/solana-program-library/tree/master/token-swap I don't get the ...
Skelt's user avatar
  • 31
4 votes
1 answer
35 views

solana program close, what about tokens owned by the program?

I want to do close one of my program. This program has an associated token address for USDC with some USDC on it. If I delete it, will I get my USDC back ? Do I need to already have a USDC account to ...
rudy rhatal's user avatar
3 votes
1 answer
169 views

How to freeze NFT/token in users wallet and allow it to be repossesed at a later date?

We are trying to build a collateral system without Escrow wallet. We want to: Freeze the asset in the user's wallet Transfer it out if the user doesn't pay their loan Un-freeze it if the loan has ...
John's user avatar
  • 71
2 votes
1 answer
251 views

How to initialize a PDA mint in anchor

I'm looking to create a mint as PDA in anchor. In this case, the mint will be able to mint tokens.
vicyyn's user avatar
  • 3,775
3 votes
1 answer
351 views

How to initialize an Associated Token Account (ATA) in anchor

I want to initialize an Associated Token Account in anchor.
vicyyn's user avatar
  • 3,775
0 votes
1 answer
19 views

Any way to migrate a legacy "tokenlist" token to use Metaplex Fungible Token Metadata if the token's mint authority is disabled?

Title says it all. We have a token with "Current mint authority: disabled". We would love to add Metadata and update the logo but it appears this may be impossible now that the old tokenlist....
Iceee1000's user avatar
2 votes
1 answer
215 views

where and how to find info about airdropped tokens on phantom

Where or how can I find out about a random coin that was deposited into my phantom account. I am very worried abouy it being a scam. It's called Lushcoin and was just dropped. Just wanna be sure.
chris's user avatar
  • 21
0 votes
1 answer
44 views

How creating a swaper for my token

what is the best way of creating swap for my token in on the chain? i know about creating swap using The Token Swap Program but is there another way to be more robust for production level projects?
soroosh.m's user avatar
3 votes
1 answer
97 views

How add a metadata for this old token?

I've tried everything but I can't update the metadata of this token of mine what could be the problem? https://solscan.io/token/9bnKvEK2ymzbrtKGeCSbDtn7Dr1afCQoTTH1y4fL5seK
robin token's user avatar
4 votes
1 answer
284 views

Anchor: Initialize token mint with name and symbol

I would like to initialize in my Anchor program a reward token to mint it when the user create a new movie review: use anchor_lang::prelude::*; use anchor_spl::token::{mint_to, MintTo, Mint, ...
Kevin Fiorentino's user avatar
0 votes
1 answer
61 views

Transferring custom made solana tokens (not owned by me) from one wallet to another

So I am working on a script that transfers tokens (custom-made tokens not owned by me) from one wallet to another in python. How do I go about doing that? (By tokens I mean, tokens like Dust, Luv, etc....
Rudra Lakhani's user avatar
2 votes
0 answers
145 views

How to launch a new SPL Token on Strata launchpad

I tried to create a new utility SPL token and launch on mainet but it seems like I am missing some steps. I try https://app.strataprotocol.com/launchpad/fully-managed/new to connect a panthom wallet ...
Souvagya's user avatar
  • 131
2 votes
2 answers
499 views

How can i transfer sol from PDA to another account

I want to send Solana from a PDA to another wallet using a publicKey. The other wallet is not the signer and the transaction is happening via Program.
M2DT's user avatar
  • 43
2 votes
2 answers
123 views

Can a mint's supply or decimals ever change?

I am building a data ingestion pipeline for solana blockchain data, and trying to determine whether it is safe for my processing pipeline to classify a given mint as an NFT based on whether the supply ...
Stephen Hawkins's user avatar
4 votes
1 answer
444 views

Can a PDA be the owner of an associated token account?

SPL.createAssociatedTokenAccount(connection, wallet, mint, project, {skipPreflight: true}, undefined, SPL.ASSOCIATED_TOKEN_PROGRAM_ID).then((projectTokenAccount) => { const mintIx = SPL....
user2421's user avatar
0 votes
2 answers
82 views

Updated SPL Token Metadata Causes Token To Display Inconsistenly

I created an SPL token earlier this year and later needed to change the name of the token to reflect the new name of the project. I first tried updating the token via a pull request on GitHub back in ...
Polaris's user avatar
2 votes
3 answers
722 views

How do I burn a fungible token?

Phantom wallet has a burn NFT feature and there are some 3rd party sites that allow burning NFTs, but how do I burn a fungible (non-NFT) token? For example I get airdropped 1000 of some random token, ...
User's user avatar
  • 151
1 vote
0 answers
15 views

Solana Token distribution (to multiple wallets) is not working

Using the solana token distribution method to send SOL to multiple wallets. I keep getting an error saying that it expected a "tupple of size 2" in column 1, line 1 of the CSV file. However ...
Bothamf's user avatar
  • 11
1 vote
2 answers
44 views

spl-token CLI unexpected behaviour

I'm writing a bash script to do some creating of mints, associated token accounts and minting. What I'm trying to do is, create a mint with a mint_authority A keypair, and then create a associated ...
sayantank's user avatar
  • 415
0 votes
2 answers
76 views

How can I get the Icon of a token?

I want to show a list of Tokens and can't figure out where to find the url to the token icon. It does not seem to be in the meta data like for NFTs. https://explorer.solana.com/address/...
Jonas H.'s user avatar
  • 1,857
2 votes
0 answers
70 views

I cannnot name my solana token created with spl-token cli

I have created a new fresh token in the terminal with the spl-token creator MacBook-Pro token-vesting % spl-token create-token Creating token F2Ty85DNzwXYfVaHhnBGCvmJyzRU9tZiDfJPYJMAc57h MacBook-Pro ...
Martin Tonev's user avatar
3 votes
2 answers
391 views

How to send spl-tokens with Solana smart contract?

I wanted to inquire if anybody knows how to tranfer a spl-token from an account when the account receives a SOL because I'm a novice Rust/Solana developer. Despite reading the https://docs.solana.com/,...
Ramesh's user avatar
  • 209
0 votes
1 answer
64 views

Find amount of tokens swapped in a transaction?

I have a transaction signature for which I want to know the amount of tokens swapped. I have seen various discussions on the topic. Most of them suggest to make the JSON RPC call using the ...
Mrigank C's user avatar
0 votes
1 answer
30 views

What's the best practice around supporting token accounts other than associated token accounts

In my program, suppose I want to take tokens from a user, or send tokens to that user, etc. Should I support any token accounts (given the mint and the owner matches of course), or only the associated ...
Sumit Ghosh's user avatar
1 vote
1 answer
111 views

SPL token metadata

Tell me please. I have created a SPL token, how do I add the website and social networks to the metadata now? Previously, this could be done with the help of PR on github.
Zero Q4's user avatar
  • 11
2 votes
1 answer
134 views

How to get all SPL token mints of a wallet address?

Using getTokenAccountsByOwner we can get all token accounts and using getTokenAccountBalanace we can use the token account to get it's balance. However I was wondering what would be the most efficient ...
Gmer's user avatar
  • 65
1 vote
1 answer
27 views

How can i delete my token?

i have a token: https://solscan.io/token/TR1S2n2dFGQEAAUcttLTE5zNdiSW96QA51Bb4PSnWae#txs But i want delete. "TR1S2n2dFGQEAAUcttLTE5zNdiSW96QA51Bb4PSnWae" beacuse i have 0.38 sol in this ...
Veres Johnny's user avatar
3 votes
1 answer
147 views

signer privilege escalated when trying to transfer tokens out of a PDA owned escrow wallet

Here is the list of accounts I passed in (the ... is extra constraints and stuff I removed for readability) #[derive(Accounts)] pub struct SendTokens<'info> { #[account(mut, seeds = ...
coco's user avatar
  • 43
1 vote
1 answer
30 views

How to figure out if an address is an associated token address owned by the running program?

I wonder as to how to check that a provided AccountInfo to a program points out to the account of the same program (that one which is running, so that it is its own associated token address)? I'm ...
unegare's user avatar
  • 231
5 votes
1 answer
127 views

Create Token Account only if not Initialized yet in program (Native Rust)

Doing this in Typescript is pretty straightforward by making an RPC call or getOrCreateAssociatedAccount, but I am wondering if there is a way to do this program side as well without using Anchor. For ...
ixmorrow's user avatar
  • 101
4 votes
1 answer
1k 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 ...
Casey Wilcox's user avatar
1 vote
1 answer
25 views

Is there a way to limit a token send based on certain conditions?

Is there a way to limit a token send transaction based on certain conditions like: User must have at least 2 SOL in their balance before the token can be sent. User must have this other token in ...
Patoshi パトシ's user avatar