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

Is there a way to access the a program's upgrade authority in Anchor?

My Anchor program has an instruction handler called initialize_config() that will initialize a config account and set the values inside, including the value of the authority Pubkey (which my program...

View Article


Is there any possibility to create a Non Transferable TOKEN_2022 with...

I am trying to build a token that I could airdrop to an account, and not be able to be transferred between accounts.I had two ideas:TOKEN_2022 Unfreeze Account -> Mint -> Freeze AccountTOKEN_2022...

View Article


Image may be NSFW.
Clik here to view.

How to resolve error code":-32010,"message":"2UR.... excluded from account...

I have set up a Solana full node with a configuration of 1TB memory for eypc 64 core.At the same time, I also opened the account index program id spl token mint spl token ownerBut when using...

View Article

Image may be NSFW.
Clik here to view.

Why does umi add an extra characters to the beginning of the meta data?

const umi = createUmi(rpcUrl); umi.use(mplTokenMetadata()); umi.use(signerIdentity(source)); const memo = { memo: '1' } let transaction = await transactionBuilder() .add(addMemo(umi, memo))...

View Article

Image may be NSFW.
Clik here to view.

How to solve " Failed app interaction "

The image showing in my phantom wallet Another image show That the transfer is completely but I can't see my token

View Article


How to call up an anchor program that has a pda using cpi

There was another question here that was similar but it didn't give a code answer. Let's say anchor program A is the one being called and has an initialise function that initialises a pda that it uses...

View Article

Image may be NSFW.
Clik here to view.

How does Solana chain analyze the pool size?

How does the sol chain analyze the pool size?Such as thisI can get the pool address through Jupiter's interface. The question is how to parse the pool size?

View Article

Created Todo: Error Message: A seeds constraint was violated

Anchor code#[derive(Accounts)]#[instruction(todo_index: u8)] // Added this to pass the index as an instruction argumentpub struct CreateTodo<'info> { #[account(mut)] pub authority:...

View Article


how to close an account

I deposited solana on marginfi and I was charged 0.016 solana for creating an account HXnCRyaNnitnL3Vrie2vHXm2RgCciBfp9inW4k11RG4y.question! can I close this account and get this currency back?and if...

View Article


Solana currency not being sent

I have $2 in my Phantom wallet and Tether is in Solana. I wanted to transfer it to another wallet, but it gives a warning. What's the problem?

View Article

How can I get the Radium pair address after the pumpfun completion?

I have a mint address.Is there a method similar to Pubkey.find_program_address for retrieving the Radium pair address?

View Article

InvalidSecpSignature Error while Using switchboard-xyz/sb-on-demand in Token...

I'm new to blockchain development, particularly in Solana. I'm following the Solana Developer Bootcamp 2024 tutorial on YouTube. I'm stuck on the final project and can't figure out why the revealWinner...

View Article

Wrong transfer solana

I wrongly sent from binance 72.73 solana to a token contract adress instead of my wallet adress. Actually it is all my life savings, is there any solution to save my sols?Thank you

View Article


What is the instruction_data struct for program ED25519?

I'm trying to deserialize the ED25519 program, but the struct I derived does not tally with the bytes in the instruction data...

View Article

How to use Confidentical transfer USDT?

I want to use Confidentical transfer USDT or USDC for privacy. I want to know does it support on solana testnet?The offical document seems not finish.

View Article


What is a system_program in anchor?

While defining my accounts' structures I encountered this error:a non-optional init constraint requires a non-optional system_programfield to exist in the account validation struct. Use the Program...

View Article

How to generate a number of Solana addresses

I would like to generate a number of Solana addresses and store them in a database. I plan to use them to display and receive payments. I don't need to verify (I only need to display a receiving...

View Article


can not deploy, getting weird error

i'm trying to build and deploy a program, but i get errors while building (althought it still finishes the build), and i can't deploy.Here is the error while deploying :ELF error: Failed to parse ELF...

View Article

Live Solana Token Data

I'm trying to find a better method to get live, accurate and fast token data.I've been using Raydium API for the better part of the last 3 months however, a lot if not all my new pairs initially take...

View Article

Transfer SOL out of PDA owned wallet account

Basically I'm trying to figure out to transfer SOL out of a wallet account which is owned by a PDA. the PDA is in turn owned by my program.I've tried invoke_signed, my seeds are all correct, and I keep...

View Article
Browsing all 7836 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>