could not find `__client_accounts_contributor` in the crate root
Attempting to 'anchor build' a project and running into errors with the #[program] macro. Unsure exactly what could be causing these. Tried reading the compiler error index but it didnt seem to help in...
View ArticleInstructionFallbackNotFound. Error Number: 101. Error Message: Fallback...
Have a question related to custom program development. I've testing this programpub mod fluxtility { use super::*; pub fn buy_ticket(ctx: Context<Initialize>, lamports: u64) ->...
View Articleupdate rustc that anchor uses
After running cargo build-bpf I get the following error:cargo-build-bpf child: rustup toolchain list -vcargo-build-bpf child: cargo +bpf build --target bpfel-unknown-unknown --releaseerror: package...
View ArticleUnable to build a binary
Both anchor build and cargo-build-sbf throw:Warning: cargo-build-bpf is deprecated. Please, use cargo-build-sbfcargo-build-bpf child: /Users/usr1/solana/bin/cargo-build-sbf --arch bpferror: package...
View Articlesolana play ground - too much SOL for initial deployment and RPC error
I'm trying to deploy some program locally with solana playground, when trying to deploy the program on dev-net the initial deployment costs 4.40 SOL, and when requesting more than 1 SOL(with "solana...
View Articlecargo build-bpf rustc version
I'm trying to use "cargo build-bpf" on a simple rust file, I'm using the "solana_program" dependency and the next error occurs:"error: package solana-program v1.16.5 cannot be built because it requires...
View ArticleHow to get Mint Address of of SPL token using associated token account?...
I can get an associated token account knowing the mint address and wallet address with spl_associated_token_account::get_associated_token_address functionBut is it possible to get a mint address, when...
View ArticleSolana Helloworld example stuck on cargo build bpf without error message
I'm in the process of deploying the Solana helloworld example smart contract on Ubuntu 20.04. When running npm run build:program-rust, the package.json in the root of the repository states that this...
View ArticleCan anyone use SolGSN: Solana Gas Station?
I want to use SolGSN, where the user can't pay the gas fee like transferring the NFT. The admin has to pay the fee. However, this repository is outdated, and I've encountered several errors due to...
View ArticleIs it possible to have reflection tokens like safemoon on solona?
A reminder on how reflection tokens like safemoon work is every ones balance is simply an equation instead of a fixed number. That way everyone's balance can be instantly updated with no gas needed...
View ArticleAnchor compatibility issues
Whenever I try to run anchor build, I am greeted with a package incompatibility error, saying that my rustc toolchain version is too low (1.62.0-dev) but my toolchain is set to 1.75.0.Here's the...
View Articleerror: package `solana-program v1.18.1` cannot be built because it requires...
I tried setting up an Anchor project on my MacBook with an ARM processor, but I encountered an error. Here is step by step that i took% anchor init testprojectOnly x86_64 / Linux distributed in NPM...
View ArticleAnchor build says "cannot be built because it requires rustc 1.68.0 or newer"...
When I run anchor build or anchor test:error: package `solana-program v1.16.3` cannot be built because it requires rustc 1.68.0 or newer, while the currently active rustc version is 1.62.0-dev. But...
View Articlecargo build-bpf package error: `ahash v0.8.8` cannot be built because it...
I'm using a simple hello world solana program from https://moralis.io/how-to-write-a-solana-smart-contractsrc/lib.rsuse solana_program::{ account_info::AccountInfo, entrypoint,...
View ArticleCannot compile `solana-program` crate with new `sqlx` versions
For some reason when trying to compile a project having both sqlx and solana-program I get an error on package version mismatches, which is strange, because those should come from different crates and...
View Article"package solana-program v1.18.7 cannot be built" error [duplicate]
I have a new Rust project that gives the following error when I compile it.package `solana-program v1.18.7` cannot be built because it requires rustc 1.72.0 or newer, while the currently active rustc...
View ArticleHow do I fix "package solana-program v1.18.0 cannot be built because it...
When building an onchain program with cargo build-sbf using solana-program v1.18, I get the following error:error: package solana-program v1.18.0 cannot be built because it requires rustc 1.72.0 or...
View ArticleWhat's the benefit of using platform-tools compared to Rust's upstream...
The fact that Solana's CLI installer shipped (and still ships) with a nearly year-long outdated version of platform-tools has been a pain point with the previous Solana team I've worked with....
View ArticleAnchor Test fails with version error [duplicate]
Issue:I installed everything needed to start developing on Solana.I am trying to test a simple contract but when i run: anchor test, it errors out the following:error: package `solana-program v1.18.11`...
View ArticleI am getting a compile error: target not supported when trying to compile...
So I'm trying to compile my first Solana smart contract. It's this hello world smart contract:https://github.com/solana-labs/example-helloworldHere is my rustc and cargo...
View Articlekeep getting this error on a fresh ubuntu 24 lts, although my rustc version...
error: package solana-program v1.18.14 cannot be built because it requires rustc 1.75.0 or newer, while the currently active rustc version is 1.68.0-devEither upgrade to rustc 1.75.0 or newer, or...
View ArticleGetting error that I am using an older version of rust, but --version shows I...
Although my Rust is version 1.78.0 I constantly am getting this error when I do an anchor build:error: package toml_edit v0.21.1 cannot be built because it requires rustc 1.69 or newer, while the...
View Articlesolana contract rust error anchor build
use anchor_lang::prelude::*;use anchor_spl::token::{self, Mint, Token, TokenAccount, Transfer, MintTo};declare_id!("GTPh1tdHiMWVj3yBj2S2ZZftuLPEWPyQZ6Cy7g5ibM5K");#[program]pub mod puj {use...
View ArticleSolaan transaction delay
Is there any way that after a wallet signs a transaction I can delay the transaction from actually going through until I call a function or is this not possible, also open to work arounds.Thanks in...
View ArticleMempool transaction Stream
I want to listen to the Solana mempool for a MEV bot. I was checking out Jito for this purpose, but it appears to be deprecated. How can I listen to the mempool transaction information on Solana now...
View ArticleAnchor - Stuck with error SendTransactionError
I have been trying to write some custom contract in solana using Rust but always ending up with below error:Catch the SendTransactionError and call getLogs() on it for full details.at...
View ArticleHow do you get the Solana platform tools version? Or the `rustc` version used...
When building a Solana rust program, it does NOT use your normal system's rust compiler (rustc), instead cargo build-sbf uses the Solana "platform tools" under the hood which ships a separate version...
View Articlewhich versions of Solana SDK and Anchor are compatible with the stable...
which versions of Solana SDK and Anchor are compatible with the stable toolchain.? It appears that the current nightly toolchain you are using (nightly-x86_64-unknown-linux-gnu) does not support the...
View ArticleAnchor build says "cannot be built because it requires rustc 1.75.0 or newer"...
Anchor Verification Issue: Rustc Version Mismatch in Docker EnvironmentCommand Executedanchor verify 3MRKmmRZ6Fm4tvEEjBZcuGG7nxWVSYCJd83WzmAGqm8JProblem SummaryThe program build fails due to a rustc...
View ArticleHow to solve the cargo build-sbf error?
I have just started with rust and solana.Firstly, I created a solana program using the command:cargo init hello_world --libeverything ran fine, and then i read from the official docs, to build i ran...
View Article