Questions tagged [token]
The token tag has no usage guidance.
78
questions
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 ...
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 ...
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 ...
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 ...
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:
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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,
...
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....
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 ...
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 ...
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 : ...
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 ...
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 ...
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 ...
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.
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.
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....
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.
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?
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
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, ...
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....
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 ...
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.
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 ...
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....
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 ...
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, ...
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 ...
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 ...
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/...
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 ...
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/,...
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 ...
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 ...
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.
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 ...
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 ...
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 = ...
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 ...
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 ...
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 ...
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 ...