Questions tagged [solana-cli]
104 questions
0
votes
0 answers
having issues with deploying smart contract on solana
Anytime I try to deploy a contract on Solana I am always getting these issues.
Deploying workspace: https://api.devnet.solana.com
Upgrade authority: /Users/*****/.config/solana/id.json
Deploying program ...
Program path:…

EtDude
- 1
- 1
0
votes
0 answers
Error running command (re-run needed): AccountNotFound: solana
img of the cache.json i am using metaplex to deploy a contract in Solana mainnet --
and I am getting this error when i deploy --
i did upload the art and metadata using NFT-STORAGE everything goes well --
err

Drnomoney
- 1
- 1
0
votes
1 answer
why no rewards are appeared in solana stake account testnet?
I have two stake accounts in the Testnet validator none of them showing any rewards is something wrong with the configuration
Wallet: https://explorer.solana.com/address/EjGaPZ59sycMm46VpbukVY9PnwSdPYCfeQnbRLaZaD7m?cluster=testnet
Identity :…

anish
- 6,884
- 13
- 74
- 140
0
votes
1 answer
Candy Machine V2 Limit WL Token Usage to a certain number
With Candy Machine V2 is there any way to limit the number of usages for each whitelist token to a certain number? For example, I would like to send each whitelist user one token that can be used to mint 3 times, and then it is burned so it can't be…

bschmitty
- 1,118
- 3
- 16
- 46
0
votes
1 answer
Could not complete Bundlr tx upload successfully, exiting due to: Error: connect ETIMEDOUT 172.3 at TCPConnectWrap.afterConnect [as oncomplete]
I have checked everything else before this step and it works fine.
clone candy machine
install dependencies
check version
add assets
verify assets
upload (error happens in this step).
Also this works fine when I upload 100 imgs+json pairs but if I…

Prog
- 51
- 3
0
votes
1 answer
Retry a transaction on Candy Machine
I am just finishing an upload of 8000 assets to candy machine (via the upload command). Everything seemed to be working well when it was creating the bundles and saving them to the cache, but once it started to write the indices I've started seeing…

bschmitty
- 1,118
- 3
- 16
- 46
0
votes
0 answers
Stake Granularity in solana
Hello Can anyone please explain why is stake granularity important in solana? and also if I change all the stakers to one single address my total supply varies significantly,any explanation for this?
pub const CREATOR_STAKER_INFOS: &[StakerInfo] =…

goutham reddy
- 13
- 4
0
votes
1 answer
How to send USDC from solana-cli command line
I am trying to send USDC from the solana-cli command line but I can't find any example in the documentation. Everything is references to how to do it in javascript importing these 2 libraries.
import * as web3 from "@solana/web3.js";
import * as…
0
votes
1 answer
Use another Fee Payer for SOLANA spl-token Transfer
I was actually developing a token in SOLANA Blockchain and stuck in a place. The problem is.
I need to transfer a custom token ( Eg: MyCustomToken ) I created ( Not SOL ) from one wallet to another and charge the gas fee from another wallet. So the…

insaneray
- 75
- 1
- 11
0
votes
1 answer
Derive multiple PDAs for one Public Key with a UUID
I am trying to derive multiple PDAs with a generated seed and get the error shown in the screenshot. If i don't use the uuid and only the seed and the public key for the PDA it works fine.
create_planet
planet_struct
rpc_call
error

AUTr3ch
- 3
- 3
0
votes
2 answers
Solana web3.Transaction.from return null
Here my code:
const web3 = require('@solana/web3.js');
const connection = new web3.Connection('https://solana-api.projectserum.com');
connection.onAccountChange(
wallet.publicKey,
(updatedAccountInfo, context) => {
let tx =…

Alexandr Kazakov
- 682
- 1
- 7
- 15
0
votes
0 answers
Anchor commands not running in VScode
I have installed Rust, Solana cli, and anchor cli. Anchor commands are working fine in the terminal but not in the project workspace. I'm new to rust, my guess is it should be initialized first then have to use anchor commands. Would really…

Prithvi-N
- 3
- 3
0
votes
1 answer
Solana leader schedule cli vs api correlation
How to correlate between API output and the ci output
The leader schedule coming from the API is coming as offset
solana@:~$ curl https://api.mainnet-beta.solana.com -X POST -H "Content-Type: application/json" -d '
> {
> "id":1,
> …

anish
- 6,884
- 13
- 74
- 140
0
votes
1 answer
Solana build crashing on the compilation of solana-validator package
super new to Solana. Trying to get the cloned repo build on my local machine. But the build stops while compiling solana-validator package and the terminal closes itself (crashes if you will) without showing any error or warning. screenshot
Nothing…

WonderGirlPrism
- 3
- 1
0
votes
2 answers
How can I return an array of integers from Solana rust program function to front end?
I don't know how can I write a smart contract in Solana that after executing the logic, returns an array of integers, strings, ... to the client, and how can I fetch it using Web3?