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

How to construct input of solidity program that is fed into solana rbpf?

Get hello_sol.soanchor init hello --solidityanchor buildhello_sol.sol@program_id("F1ipperKF9EfD821ZbbYjS319LXYiBmjhzkkf5a26rC")contract hello_sol { bool private value = true; @payer(payer)...

View Article


Associated Token Account address not correct?

I'm trying to access this associated token account:https://solscan.io/account/DizwsnTVoLCXskwqLMxYCaLqssrArUP2NRQb7dHzDprbvia the following code:const token = new...

View Article


Develop programs on the beta playground and test with localhost frontend

Hi guys I was trying to install my environment to get started working on solana programs on my windows machine. Unfortunately I have came across so many errors and it's just an endless circle at this...

View Article

metaplex createCreateMetadataAccountV3Instruction is not a function

This is the error I'm getting:[0] Error creating token: TypeError: createCreateMetadataAccountV3Instruction is not a function[0] at /home/ubuntu/solana-token-creator/routes/create.js:52:43[0] at...

View Article

Error while calling an instruction with PDA in client side code

I’m trying to send SOL to a “hold account” (which I’m thinking should be a PDA) and then only be able to claim it from the address that sent this SOL. I am getting an error as I’m trying to now call...

View Article


createInitializeGroupInstruction fails with InvalidInstruction - how can I...

I am following Group, Group Pointer, Member, Member Pointer lesson, using the code from the solution branch.I've successfully uploaded the off-chain group metadata to Irys (I needed to make the main...

View Article

Send custom routePlan to Juptier API /swap

Hello dear friends hope everybody is good today ?When following : https://station.jup.ag/docs/apis/swap-api#guide-for-v6-swap-api-code-exampleI can't send my transaction to a jito bundle or normalGet a...

View Article

Account creation

I was under the impression that the 1st transaction for every account would be a transaction containing some sort of account-creation instruction for that account.However, I found this one that doesn't...

View Article


Access violation in stack frame for fresh raydium-cpswap build

I want to deploy my own instance of the Raydium cp-swap program on Solana's devnet. After cloning the repo and building clean with anchor and no trouble, followed by a successful deployment and running...

View Article


Unable to Use External Crates (e.g., `orao_solana_vrf`) in Solana Playground

I am developing a Solana smart contract and am currently using the Solana Playground environment for testing and development. However, I am encountering an issue where I am unable to use the crate...

View Article

Tx on Solana not working despite having Jito and really high tx fee

Does anyone know what we are doing wrong? Our tx's just keep failing over and over again, even though our fees are the same as on other platforms like Phantom etc, our instructions are also almost...

View Article

Image may be NSFW.
Clik here to view.

Swap API - Balance change is not displayed when using Jupiter swap API

I'm using jupiter quote/swap endpoints to get transaction string. https://www.quicknode.com/docs/solana/swapBut when signing transaction, wallets don't display balance change at all, even though it...

View Article

Doubts about getTransactionCount, not working as intended

I am very new to this.I am trying to make a simple program for self learning that does this:use slotSubscribe to get root slot number,use getTransactionCount to get the number of finalized transactions...

View Article


I am having "Trouble Loading Stake" in Phantom Wallet

Hello I am having a problem in mobile wallet where I am getting a "TROUBLE LOADING STAKE" message. After 3 or four tries it eventually loads. Stake is there and funds are safe but this needs to be...

View Article

How to infer or find basic types for return values in @solana/web3.js v2...

I’m working on a project using the Solana web3.js v2 library, and I’ve run into a challenge with types. Specifically, I’m trying to infer or find the correct type for the return value of a function...

View Article


Solana not received on phantom

I paid 20$ using card and never got my 20$ in solana, i have the transaction it went through but didn’t receive it in the app. It has been over 24 hours since i have made the purchase and still have...

View Article

anchor verify 5nfdb6vRYEgh7i41jcv5eC4gMUA5stV2bUDJcbM9JzBQ --skip-build

Having issues with anchor verifyanchor verify 5nfdb6vRYEgh7i41jcv5eC4gMUA5stV2bUDJcbM9JzBQ --skip-buildError: package section not providedNeed your guys help let me know!! Important point I tried to...

View Article


Is there any way to land transactions within 1-2 blocks without relying on an...

I am executing swaps on pumpfun and raydium (using typescript). I am using a dedicated paid node, sending my transaction using sendRawTransaction() and then using getTransaction() with the tx signature...

View Article

How to Check if an NFT Belongs to a Specific Collection in Solana with...

I'm working on verifying whether a given NFT's mint address belongs to a specific collection on Solana. In examples I’ve seen, mpl_token_metadata::state::Metadata was used for this purpose, as shown in...

View Article

How to Calculate Space for PDA Accounts with Dynamic Vectors in Solana?

I am working on a NFT staking program. I need to create a PDA account with a structure that includes a dynamic Vec.Here's the structure:#[account]pub struct UserNftStakeAccount { pub user: Pubkey, pub...

View Article
Browsing all 7925 articles
Browse latest View live


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