Skip to main content

Questions tagged [cli]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
22 views

Does the cli command spl-token support priority fees?

Does the spl-token cli package currently support setting priority fees?
Sal Samani's user avatar
1 vote
0 answers
44 views

I can't buy my tokens in mainnet from another wallet

I can't buy my tokens in mainnet from another wallet. The spl-token mint command returns the following error: Error: Client(Error { request: Some(SendTransaction), kind: RpcError(RpcResponseError { ...
AREW's user avatar
  • 33
0 votes
0 answers
33 views

Error: AccountNotFound: on Solana CLI

So I setup Solana CLI on Ubuntu (Windows sub system WSL2). I started up my solana-test-validator Then I opened up a new Linux terminal instance and set solana config set --url localhost Finally I ...
Mark's user avatar
  • 33
0 votes
2 answers
79 views

Can't mint any token 2022? I tried minting 60,000,000 tokens but only 18 million were generated and when I try minting more I get an error

Error: Client(Error { request: Some(SendTransaction), kind: RpcError(RpcResponseError { code: -32002, message: "Transaction simulation failed: Error processing Instruction 0: custom program error:...
Keola's user avatar
  • 63
2 votes
2 answers
228 views

List all funded Solana addresses

I'm trying to get a full list of all funded Solana addresses. I have a synced validator node and tried running solana-ledger-tool accounts -l ledger --no-account-data I do get a list of addresses, ...
Or Weinberger's user avatar
0 votes
0 answers
36 views

Error When Creating SPL Token Account: Incorrect Program ID for Instruction Body:

I'm new to Solana development and have encountered an issue while trying to create an SPL token account on the devnet using the SPL Token CLI. After creating a new SPL token, I attempted to create a ...
david's user avatar
  • 1
0 votes
1 answer
207 views

Cannot create account for a token in CLI

I've tried three times and always get the same error: spl-token create-account oreoN2tQbHXVaZsr3pf66A48miqcBXCDJozganhEJgz Creating account 28AAsPi2C7PBk8nLqC61t7TEUtweqW5tT2rzGHf9fjtq Error: Client(...
Shoemaker's Apprentince's user avatar
0 votes
1 answer
248 views

Solana CLI Transaction Timeout Error

I have been trying to learn the ins and out of the Solana CLI interface to better understand the chain but I keep running into a wall when I attempt to send SOL using CLI. I created my keypair and ...
Chase Bryndal's user avatar
0 votes
2 answers
261 views

how to get transaction details by having the signature?

I want to know how to get transaction data like [from address] [to address] [amount] by providing the signature of the transaction. if it's by curl to get data from SOLANA main network API or SOLANA ...
Citadel King's user avatar
3 votes
4 answers
684 views

Anchor 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 ...
Morgandril's user avatar
1 vote
2 answers
98 views

I get an error when deactivate a stake account

I get this error SendTransactionError: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: invalid instruction data at Connection.sendEncodedTransaction (C:\...
Justin Lavoie's user avatar
0 votes
0 answers
126 views

How to use "spl-token set-transfer-fee" CLI function in JS?

I noticed there is CLI function in SPL-token library for setting transfer fee but this function is missing from javascript SDK. CLI: https://github.com/solana-labs/solana-program-library/blob/master/...
LubWn's user avatar
  • 13
3 votes
1 answer
28 views

How to add hardware wallet support to a Rust CLI?

I'm currently writing the CLI for the Squads Protocol v4 program in Rust and would like to add support for Ledger signing. Right now, on CLI tx execution, you can specify a keypair directory of who ...
valentinmadrid's user avatar
0 votes
2 answers
123 views

forgot to save the mnemonic(bip39) when generating wallet from cli

i used generated keypair output to file so there are only bytes that are saved and got my public key but i still can't got my private key. Any help or hint how can i solve this ?
PandaKungFuu's user avatar
0 votes
3 answers
554 views

How to import a wallet keypair generated from CLI into a wallet provider like phantom?

When generating the keypair via CLI I get a .json file in the byte format. I'm aware the first 32 decimal numbers are the private key, and the last 32 are the public key But how do I import this into ...
pxl's user avatar
  • 5
0 votes
0 answers
25 views

Solana cli cannot be installed normally, the connection to the network timed out during installation

Solana cli cannot be installed normally, the connection to the network timed out during installation,Is it true that the service in China is not supported?And my code is wrong, saying I didn't enter ...
user6637's user avatar
0 votes
2 answers
1k views

newly created SPL-tokens are not displaying in phantom

I created some SPL-tokens via spl-token create-token ..., and applied some metadata (name, symbol, description, image) via metaboss create metadata .... They appear correctly on solscan, but are not ...
Ivaldi's user avatar
  • 1
1 vote
2 answers
150 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 ...
Caesar Cipher's user avatar
1 vote
2 answers
69 views

Error on building sdk with solita on anchor-lang:0.28.0

No matching version is found by solita for anchor-cli: 0.28.0 on https://crates.io/crates/anchor-cli/versions , which gives error.
Athar Mohd's user avatar
4 votes
1 answer
1k views

How do you change your Solana CLI version?

If I want to change my Solana CLI version to an older version, how do I do that via the CLI?
Jacob Creech's user avatar
  • 3,844
3 votes
1 answer
480 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 ...
gxc's user avatar
  • 165
6 votes
1 answer
699 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 ...
Joe C's user avatar
  • 1,066
2 votes
1 answer
82 views

Error during installation

Installation fail of Solana CLI on Windows 11. Program 'solana-install-init.exe' failed to run: The file or directory is corrupted and unreadableAt line:1 char:1 + C:\solana-install-tmp\solana-install-...
Yasushiko's user avatar
1 vote
1 answer
124 views

What RPC method / CLI command to use to query validators' commission changes?

How to get validators' commission changes along with timestamp and epoch number. What RPC method and/or CLI command to use for that? Thank you.
CoffeeisReady - GateOmega's user avatar
1 vote
3 answers
5k 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
John sparrow's user avatar
0 votes
1 answer
280 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)
gauravtechie's user avatar
3 votes
1 answer
927 views

Error: Non-base58 character

I upload the program to the network, but when interacting it issues this error Error: Non-base58 character at Object.decode (/mnt/c/Users/Mateo/block3/node_modules/base-x/src/index.js:111:11) ...
Mateo Lafalce's user avatar
1 vote
1 answer
79 views

Running "spl-stake-pool create-pool" on localhost gives error "Transaction simulation failed: Attempt to load a program that does not exist"

So I created a folder and started a local validator on it running solana-test-validator. In another terminal I set my url to localhost and created a new keypair file, which had enough SOL in it. I ...
Anish Mukherjee's user avatar
1 vote
1 answer
457 views

Error processing Instruction 0: sum of account balances before and after instruction do not match

I got this error. Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: sum of account balances before and after instruction do not match
Mateo Lafalce's user avatar
1 vote
1 answer
455 views

Error: Account allocation failed: RPC response error -32002

Error: Account allocation failed: RPC response error -32002 Transaction simulation failed: Blockhash not found I got this error deploting the program in devnet
Mateo Lafalce's user avatar
3 votes
1 answer
144 views

Creating Stake Account using CLI

I am using the following command using the reference link as https://docs.solana.com/cli/delegate-stake. However, I am getting an error - "Error: Dynamic program error: missing signature for ...
Manish D.'s user avatar
1 vote
0 answers
39 views

Ledger Nano X 'Failed to read keypair file' error when running sugar

I keep getting this error - I've used Sugar before, but not with a hardware wallet: Error running command (re-run needed): Failed to read keypair file: usb:ledger\?key=0, The filename, directory name, ...
Patrick Keene's user avatar
1 vote
1 answer
82 views

Solana Script in Python [closed]

I am writing a python program using solana CLI commands as strings: TransW1_W2 = 'solana transfer --from ~/[WALLET1]/my-keypair.json [WALLET2 ADDRESS] 1 --with the rest of the command... Notice, after ...
Allen's user avatar
  • 11
1 vote
1 answer
55 views

unable to get packages from source

warning: please specify `--format-version` flag explicitly to avoid compatibility problems error: failed to download `lock_api v0.4.9` Caused by: unable to get packages from source Caused by: ...
Mateo Lafalce's user avatar
4 votes
1 answer
674 views

Access Phantom account with Solana CLI

I have created a Solana account with Phantom App. How can I access my Phantom account details and balance via through Solana CLI? Please list down all the libraries also required for it.
Rajat's user avatar
  • 137
1 vote
3 answers
668 views

Multiple Solana private keys, how do I check each one for a balance?

I have 100s of solana private keys for a service I'm building. How do I check each one for a balance without having to import them to the solana-cli each time? Is there a simple command to check a ...
Patoshi パトシ's user avatar
2 votes
1 answer
884 views

Solana API RPC Devnet query - cluster version query failed

I have my config RPC URL set as https://api.devnet.solana.com When I do a solana balance in CLI, I get Error: RPC request error: cluster version query failed: error sending a request for URL (https://...
Mike Wilcox's user avatar
2 votes
2 answers
128 views

NFT batch transact

I have a pool of NFTs (more than 50, with the same candy machine ID) and want to transfer all with smart contract written with anchor with one instruction. I've read, one transaction can pass only 33 ...
Ethelana's user avatar
2 votes
2 answers
256 views

What is the best way to update the Solana CLI?

I understand that we can just install following the commands here: https://docs.solana.com/cli/install-solana-cli-tools But is there a way to install Solana CLI where it is easily updatable in the ...
Patoshi パトシ's user avatar
3 votes
1 answer
671 views

solana program deploy failed with "Blockhash expired" message

solana program deploy command to devnet fails constantly with: Blockhash expired. x retries remaining My Setup: working against devnet. command includes all workarounds documented: solana program ...
Tom Peres's user avatar
2 votes
1 answer
1k views

How to update authority on a rugged project?

The project I'm working on has been hijacked and rugged by the ex-developer who had the authority account. Long story-short, he minted new tokens, then he emptied the liquidity pool. We still have the ...
enki's user avatar
  • 23
4 votes
1 answer
216 views

Error closing token address with the CLI

Why do I get an error when I try to close a token address? spl-token close (token address) Error: Account could not be parsed as token account: pubkey= (my Ledger address) This is the same Ledger ...
Kent-I B's user avatar
1 vote
0 answers
56 views

How can I get a hash list of unverified NFT's created by a specific update authority or creator address from the CLI?

How can I get all of the unverified NFT's via the CLI from a recent airdrop? By creator address or update authority because there's no candy machine. I need a list so I can sign/verify, or null them. ...
OneFishTaco's user avatar
1 vote
1 answer
132 views

Can someone give a real world example of how a Solana transaction would look like?

I see the following documentation on: https://docs.solana.com/cli/transfer-tokens#send-tokens solana transfer --from <KEYPAIR> <RECIPIENT_ACCOUNT_ADDRESS> <AMOUNT> --fee-payer <...
Patoshi パトシ's user avatar
1 vote
2 answers
36 views

Is there a solana cli for the terminal like eth-cli?

I have a solana private key and I want to make a send transaction and check balances with it. Is there a Solana cli command that can do this? eth-cli works well with ethereum since I can pass in the ...
Patoshi パトシ's user avatar
4 votes
1 answer
264 views

Problem with installing Solana CLI on Windows 11

C:\WINDOWS\system32>curl https://release.solana.com/v1.10.32/solana-install-init-x86_64-pc-windows-msvc.exe --output C:\solana-install-tmp\solana-install-init.exe --create-dirs % Total % Received % ...
SolMind's user avatar
  • 43
3 votes
1 answer
101 views

Compile a statically linked Solana binary

How does one compile Solana statically linking C libraries? If I run ldd on a Solana binary, I get: $ ldd $(which solana) linux-vdso.so.1 (0x00007ffd70517000) libdl.so.2 => /lib/x86_64-...
Joel De Jesus's user avatar
3 votes
2 answers
232 views

How to measure the network's current Transactions Per Second (TPS)

What are the ways to measure the current Transactions Per Second (TPS) of the network? I studied and experimented with the solana CLI, but was unsure of a clean way to get a reliable measure at a ...
OCDev's user avatar
  • 742
0 votes
3 answers
401 views

How can I re-create a File System Wallet given a seed phrase (and passphrase)?

If I have my 12 words (and passphrase) and I want to re-create the json file that represents the wallet, what are the steps to accomplish this? Edit: The method I used to create the wallet is as ...
OCDev's user avatar
  • 742
1 vote
1 answer
299 views

Track Solana Validator Rewards

How can I track rewards for a validator? I've been looking at various resources: https://laine-sa.medium.com/solana-staking-rewards-validator-economics-how-does-it-work-6718e4cccc4e https://docs....
Popski's user avatar
  • 63