Questions tagged [cli]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
41 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
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 ...
Caesar Cipher's user avatar
0 votes
2 answers
38 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
299 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,150
3 votes
1 answer
62 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
5 votes
1 answer
282 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
  • 866
2 votes
1 answer
45 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
0 votes
3 answers
696 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
65 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
396 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) ...
rust_everywhere's user avatar
1 vote
1 answer
32 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
244 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
rust_everywhere's user avatar
1 vote
1 answer
181 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
rust_everywhere's user avatar
3 votes
1 answer
62 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
28 views

Ledger Nano X causing error when running sugar PLEASE HELP very Aggravating!

i keep getting this errror ive used sugaR BEFOR BUT NOT WITH A HARDWAQRE WALLET If anyone can hellp me out that would be awesome? error under arrow | | \ / v Error running command (re-run needed): ...
Patrick Keene's user avatar
1 vote
1 answer
49 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
40 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: ...
rust_everywhere's user avatar
4 votes
1 answer
297 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
  • 117
1 vote
3 answers
228 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
396 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
92 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
1 vote
1 answer
83 views

What is the best way to install Solana CLI on Windows 10/11 WSL2?

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
417 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
467 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
94 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
37 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
35 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
30 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
119 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
54 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
88 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
  • 682
0 votes
3 answers
97 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
  • 682
1 vote
1 answer
117 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
0 votes
1 answer
252 views

How do you convert the byte array returned as "Data" for a given instruction into a human-readable form?

I am currently looking to query historical transaction data for specific programs/wallets using the Solana CLI. The command I'm using, as an example, looks like this: solana transaction-history --show-...
m2sa's user avatar
  • 3
2 votes
1 answer
53 views

`solana stakes` CLI command

Here I have the results from the solana stakes <insert validator> CLI command. { "stakePubkey": "47YYxhvHBg2RwDRMFnTh3v2x9wiBp4GwkV3yewNZLsw9", "stakeType": ...
Popski's user avatar
  • 63
1 vote
2 answers
123 views

Track Delegators for a particular Validator

I'm currently looking for a way to track delegator activity for any particular validator. I'd like to run this locally and use some form of API/RPC call to access the data. Basically, I don't ...
Popski's user avatar
  • 63
2 votes
1 answer
481 views

How do I import and export a wallet keypair generated from CLI to a wallet provider like phantom or solflare?

How to Import and Export Wallets between CLI and Wallet providers? How do I export my wallet keypair generated from the Solana CLI and import it into a wallet like phantom or solflare? And how to ...
DonnySolana's user avatar
3 votes
2 answers
49 views

How to distinguish between types of functionality provided by Solana CLI and Solana JSON RPC API?

As I study the different low level tools provided that enable us to interact with the Solana networks, some functionality appears to be found in the Solana CLI that is not available in the Solana JSON ...
OCDev's user avatar
  • 682
5 votes
1 answer
169 views

"Error: no device found" when using Ledger Nano S Plus with Solana CLI

The Solana CLI tools are unable to detect a Ledger Nano S Plus hardware wallet. What do I need to do to make it work? $ solana -k usb://ledger?key=0/0 address Error: no device found
trent.sol's user avatar
  • 4,225