Questions tagged [solana-cli]
The solana-cli tag has no usage guidance.
133
questions
1
vote
1
answer
16
views
How to get all controlled programs or tokens by an specified account?
Can I see by API or something else all the programs or tokens when an specified account has authority to mint or update?
0
votes
1
answer
31
views
I get this error while entering my secret seed phrase on the solana CLI
I got this error while entering my secret seed phrase after pressing enter on the solana CLI: Error: Dynamic program error: Can't get mnemonic from seed phrases
I also double checked that my secret ...
1
vote
1
answer
71
views
How to update token name in solana token 2022 program
i was trying to update name and symbol etc i tried enable metadata and update and when i use spl-token display in extensions it shows fine but on solscan or wallets name is unrecognized token how to ...
2
votes
0
answers
25
views
How to transfer unlocked sol from account through CLI Wallet
I received some locked sol on a CLI wallet. The sol has unlocked recently and I was trying to transfer the sol to another wallet.
I am using this command:
solana transfer --keypair ~/keypair.json --...
0
votes
1
answer
26
views
can't send sol on dev address
hi i am new to solana with the aim to create spl-token but when i create 2 keypair, one for contract address and two for holding spl token.
When I wanted to top up the gas fee I got a deposit error on ...
1
vote
1
answer
40
views
split-stake into derived account using --seed
What is the proper syntax to split some active stake into a new stake account using the --seed flag? I have some ledger wallets I'd like to split stake out of one of the stake accounts and have the ...
1
vote
3
answers
66
views
Call a function in a smart contract from solana cli
I am new with Solana development
I have deployed a program to localnet. Now I want to interact with it (call functions)
My question is, is it possible to call a function on a program from the Solana ...
1
vote
1
answer
43
views
Mainnet node lags behind after migration to v1.16.17
We are running a solana node since around April 2023. It was running fine since that time except some minor issues. But it looks like since the migration to the v1.16.17 it’s very difficult to make it ...
0
votes
2
answers
46
views
solana sign-offchain-message: what input format to use?
The Solana CLI has a new command solana sign-offchain-message, which has the following usage from --help:
solana sign-offchain-message [FLAGS] [OPTIONS] <STRING>
But what is the format of this &...
1
vote
2
answers
140
views
Creating my own token on Solana Blockchain in 2023
I created and minted my personal token on solana, but it has no name. The repository on github is closed and I don't understand how to verify my token at all. Tell me please.
Here is my ready-made ...
2
votes
2
answers
57
views
How can I close a program on solana?
I am trying to close my program. When I try to close it I get an error that the flag —programs should be —buffers. But it is not a buffer it is a program. How can I close it?
2
votes
1
answer
42
views
Verify offchain message in golang
I'm trying to verify the offchain message signed by solana cli in golang. but it doesn't work.
Step i did:
base58 decode the address to get the public key
base58 decode the signature to get the ...
2
votes
2
answers
38
views
Unable to run solana Hello World program in WSL
I have been following Josh's DevBox video to get started with Solana. In WSL environment, I did all the process, but at the end while executing npm run start, it comes up with Segmentation Fault.
Any ...
1
vote
1
answer
35
views
I am having problem in installing solana tool in my PC. ( windows 10 )
So, when i was using this following code while installing :
C:\solana-install-tmp\solana-install-init.exe v1.16.14
Then I got the error showing "Your system cannot execute this program" or ...
0
votes
2
answers
26
views
Error upon trying to use SolanaCLI on a local enviorment by following steps from the docs
Upon, trying to follow the steps as stated on this link, I receive the following errors, I followed all the steps correctly and tried all the available work arounds for the same, none of them seem to ...
0
votes
0
answers
21
views
How can i generate my stake account?
I staked some Solanas in my trusty wallet. On previous occasions it appeared in the wallet itself, but not this time. As per the transaction details my Solana has been transferred to another new ...
0
votes
1
answer
48
views
Error: Unable to open program file: No such file or directory (os error 2)
I am trying to deploy a hello world program on the blockchain through the solana cli. I tried running cargo build-bpf , after running the program the deploy directory is not downloaded so that I can ...
1
vote
1
answer
71
views
Super slow deployments when using Solana CLI 16.x
My deployments are extremely slow since I have updated my Solana CLI to v16.8 but when I run:
anchor deploy
I get:
Blockhash expired. 4 retries remaining
Blockhash expired. 3 retries remaining
⠁ 0....
0
votes
1
answer
42
views
How do I breed to NFT on Solana?
I would like to breed NFTs on the Solana blockchain. Does Metaplex offer a feature for breeding two NFTs, or can we create a custom Rust program for this purpose?
2
votes
0
answers
25
views
Why doesnt solana-program-test work with VersionedTransaction?
Solana version = 1.16.8
rustc -V = 1.69.0
solana-cli = 1.16.8
The transaction will process successfully if it is type Transaction but not if it is type VersionedTransaction.
I need to use a ...
0
votes
1
answer
34
views
AccountNotFoundError: The account of type [BidReceipt] was not found at the provided address
I am encountering errors when using the Metaplex SDK. When I attempt to list an NFT on the auction house and place a bid on an NFT, I receive these error messages. The transactions appear to go ...
0
votes
1
answer
30
views
Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: incorrect program id for instruction
this is my code and error is occur when i calling new method :
import * as anchor from "@coral-xyz/anchor";
import { Program } from "@coral-xyz/anchor";
import { Starter } ...
2
votes
1
answer
63
views
Global variables in a Solana program
Is it possible to create global mutable variables in a Solana program? I want to have a global mutable variable that stores some integer, and I'm getting a compilation error when doing so
1
vote
2
answers
176
views
Get account public key in an Anchor program
I got an Anchor program and there is some functions that I want to restrict their access in order to create some particular privileges in the program, so I want to grab the caller's account/address ...
1
vote
2
answers
52
views
Searching for a Solana community
I'm a Solana developer and I'm having some problems with Anchor and deploying to the devnet, I'm looking for a Solana development community(Discord/Twitter etc..), do you have any suggestions? Thank ...
1
vote
0
answers
35
views
'Program failed to complete: Instruction passed to inner instruction is too large (12884933932 > 1280)', Getting this error [duplicate]
I'm getting this error
Program logged: "Instruction: CreateVester"
> Program consumed: 5565 of 200000 compute units
> Program returned error: "Instruction passed to inner ...
3
votes
4
answers
475
views
Error when anchor build - package `constant_time_eq v0.3.0` cannot be built
I'm trying to build using anchor but there seems to be this error
error: package `constant_time_eq v0.3.0` cannot be built because it requires rustc 1.66.0 or newer, while the currently active rustc ...
3
votes
1
answer
65
views
Change config file location in CLI
My current config file is at ~/.config/solana/cli/config.yml, how do I switch it to use ~/.config/solana/cli/some.other.config.yml?
So far, I've only been able to do it on a per-command basis using ...
2
votes
1
answer
102
views
"cargo build-bpf" doesn't work on macOs
When I run cargo build-bpf I got an error:
Failed to execute /Users/xh/.cache/solana/v1.37/platform-tools/rust/bin/rustc: No such file or directory (os error 2)
But I ensure my env is ok. Here is my ...
1
vote
0
answers
36
views
Can we verify BLS signature in Solana Program.?
Is it feasible to verify the BLS signature in the Solana program. I am exploring the "blst" crate of rust as of now but it would be better if I am aware of the feasibility beforehand and ...
5
votes
1
answer
286
views
Mac: `platform-tools` 1.16: `cargo build-sbf` error: failed to run custom build command for `blake3 v1.4.0`
I seem to be having trouble building a Solana program with CLI version 1.16 on macOS Ventura 13.4.1. It appears I have some kind of clang linker issue, but I have not been able to debug just yet.
This ...
1
vote
1
answer
23
views
Parallel Transaction Sending on Program Deploy
After upgrading to Solana v1.16.1 CLI, program deploy command does not send the transactions in parallel leading to Blockhash not found timeouts. I have to downgrade to v1.14.19 to resolve. Not sure ...
4
votes
1
answer
235
views
Why does `solana program show <address>` and `solana accounts <address>` return different values for the `data length` and `balance` fields
Originally asked in the SolanaU discord.
Is there a reason why the Solana CLI will return different values for solana program show and solana account?
solana program show ...
1
vote
1
answer
31
views
Hello, How can I use the solana/web3.js library to access the data returned by the command solana validators --output json?
How can I use the solana/web3.js library to access the data returned by the command solana validators --output json?
2
votes
1
answer
43
views
Solana Node syncing issue
I have setup a solana node on my ubuntu server , I am using devnet Url in my solana config file , on cli it is showing correct block-height transactions-count and everything is working according to ...
1
vote
0
answers
732
views
IOT token no adding to my Helium wallet when I claim rewards
I'm trying to claim my IOT rewards from my hotspots and when I click on "Claim Rewards" within the helium wallet the rewards message appears to say "Rewards Claimed!" after about a ...
2
votes
1
answer
37
views
What is the proper CLI command to transfer Solana delegated tokens?
Account B delegated authority to Account A for n tokens. Now Account A wants to transfer tokens to Account C using delegated amount. CLI command is needed.
I tried running the below command. the ...
4
votes
3
answers
484
views
Error when anchor build - package `toml_datetime v0.6.2` cannot be built
I'm trying to build using anchor but there seems to be this error
error: package `toml_datetime v0.6.2` cannot be built because it requires rustc 1.64.0 or newer, while the currently active rustc ...
0
votes
2
answers
183
views
hi, i want add metadata to my solana token
I have been trying to update the metadata for my Solana token, but I'm encountering difficulties. I have tried two different websites and even attempted to hard code the metadata, but none of these ...
0
votes
0
answers
79
views
How to connect phantom wallet to certain site?
Hello how can i connect phantom wallet to certain sites with sol.py? I can't find any help materials to solve my problem when it comes to do it in pyth
0
votes
1
answer
126
views
Solana multiple spl tokens transfer python
I managed to send some USDC-dev token on the devnet with the following code.
Is there a way to send more than 1 transaction with something like Transaction.add()
Here is the working code for 1 ...
1
vote
1
answer
278
views
Anchor Build Error: failed to select a version for the requirement `aho-corasick = "^1.0.0"
error: failed to select a version for the requirement `aho-corasick = "^1.0.0"`
candidate versions found which didn't match: 0.7.20, 0.7.19, 0.7.18, ...
location searched: crates.io index
...
0
votes
0
answers
31
views
I have a problem with a non-base58 error
I'm trying to create a token but I'm getting the following error message.
Error: Non-base58 character
at Object.decode (C:\Users\luukh\OneDrive\Bureaublad\Solana-Token\node_modules@solana\web3.js\...
2
votes
2
answers
34
views
Does the Solana CLI support setting a priority fee?
I am a bit confused in that ChatGPT is reporting that the Solana CLI supports setting a priority fee using the --priority option like so:
solana transfer 10 SOL --from <SOURCE_WALLET_ADDRESS> --...
0
votes
3
answers
747
views
I want to add metadata to the Solana token on cli
I have created a token in solana using the cli but now I'm unable to add metadata can someone please help me.
https://solscan.io/token/Gy5oaTpM6tkc9aj4BZkjMXHaWm2U16CsfBtL4jBMKztX
0
votes
1
answer
69
views
How do I delete CLI wallet?
Folks! I imported the backpack wallet I created on CLI. I am trying to figure out how to delete it from my system (so that it's only in the backpack)
0
votes
3
answers
128
views
how to view lifetime stake account rewards?
I run a validator and have a delegator asking how to see lifetime rewards earnings for his stake account.
I have used solana stakes --withdraw-authority <wallet pubkey> to show stake account ...
1
vote
1
answer
96
views
Illegal instruction (Mac M1 Max 13.3)
I've scoured discord and stack exchange but haven't found any solution that works for me.
When I run a local validator (Solana test validator built from source), I get error:
Ledger location: test-...
2
votes
1
answer
506
views
Error: RPC request error: cluster version query failed: error sending request for url (http://localhost:8899/): error trying to connect
Error: RPC request error: cluster version query failed: error sending request for url (http://localhost:8899/): error trying to connect: tcp connect error: Connection refused (os error 61)
Whenever I ...
1
vote
1
answer
72
views
Setting up a gossip spy
For someone not running a validator, what would be the best method to listen in on gossip, getting staked amount, block, etc. "solana gossip" is giving me some of that information but not ...