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

Transaction simulation failed: Error processing Instruction 0: invalid...

I just follow Mint Token (Lab) course this my code:import { mintTo } from "@solana/spl-token";import { getExplorerLink, getKeypairFromEnvironment,} from "@solana-developers/helpers";import {...

View Article


Existing tool to verify LLM output on-chain?

I am building a prediction application that requires some non-biased "judge" to compare different pieces of text. I'd like to use an LLM as part of this process, but obviously would need some way to...

View Article


Anchor build dependency issue

anchor builderror: not a directory: '/home/emperor/.local/share/solana/install/releases/1.18.18/solana-release/bin/sdk/sbf/dependencies/platform-tools/rust/lib'I have tried to install the latest...

View Article

Using dev guide for updating account state fails: cannot index into a value...

Following this article: https://solana.com/developers/courses/native-onchain-development/program-state-management#8-update-account-dataI want to update an account state:struct AccountData { events:...

View Article

Solana Durable Nounce in Python

Could someone share an example how to use durable nounce in Python. Currently, my use case is that I want to create a limit order to be execute later on, but I want to use connect wallet to allow the...

View Article


what the numbers in the array indicate?

I work with decoding data. I use the @solana/spl-token package for that.sometimes I get the TokenInvalidInstructionKeysError errorI have this code ts. as keys I provide an array of keys that I have...

View Article

RangeError: encoding overruns Uint8Array

I am getting this error when combining two sets of swap instructions into one, can anyone elaborate on what causes it? ThanksRangeError: encoding overruns Uint8Array

View Article

TypeScript error in ResolvedAccounts for Anchor program

So I've written a small program that builds and deploys correctly. The initialize function also works.But now I'm trying to create a Lottery, and TypeScript keeps repeating type error; the error...

View Article


How do I rate limit and explicitly perform a JSON-RPC batch request?

I noticed in the library README for the experimental web3.js SDK that two of the motivations for the API design are:Solana developer ‘epicfaace’ wanted first-class support for automatic time-windowed...

View Article


How can I find a Solana transaction based on date/ time, without knowing the...

I'm looking to ID a particular buy on Solana, based on a date/ time from 8 days ago. I know the amount and approx time. I'm hoping to find the coin this person bought. I'm able to figure out a block to...

View Article

Error in sending transaction using Jito-ts bundler

This is the initial stage in sending lamports, will try to send a bundle later on// USE npx ts-node script.ts to run this .tsrequire("dotenv").config();// import { searcherClient } from...

View Article

How to add metadata for Token program

Maybe I need some guidance to really understand the program, I hope you will help. Thank you very muchcurrently i have token program and i need to add metadata , can you show me how to do ituse...

View Article

Best and easiest way for me search for tabsactions to find forgottten wallet?

I have funds in a Solana SOL wallet and I cant remember what wallet. It shows up on one of my accounts, with date, time and amount. What would be the best and easiest way for me to search and to find...

View Article


Image may be NSFW.
Clik here to view.

Anchor tests failing

I just finished following along with Project 3, which includes actions and blinks to the peanut butter voting project. At the very end, we had to anchor clean and anchor test to have it clear its cache...

View Article

Connect to deployed anchor program using @coral-xyz/anchor library?

I got some information about blinks actions, it's great I understand how it works, but now I want to use blink actions to connect to the program I deployed on devnet. I wonder if connecting to idl is...

View Article


How to get the current time inside a program? (not using Anchor)

Is there a way to get the current time as specified by the system running the node?Any call like that panics:let start = time::OffsetDateTime::now_utc();

View Article

How to check how much time took the program invocation?

Followup question of: How to get the current time inside a program? (not using Anchor)The idea is to record a timestamp by the RPC client before sending off a transaction and then, inside the program,...

View Article


Solscan doesn’t show token name and logo

This is pump.fun launches tokenhttps://pump.fun/8KDsEUE3NdafcCVPqKrMrPfqh3oT4FzcxsYjwbMqpumpOn Solscan it’s not showing token name and logo which is weird.Ca :...

View Article

Minting a custom token

The PlanUsing anchor, create a custom program to implement a whitelisting feature for a new token.I already have written the logic for that in anchor, but it's not even part of the story here.I want to...

View Article

Serialising/deserialising data on android

I am currently going though the Solana development course and I try to adapt what I learn onto an Android application. Everything is going great so far but now I am stuck when I try to...

View Article
Browsing all 7994 articles
Browse latest View live