Questions tagged [solana-cli]
104 questions
23
votes
3 answers
Import phantom wallet private key into solana CLI
I need to use a Phantom Wallet through the Solana CLI, but I'm unable to configure it.
For example, to check balance using
solana balance --keypair fileexportedfromphantom
but can't read the info.
How do I convert that private key into a valid form…

user1843376
- 535
- 2
- 7
- 12
9
votes
1 answer
How to find all NFTs minted from a v2 candy machine
I'm minting Solana NFTs. Candy machine v2 was recently released and v1 is deprecated.
If I create a v2 candy machine and mint some NFTs, how can I later find the hashes from all the tokens that were minted?

emersonthis
- 32,822
- 59
- 210
- 375
7
votes
6 answers
Solana airdrop error, need help to fix my problem
When I type this in the command prompt:
solana airdrop 2 -k ./Wallet/.config/solana/Seller.json
I get this error
Requesting airdrop of 2 SOL
Error: airdrop request failed. This can happen when the rate limit is reached.
What can I do?

Dac
- 71
- 1
- 2
6
votes
1 answer
How to transfer (using Program instructions) custom SPL token from my own account to another user's wallet?
This is my situation:
I have created a wallet
solana-keygen new
I have created my own custom SPL Token
spl-token create-token
Then I created an Account for this SPL Token
spl-token create-account
The SPL token is now in my wallet A
In the…

Vince
- 63
- 1
- 6
4
votes
0 answers
How to use @solana/spl-token in vanilla JS after importing in HTML using CDN?
I am trying to use @solana/spl-token(https://www.npmjs.com/package/@solana/spl-token) npm module with the below react implementation and convert it to vanilla js accessing it via CDN(https://www.jsdelivr.com/package/npm/@solana/spl-token) link after…

Aman Prakash
- 340
- 4
- 15
4
votes
1 answer
Getting this error message while installing solana: error: failed to run custom build command for `prost-build v0.10.1`
I'm got this error after running this command: ./scripts/cargo-install-all.sh .
error: failed to run custom build command for `prost-build v0.10.1`
I'm installing solana on m1 mac
Anyone please help me with this.

r121
- 2,478
- 8
- 25
- 44
4
votes
1 answer
What is Solana spl-token Aux account
What is Aux account?
I've created my own spl-token. I can mint the initial supply for my own account with my main address. I created another address and create the token account for it:
spl-token create-account thisismytokenid…

Seto
- 1,234
- 1
- 17
- 33
3
votes
2 answers
Add image and name to existing WL spl-token
I have always used the Solana-labs / token-list repo on Github (https://github.com/solana-labs/token-list) to upload an image and name to the tokens I've created via the console, which was nice and easy. But when I went to upload a new one last…

bschmitty
- 1,118
- 3
- 16
- 46
3
votes
2 answers
How do i execute solana-test-validator command properly?
When i try to execute "solana-test-validator" command in my terminal, i get error and it says:
"libcrypto1_1-x64.dll not found"
"libssl-1_1-x64.dll not found"
I searched everywhere and i looked every solana-test-validator related error things but i…

BOK
- 41
- 3
3
votes
2 answers
Airdropping Solana to a Specific Account
I would like to airdrop sols into a specific account to get my smart contract to fire an anchor test. Whenever I run my test I come across the error Error: Account BdFchxtKbEaWtsbuFX2nbKyZCjhz5LN8vyPukQzJQrME has insufficient funds for spend…

Mabel Oza
- 557
- 8
- 22
2
votes
1 answer
How create token at solana with image , and dissabled mint new tokens now?
I was try search , but old guides say about create token and add it to token list at solana repo , but it now read-only , i try search but all what i find is not working solutions , dead services , and scam services what not allow dissable mint and…

solana user
- 31
- 1
2
votes
0 answers
How to find the Pubkey of the user who made a transaction using Solana web3.js websocket
I have tried the following WS methods to get live updates for certain Solana account:
connection.onLogs()
connection.onAccountChange()
But none of them displays the Publickey of the wallet that is performing/signing the transaction. Is there a way…

Ander
- 5,093
- 7
- 41
- 70
2
votes
1 answer
Solana: error: not a directory on npm run build:program-rust command
I am having an error compiling my solana program and here is the log -
> helloworld@0.0.1 build:program-rust
> cargo build-bpf --manifest-path=./src/program-rust/Cargo.toml --bpf-out-dir=dist/program
BPF SDK:…
user18511546
2
votes
1 answer
what's a better way to handle "Timed out awaiting confirmation on transaction" error on Metaplex CMv2?
the title speaks it all. Lately, I am facing Error: Timed out awaiting confirmation on transaction too often. Be it in a devnet or in a mainnet-beta
tried out various different custom --rpc's but most of the time it just doesn't help regardless of…

Bek
- 173
- 1
- 14
2
votes
1 answer
Solana CPI Invocation Error. Error: Error processing Instruction 0: Cross-program invocation with unauthorised signer or writable account
I have basically converted a Crowd Funding Campaign written in Native Rust (Solana CLI) into an Anchor Version.
So my tests are running fine except the donation test.
Please if some Solana super shadowy dev can help me figure this out, I shall be…

Suveett Kalra
- 31
- 4