Skip to main content

Questions tagged [solana-cli]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
2 views

Can't deploy a smart contract: cli 'solana program show --programs' returns nulls

For those who've been following this, I been dealing with ISSUES trying to make a solana-token ICO widget, basically I finally got around both the, error: package `solana-program v1.18.2` cannot be ...
Keola's user avatar
  • 63
1 vote
1 answer
50 views

Solana TransactionExpiredTimeoutError : Transaction was not confirmed in 30.00 seconds

We purchased the Paid RPC in Quicknode. Plan - Solana Digital Asset Standard API by QuickNode Please respond quickly. And more customers are using our NFT platform. Please let me know what actions are ...
Technical Team's user avatar
0 votes
0 answers
18 views

Unable to Withdraw from Staking Account Due to Withdraw Authority Issue

I started staking with Solana using the Phantom Wallet. When staking is initiated through the Phantom Wallet, no private key is generated for the staking account itself. However, due to some glitch, ...
haru S's user avatar
  • 1
0 votes
1 answer
12 views

Do I publish the coin via a pull-request?

this is my first time developing a coin using Solana CLI. I have created a keypair, a minting wallet, a coin and minted the first batch. But how do I publish it? ChatGPT suggests to create a ...
Roomba's user avatar
  • 1
1 vote
2 answers
44 views

Is there a way to get program id of CPI call?

I am calling a solana program A from solana program B using cpi invokes. Is there a way to get the program id of program B on program A or a way to get the cpi is invoked?
blackhorse's user avatar
0 votes
1 answer
41 views

Error Deploying Solana Nodes on OVH Machines: QUIC Connection Timed Out

I've been deploying 2 solana nodes (1 RPC and 1 Validator) on OVH machines, but I've encountered the following error: 2024-05-14T11:06:39.244108182Z WARN solana_perf] CUDA is disabled [2024-05-14T11:...
dariusjvc's user avatar
1 vote
1 answer
29 views

How to setup local solana validator RPC for a team about 5 PC

I want to setup a local solana validator RPC for my team, Devnet sometime gets bottleneck or something else, so I want to setup a localnet for my team. Any one can help me.
RichardPhan's user avatar
1 vote
1 answer
34 views

bug? anchor build got error: `Stack offset of 4608 exceeded max offset of 4096 ...` if there is v1.18.10 solana, but v1.16.25 is OK

Question1: anchor build got error: Stack offset of 4608 exceeded max offset of 4096 ... if let solana v1.18.10 present in ENV/PATH ❱❱❱ which solana /mnt/volume2/solana_dev_env/v1.18.10/solana-release/...
breeze wang's user avatar
0 votes
0 answers
18 views

problem building new project

Hello i have Apple M2 Pro, with a local solana-test-validator running. I created new wallet and i can airdrop sol and check my balance. solana-cli 1.17.25 rustup 1.27.1 (54dd3d00f 2024-04-24) info: ...
Max Dev3's user avatar
0 votes
0 answers
15 views

Get all adresses that have traded/interacted with a token/liquidity pool

I'm a Starknet developer and was planning on doing an airdrop for those who have traded a specific token on solana. What would be the best approach to do this? Is there any existing solution?
Matvey Dergunov's user avatar
0 votes
1 answer
27 views

About solana token Decimals

I'm new to Solana. I've created a swapping method to swap Solana tokens, and it has successfully swapped tokens. However, I'm stuck on one problem: I need the decimals of the token to swap Solana ...
Meet Desai's user avatar
1 vote
0 answers
34 views

Deployment Error on Solana Mainnet: Max Retries Exceeded [duplicate]

I've been successfully deploying my Anchor project on Solana's development and testnet environments. However, when attempting deployment on the mainnet, I consistently encounter the following error: &...
Blocky Man's user avatar
1 vote
1 answer
15 views

Code to subscribe to transactions calling a specific instruction in Token Program Solana?

I would like to receive transactions only if the Token Program: SyncNative instruction is called, not on all instructions of a given program. Could you help me with the code to solve this problem?
Wert's user avatar
  • 11
0 votes
0 answers
24 views

Error while swapping solana token: TypeError: pubkey.toBase58 is not a function

async getSwapTransaction( toToken: string, amount: number, poolKeys: LiquidityPoolKeys, useVersionedTransaction: boolean = true, fixedSide: 'in' | 'out' = 'in', ): Promise&...
Kumar Shivam's user avatar
0 votes
1 answer
33 views

Import solana keypair into a wallet application

Hello Solana community I have generated a solana keypair using the solana CLI: The command line: solana-keygen new It generated the secret 12-word mnemonic phrase (I am not going to share) and my ...
RichardT's user avatar
  • 101
0 votes
1 answer
19 views

Solana CLI how to fix this? Not configured Program ID

PS C:\Users\Keola> spl-token mint 4ZPyP3fGWEoFV7ey32jqwJGCydyK9(censored) 80000000 14fbryUnN5Px4GGg1MMgTKawpyvBXUz(censored) Error: "Account 14fbryUnN5Px4GGg1MMgTKawpyvBXUz(censored) is owned ...
Keola's user avatar
  • 63
2 votes
0 answers
34 views

What function should I use to purchase a token transfer with program_id?

I am trying to repeat this transaction (4Ku7oqwPAwRLPm7jNp2oTigYv8XpcTPLJwF49dLVS6ypi35vH9orwRAPcfMj37jj8FwmpMFuP5j8cS1hwdoXJp67) programmatically on solana or solana cli (I will be grateful for any ...
AREW's user avatar
  • 33
0 votes
1 answer
22 views

can anyone tell me why i am getting this error when i trying to create a token

i am getting this error Error in create mint Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x1 import { useConnection, ...
Money's user avatar
  • 1
1 vote
0 answers
19 views

Program returned error: "Overlapping copy"

I tried to mint NFT to someone , but it gives me a error "Error: Raw transaction 5A6sSQPmAUBTQXDkrz9DM1tkYnwp7mjFLLi2S2cUpVjxnkYXHaSvHLHq2fz7Z5ViDdghrAgKPwqBVDC5m7ud3oEK failed ({"err":{...
papi's user avatar
  • 79
0 votes
1 answer
45 views

so i am following solana bootcamp and getting this error bigint

i am using nextjs with typescript https://www.soldev.app/course/interact-with-wallets#content and following this lab but when i am doing npm run dev i am getting this error bigint: Failed to load ...
Money's user avatar
  • 1
0 votes
1 answer
26 views

Can't run local validator on MAC

Hello I'm getting the following error: Error: failed to start validator: Failed to create ledger at test-ledger: io error: Error checking to unpack genesis archive: Archive error: extra entry found: &...
Soldevrookie's user avatar
1 vote
1 answer
36 views

Making a token on the mainnet; A few questions before I hit enter on the mint command(CLI)

This is that command; spl-token --program-id TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCX(censored) create-token --transfer-fee 300 300000 --decimals 10 --enable-metadata --enable-group --metadata-address ...
Keola's user avatar
  • 63
1 vote
1 answer
37 views

Following a Solana token guide and found out later on the info is dated. Not I'm getting an error when I try to check my spl-token accounts

I was following the https://mafyuh.com/posts/spl-token-cli/ guide, and used this command "as instructed" PS C:\Users\Keola> solana config set --url https://api.mainnet-beta.solana.com --...
Keola's user avatar
  • 63
1 vote
1 answer
32 views

When uploading metadata for a new token do I use Akords vault or storage?

I found out the github has been archived and I found out that the new method is to use cli with metaboss, the tutorials I read say, put the .json and logo.png into akord arweave but, when I open my ...
Keola's user avatar
  • 63
1 vote
0 answers
16 views

Try to create mint and ATAaccount shows Error:Transaction simulation failed:Error processing Instruction 0:Program failed to complete

Try to create mint and ATA account, When I run anchor test, it shows Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: Program failed to complete here ...
papi's user avatar
  • 79
1 vote
1 answer
78 views

Error: target/idl/sol_404.json doesn't exist. Did you run `anchor build`?

I run anchor build , and it indeeded generate a sol404.json , but when I run the anchor test it shows /Users/brooke/Desktop/sol404/node_modules/.bin/ts-mocha -p ./tsconfig.json -t 1000000 'tests/**/*....
papi's user avatar
  • 79
1 vote
0 answers
53 views

Error: AnchorError caused by account: token_metadata_program. Error Code: InvalidProgramExecutable. Error Number: 3009

I run anchor test and then it shows Error: AnchorError caused by account: token_metadata_program. Error Code: InvalidProgramExecutable. Error Number: 3009. Error Message: Program account is not ...
papi's user avatar
  • 79
1 vote
1 answer
117 views

How to Interact with solana Programs?

I am beginner with Solana chain, Learning things compared to EVM based blockchain. I want to know one thing is like how can we interact with Solana program(contract),though i know we can use Solana/...
Bhushan Dhiware's user avatar
3 votes
1 answer
348 views

error[E0599]: no associated item named `__anchor_private_full_path` found for struct `anchor_spl::token::TokenAccount` in the current scope

I run my code, and it shows, looks like I need to intro pub token_program: Program<'info, Token>, but I did, you can get more information from my code below error[E0599]: no associated item ...
papi's user avatar
  • 79
1 vote
0 answers
93 views

Transaction history is not available from this node : Solana validator RPC setup

Even though i have successfully setup solana-validator(mainnet) RPC(--no-voting) node in my computer and the newwork catchup also success as solana-validator --ledger /mnt/ledger monitor also shows ...
ppegu's user avatar
  • 111
1 vote
1 answer
52 views

403 Error when downloading Solana install tool

I am attempting to download the Solana CLI on my Ubuntu cloud server. Here is the download script I run: sh -c "$(curl -sSfL https://release.solana.com/stable/install)" When I do this, I ...
David Burca's user avatar
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
1 answer
112 views

Setting priority fee for deploy solana-cli: '--with-compute-unit-price' which wasn't expected, or isn't valid in this context

According to this post I am trying to set higher fee to make a successful deploy solana program deploy ./target/deploy/prog.so --with-compute-unit-price 200000 But it doesn't work error: Found ...
Peter Ferriman's user avatar
0 votes
0 answers
8 views

How are you doing this morning and you still want

My name and address was the one who had a few questions for you to get in touch about the job market for the
Amir Amani's user avatar
0 votes
0 answers
55 views

Solana 1.18 CLI Stack explosion [duplicate]

There is definitely an issue with programs built via solana 1.18 having their stacks exploded. This is not a duplicate question. This is specifically asking why version 1.18 compilation has lead ...
Trevor's user avatar
  • 115
1 vote
2 answers
628 views

Error: unable to confirm transaction. This can happen in situations such as transaction expiration and insufficient fee-payer funds

1. Description of my context on api.mainnet-beta.solana.com Token machine made with Windows 11 remote PC Connected to Sol network by api.mainnet-beta.solana.com 1.1 Detailed description coming from ...
AJSP's user avatar
  • 51
0 votes
0 answers
18 views

how to add solana metadata

i have recently minted my solana tokens and sent them to my phantom wallet, but have not managed to add any metadata to my tokens, could anyone provide the latest way to acheive this as i have found ...
bigjohn's user avatar
  • 21
1 vote
1 answer
35 views

'error sending request for url' with command "cargo build-sbf"

My error is slightly different from the ones previously stated in the forum. Upon running "cargo build-sbf", i get the error "[2024-04-03T16:51:26.963362217Z ERROR cargo_build_sbf] ...
Bunmi's user avatar
  • 11
0 votes
1 answer
28 views

incorrect balance

Hi, I'm trying to learn about solana development, following the youtube videos of solana bootcamp (https://www.youtube.com/watch?v=0P8JeL3TURU) When I use 'solana balance' and running the script, the ...
Nerd1156's user avatar
0 votes
1 answer
30 views

How to correctly implement a token minting flow with Solana in a React app?

I'm working on a React app integrated with Solana blockchain, and I'm facing a challenge with the token minting flow. The goal is for users to request minting of new tokens through a backend service, ...
AlienDecoy's user avatar
0 votes
1 answer
52 views

solana-test-validator not working. (tried the approach in the similar question) and logging a different error

As stated in the docs, I have succesfully installed, cargo rust and all the required dependencies, However I am unable to run the test validator, this is the error logged, Error: failed to start ...
Shivansh's user avatar
0 votes
1 answer
76 views

How to create a openbook markt id per visual studio code?

How to create a openbook markt id per visual studio code? or CLI? can somebody help me?
Marco's user avatar
  • 1
0 votes
0 answers
55 views

How can I add priority fee to

how to add a priority fee metaplex.nfts().printNewEdition(editionParams, { commitment: "confirmed" }) how do I set fee for printing edition from master edition.
user12126's user avatar
2 votes
1 answer
276 views

Set priority fees when deploying with solana cli

According to this question, we can set a priority fee with the cli when sending a transfer. Is there a way to do this when deploying programs using the cli?
Ahri's user avatar
  • 3,375
0 votes
0 answers
22 views

error: no such command: `+solana`

I using anchor init source, after use anchor build to build and i get error: info: uninstalling toolchain 'solana' info: toolchain 'solana' uninstalled error: no such command: +solana Cargo does ...
Duck dev's user avatar
1 vote
2 answers
363 views

Raydium AMM Program Instruction "custom program error: 0x16"

I currently deployed a liquidity pool to Raydium. https://explorer.solana.com/tx/3VbKy14uCGGBNGzCgZTSZwVvNGinVr8PWz1Xhj6PZdL5bAp1yQmSTQVVXaWGjtf7pnruKSKN2WdDPyo8CVksr4VP When I created the liquidity ...
Steven Aguilar's user avatar
1 vote
1 answer
102 views

Running spl-token initialize-metadata getting error

Syntax: spl-token initialize-metadata Bk8e....xyzK "NAME of Token" "SYMBOL" "https://raw.githubusercontent.com/xxx/TOKEN.json" --url https://api.mainnet-beta.solana.com I'...
Sid's user avatar
  • 11
2 votes
1 answer
2k views

Raydium Liquidity Pool API call && calculation of price

I have a problem regarding the calculation of a Raydium pool price. (https://github.com/raydium-io/raydium-sdk) Raydium API Request for Liquid Pool V4 SOL/USDC. import { Connection, PublicKey } from ...
axlynom's user avatar
  • 31
1 vote
0 answers
20 views

bench-tps not working on v1.18.5

I have been locally testing some changes using cluster bootstrap command ./multinode-demo/bootstrap-validator.sh --gossip-host <public_ip>. On the client side on another machine I usually use ...
Huzaifa Rahman's user avatar
3 votes
2 answers
262 views

Why is mainnet-beta program deploy taking so much time?

Why is mainnet-beta program deploy taking so much time? It took 6 hours to complete 1.0% of the whole process I use solana-cli version: 1.18.3 anchor version: anchor-cli 0.29.0 solana cluster-version :...
Minato Tanaka's user avatar

1
2 3 4 5