Questions tagged [solana-cli]
104 questions
0
votes
2 answers
Solana CLI: Use an other Phantom address
I configured Solana CLI with a wallet address and now I want to change it.
I did the following steps in order to swap to the new Phantom address I want to use :
$ solana-keygen recover 'prompt:?key=6/0' --outfile ~/.config/solana/id.json
then I…

J.erome
- 688
- 7
- 26
0
votes
1 answer
Solana: ComputeBudget in Typescript SDK
I am currently trying to increase the Compute-Budget on my Solana Program on devnet. I am using solana version 1.9.9.
I have checked the anchor discord, and found this implementation to request a larger compute-budget. however, when I run this…

DaveTheAl
- 1,995
- 4
- 35
- 65
0
votes
1 answer
Anchor test without AVX2 CPU
After initialising a project with anchor init, when I run anchor-test, it gives me this message at the last.
Unable to get recent blockhash. Test validator does not look started. Check .anchor/test-ledger/test-ledger-log.txt for errors. Consider…

Snehendu Roy
- 68
- 3
0
votes
1 answer
Candy Machine - Unable to upload files
I am following a tutorial and am on the step where we are uplaoding the metadata and files. The tutorial tells me to use the the following command:
npx ts-node js/packages/cli/src/candy-machine-v2-cli.ts upload ./assets --env devnet --keypair…

Yusuf BASER
- 53
- 1
- 4
0
votes
0 answers
Solana genesis accounts
What is purpose of these accounts to be hard coded in the code. What If I want to run my own local instance of solana validator, will these accounts affect any part of my local instance.

salmanbao
- 67
- 1
- 5
0
votes
2 answers
Solana: Parse Token Data
How does one parse the data in an SPL token account? It contains a binary blob and I'd like to get the token type and number of tokens.
An acceptable language is solana-cli, web3.js, or solana.py. I'm looking for any solution.

Test
- 962
- 9
- 26
0
votes
1 answer
unable to send API request to Solana devnet
I'm doing the following tutorial of creating tokens on Solana.
https://spl.solana.com/token
and it seems that all requests to Solana devnet are failing
$spl-token create-token
Creating token 2rxgzZ1tk692aZJXDz8NhTkVXQWB396Z3L21nTUYWCFi
error sending…

Nayana
- 1,513
- 3
- 24
- 39
0
votes
1 answer
Creating FS wallets on solana using JSON RPC
I'm new to Solana and trying to create FS wallets using JSON RPC API. I read about solana CLI interface and can generate new FS wallets using solana-keygen new . But now I'm trying to do the same using JSON RPC. I've…

Saad Saadi
- 1,031
- 10
- 26
0
votes
1 answer
Getting error after running 'anchor test' after creating my solana program
Created a basic Solana program using 'anchor init'.
When I run 'anchor test'
I get the following errors:
Although, the file Cargo.toml exists in C:\Users\Umair\myepicproject\programs\myepicproject.
What could be the issue?

user2918814
- 11
- 2
0
votes
1 answer
Error when trying to build rust project with cargo build-bpf
I am currently Solana through a tutorial. After creating the project, adding dependencies and writing my program, I am supposed to run the following command to create a build of my Rust code that is suitable to deploy to Solana
cargo build-bpf…

Andrew Efurhievwe
- 71
- 1
- 1
- 5
0
votes
2 answers
BPF SDK path does not exist
I'm following the Anchor docs here, but I keep getting this error...
BPF SDK path does not exist: /Users/herbie/.cargo/bin/sdk/bpf: No such file or directory (os error 2)
I ran ls -al /Users/herbie/.cargo/bin and got this output:
total…

Herbie Vine
- 1,643
- 3
- 17
- 32
0
votes
1 answer
Is it possible to transfer minting authority of a Solana Token to another account using CLI?
I created a fungible token on mainnet using a file system wallet, which I understand is not secure if I were wanting to do anything substantial. I also have my rent-exempt amount of SOL tied up in that file system wallet (not much, but not nothing…

Razorback2424
- 39
- 3
0
votes
1 answer
How do I calculate TVL on-chain?
I am working on a anchor / solana program that provides liquidity to a number of pools, including saber.so and invariant.app. During the swap, I need to calculate the TVL, to provision a token at a fair exchange rate.
My question is: what is the…

DaveTheAl
- 1,995
- 4
- 35
- 65
0
votes
1 answer
Create SPL staking on Solana Ecosystem
I'm newbie in programming, so the questiong is: is there any guides how i can create staking pool on solana ecosystem for created token? And what is the steps?

faaer
- 1
0
votes
2 answers
Commitment Level
I've written a basic rpc client which polls the state of an Solana account to look for a specific condition (i.e. a unique int64 Id being written to it). When the condition arises, I call a smart contract which takes the same account as a mutable…

Andy Johnson
- 189
- 3
- 10