Questions tagged [solana-cli]
104 questions
2
votes
1 answer
Getting error: failed to download `solana-frozen-abi v1.9.9` while running anchor test on macbook m1
Guys while i was running anchor test on macbook m1, i am getting this error. Does anybody have a fix for this.
BPF SDK: /Users/dhruvjain/solana/bin/sdk/bpf
Running: rustup toolchain list -v
Running: cargo +bpf build --target bpfel-unknown-unknown…

Dhruv D Jain
- 33
- 5
2
votes
3 answers
Solana localnet with ledger copied from mainnet-beta
I'm trying to test a program on localnet which makes numerous cross-program invocations (CPIs).
Is there an easy way to initialize a localnet cluster with all the accounts copied over from mainnet-beta?
I know there is a clone flag on the…

Ozymandias
- 2,533
- 29
- 33
2
votes
1 answer
Command line errors while using cargo build
I am trying to start a Solana project on Windows. When I run cargo build in cmd, it works fine; but for cargo build-bpf, I get an error:
BPF SDK: \\?\C:\Users\HP\.local\share\solana\install\releases\1.9.4\solana-release\bin\sdk\bpf
Can't get home…

Kgee
- 53
- 1
- 5
2
votes
1 answer
Is there any way to change the authority of a Solana Token?
I created a Solana token with a test wallet/account. Now I want to transfer authority to another account and delete the test one. Is there any way to do that?

Lucian Gabriel
- 164
- 2
- 11
1
vote
1 answer
solana-test-validator doesn't run
On mac 11.5.2
trying to run solana-test-validator doesn't work and throws next error in terminal
dyld: Symbol not found: __ZNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE7seekoffExNS_8ios_base7seekdirEj
Referenced from:…

Frolov Andrey
- 21
- 1
- 4
1
vote
1 answer
SendTransactionError: failed to send transaction: Node is unhealthy
I'm trying to send a transaction with a memo program inside it.
The problem appears on solana cli and web3 too.
This is the command:
solana transfer --from ./.cache/solana.json RECIVER_PUBLIC_KEY 0.00001 --allow-unfunded-recipient --url…

Sbardi fx
- 11
- 2
1
vote
1 answer
Difference between `cargo build` , `cargo build-bpf` and `cargo build-sbf`
I am new to blockchain and I am using solana/anchor/cargo/rust to build a project. I am confused about these commands. What is the difference between cargo build, cargo build-bpf and cargo build-sbf?

Inaara Kalani
- 265
- 7
- 24
1
vote
3 answers
How do I get the associated pubkey from my solana json keypair?
I'm trying to figure out how to get my pubkey that is the default account for my file system wallet. I know where the json file is located (i.e. ~/.config/solana/id.json) and of course I looked into it. It's just an array of numbers, I can probably…

DesignPatterns
- 11
- 1
1
vote
1 answer
Delegating additional stake to solana in the existing public key
Hello I have a stake account for Solana here is the link
https://explorer.solana.com/address/4EZRbSFYUQeuNCtY3Tv5tqprpTk9Ak7CZPzPsXKm1qLD/tokens?cluster=testnet
This is how I have created a stake account and funded some SOL to it
Create stake…

anish
- 6,884
- 13
- 74
- 140
1
vote
1 answer
How to connect to custom cluster with web3.js solana
i've made custom cluster of solana.
I'm trying to connect to it with web3.js like this:
const url = solanaWeb3.clusterApiUrl('http://x.x.x.x:8899/', false);
const solanaConnection = new solanaWeb3.Connection(url, 'confirmed');
but i'm getting this…

Singh
- 783
- 1
- 6
- 24
1
vote
0 answers
SOLANA Rent and Rent Exemption | Which accounts they are taking rent from
Hi I'm new to SOLANA Blockchain , While gazing through the charges inside Solana, I found there is a fee associated with transaction like , minting tokens , transferring them , creating token accounts etc.. But there is another charge called Rent…

insaneray
- 75
- 1
- 11
1
vote
1 answer
Setting up GenesysGo as RPC Host on Candy Machine V2
I am finalizing my first Candy Machine minting project using Candy Machine V2. I have read that its not a good idea to use the default https://api.mainnet-beta.solana.com host because it can't handle large amounts of traffic. I've update the Candy…

bschmitty
- 1,118
- 3
- 16
- 46
1
vote
0 answers
how to push json array on solana blockchain and get it using anchor project
How can I push json on the blockchain and get it using anchor project. I am trying to push simple json like this:
[
{
"text": "What is React?",
"code": "001",
"Options": ["Framework", "Frontend Language", "User…
1
vote
1 answer
How to change solana initial supply in own custom cluster?
The problem I'm working on is my team wants me to setup my own cluster with an initial supply of 400M sol. I have gone through the genesis module and found some genesis accounts. I couldnt really find the total supply or mint_lamports anywhere…

goutham reddy
- 13
- 4
1
vote
1 answer
solana Validator logs are not coming up
None of the Option work to enable the Solana logs are runtime
solana-validator --ledger /solana/ledger set-log-filter solana=info,solana_streamer::streamer=warn
solana-validator --ledger /solana/ledger set-log-filter…

anish
- 6,884
- 13
- 74
- 140