Quantcast
Channel: Recent Questions - Solana Stack Exchange
Browsing all 7855 articles
Browse latest View live

Create a token extension which taxes on buying and selling but not on...

How do we create a token extension that taxes on buying and selling but not on transferring tokens?I am looking to build a token whichhas taxes for buying and selling, not on transferringhas an exempt...

View Article


Image may be NSFW.
Clik here to view.

Anchor build not working

When I try to run anchor build in my terminal, this is the result I am getting in the terminal.I have uninstalled and installed rust but I am still getting the same output.

View Article


How can I find out how much Sol I will need to deploy an anchor program?

If I have an anchor program, how can I find out how much sol it will cost me to deploy it? Afaik the raw binary size isn't accurate, as some padding is added as well.

View Article

Are there any security risks by adding the program IDL in client side code?

I don't really see any inherit risk by doing this, but maybe I am being naive.If it is dangerous or a potential vulnerability, please let me know why.thanks <3

View Article

Error Code: ConstraintTokenMint. Error Number: 2014. Error Message: A token...

I am trying to create a staking program. When I test this code out, I get the subjected error:use anchor_lang::prelude::*;use anchor_spl::token::{self, Mint, Token, TokenAccount, Transfer as...

View Article


Anchor CPI invalid program argument

I want to transfer some lamports (100) froma a PDA to an account.This is the Rust code:pub fn test(ctx: Context<ApproveEscrow>) -> Result<()> { // PDA already initilized in another...

View Article

How can I update the token logo of our coin on Phantom?

We updated the token logo metadata over a month ago for Solanacorn (ca: 6DSqVXg9WLTWgz6LACqxN757QdHe1sCqkUfojWmxWtok; https://solscan.io/token/6DSqVXg9WLTWgz6LACqxN757QdHe1sCqkUfojWmxWtok) but the old...

View Article

Transaction problem

I do have a account in which I have over 1600 USDT and when I required funds for trading I tried to send the funds from phantom wallet to kucoin then it said transactiondisabled. I thought it was...

View Article


Rate limit of Solana Airdrop on devnet

I am running a script on devnet with a regular interval that requires solana airdrop.Now I get Error: airdrop request failed. This can happen when the rate limit is reached.So I was wondering, does...

View Article


Update NFT metadata after mint

Just need to know how to update NFT metadata after minting NFT. I am trying to use mpl_token_metadata::instruction::update_metadata_accounts_v2 for this. Don't know the correct way to use it or if...

View Article

Anchor test can't start validator, but solana-test-validator works fine

Trying to learn anchor dev, following soldev.app.I have a problem, when I run anchor test, this is the error I get:Unable to get the latest blockhash. The test validator does not look started. Check...

View Article

How to find newly deployed tokens on Solana?

I’m trying to find how I can see token contracts as they are being deployed on Solana. I can find them after liquidity has been added but preferably I’d like to know how to find them before the...

View Article

Broadcast Transaction Error

i getting the below error, how fix it?Operation (SWAP):USDC(EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v) ->SOL(So11111111111111111111111111111111111111112)Liquidity Pool(Raydium):...

View Article


SPL Token Image not displaying in Phantom or Solscan

My image is not appearing in Phantom or Solscan. Metadata looks correct, image is an arweave link that works when searching. Any ideas why the image would not be...

View Article

'Archive error: extra entry found' on solana-test-validator

failed to start validator: Failed to create ledger at test-ledger: io error: Error checking to unpack genesis archive: Archive error: extra entry found: "._genesis.bin" Regular/failed to stash...

View Article


Running spl-token initialize-metadata getting error

Syntax:spl-token initialize-metadata Bk8e....xyzK "NAME of Token" "SYMBOL" "https://raw.githubusercontent.com/xxx/TOKEN.json" --url https://api.mainnet-beta.solana.comI've tried so many times with...

View Article

Token swap error 0x26 InvalidSplTokenProgram on raydium rust

i'm currently following this repo https://github.com/raydium-io/raydium-contract-instructions/blob/master/client/src/main.rs to perform a raydium swap but when i tried testing, i'm getting error saying...

View Article


solana-test-validator fails with 'Archive error: extra entry found' [duplicate]

I'm getting an error while running solana-test-validatorLedger location: test-ledgerLog: test-ledger/validator.logError: failed to start validator: Failed to create ledger at test-ledger: io error:...

View Article

Failed to parse ELF file during 'solana program deploy'

Error: ELF error: ELF error: Failed to parse ELF file: Section or symbol name `.data._ZN12wasm_` is longer than `16` bytes

View Article

Is it possible to create deflationary token on solana?

is it possible to create deflationary token on Solana?I was exploring transfer-hook, but the documentation has a note that says:When the Token Extensions program CPIs to a Transfer Hook program, all...

View Article
Browsing all 7855 articles
Browse latest View live