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

Anchor detecting wrong Rust version

Anchor keeps detecting my Rust version as 1.68.0-dev even though it is the newest one, any idea?jano@Jans-MacBook-Pro counter_2 % anchor testwarning:...

View Article


solana-program-test fails with termcolor lifetime issues

I'm trying to start a program using solana-program-test, but I'm having trouble getting the examples in SPL to run.If I use the examples/rust/transfer-lamports program, extract it into its own project,...

View Article


Script to find top traders for a specific token?

How to build functionality like DexScreener top traders API? My goal is to return top traders for a certain token with their PnL and un-realized PnL.

View Article

Running Solana RPC Nodes in Restricted Repair Only Mode

I am currently running an RPC node with --restricted-repair-only-mode to limit bandwidth in the following command:exec solana-validator \ --restricted-repair-only-mode \ --no-os-network-limits-test \...

View Article

Is there any faster way to getPoolKeys from Solana Raydium?

Currently, I am fetching all liquidity-related data from Raydium API. (https://api.raydium.io/v2/sdk/liquidity/mainnet.json)And then matching with my desired token address to filter the right PoolKeys....

View Article


I need to change the logo of the token created by you

Dear representatives of your ecosystem,With respect, I would like to inform you about a small discrepancy regarding the logo of the currency that I have created within your ecosystem. Due to an error,...

View Article

make anchor tests run one after the other

So i'm writing tests for my anchor program, using the mocha testing framework (as per default)Inside of my describe, I want to do different tests, so different it() instructions, but I need them to be...

View Article

Token with metaplex metadata not showing properly on Solana.fm

I've created a test token with metadata via metaplex on the devnet, and it appears properly on the solana explorer, but when looking at the same token on Solana.fm it does not display the name, logo,...

View Article


How should I handle private key when sending transactions?

How can I send a transaction from my backend without leaving the private key in the code?I want only me to be able to do this transaction but if I leave the private key in the code, it is easily...

View Article


How to get price for a token pair at a specific time in an onchain program?

I need to get a price for ETH/USD and BTC/USD for the specified time. For example yesterday at 9:00 am. How can I do it in the on-chain Solana program? What oracle can be used?I have checked the Pyth...

View Article

Interacting with the Raydium API

I don't know much about programming. I want to interact with the Raydium API in order to swap tokens <30 secs after launch. How do I do it? A detailed guide would be great, thanks.

View Article

find pump.fun tokens lanched on radium

What method would you use to find all projects/tokens pump.fun has launched? Im trying to understand the logic to even start to put something together. I use python to identify new liquidity pool...

View Article

Error: Reached maximum depth for account resolution

I have a instruction create_like, on calling it from the client I get the following errorError: Reached maximum depth for account resolutionCode For the instruction - use...

View Article


Using anchor_client with tokio

I'm trying to invoke a transaction with anchor_client from a tokio context. Here's how I'm doing it: let pid = Keypair::new().pubkey(); let payer = Rc::new(Keypair::new()); let client =...

View Article

Allow a holder to freeze/thaw their own SPL token token account

I am looking at developing a dapp that rewards holders based on the length they keep their associated token account frozen for.I have tried the below code in my nextjs/react app, however I can only get...

View Article


What is the best way to get all token holders and their balances by mint...

There is a way to get token accounts by mint address usinghttps://spl.solana.com/token#finding-all-token-accounts-for-a-specific-mintBut unfortunately it only returns token accounts without balances, i...

View Article

How to verify priority fees

I have tested my transactions with 10k, 100k, 200k lamports priority fees. I am unable to come to any conclusions that setting higher priority fees will optimise the time it takes. I am getting varied...

View Article


Image may be NSFW.
Clik here to view.

Join the Soliiverse Team: Community Manager and Mobile Developer (iOS &...

WANTEDMobile Developer (iOS & Android)Community Manager (DE,EN,ES)Soliiverse Solana Web3 Game - PRESALE LIVEFrom JUL 15 to AUG 15✅ Dev Team from Europe✅ No Toxic Community.👇🏼Join Our...

View Article

Access violation in unknown section at address 0x0 of size 8

I'm encountering Access violation in unknown section at address 0x0 of size 8 error when I call my initialize instruction. Here is the full error.Message: Transaction simulation failed: Error...

View Article

"Signature verification failed" error while creating an account

I am trying to create an account but I get an error while creating it.const provider = anchor.AnchorProvider.env();anchor.setProvider(provider); const newAccountKeypair =...

View Article
Browsing all 7881 articles
Browse latest View live


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