Skip to main content

Questions tagged [solana-cli]

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

How to create liquidity lock on solana meme coin which is on raydium liquidity pool

I am new to solana development so need the help on locking the liquidity on solana meme coin project. We have created a solana meme coin and added the liquidity to it on raydium. Liquidity on this ...
Parmod kamobj's user avatar
2 votes
1 answer
21 views

Adding 2 signers for TS Test for Anchor project

I am trying to create a simple swap contract. The part of the swap function is like this: // Transfer tokens from user to pool let cpi_accounts_in = token::Transfer { from: ctx....
zubayr khalid's user avatar
1 vote
1 answer
17 views

*ctx.bumps.get("pool") Giving Error

I am trying to create a simpleswap contract. My lib.rs code is: #[program] pub mod solana_swap { use super::*; pub fn initialize_pool(ctx: Context<InitializePool>) -> Result<()>...
zubayr khalid's user avatar
0 votes
1 answer
54 views

error[E0277]: can't compare `solana_program::pubkey::Pubkey` with `spl_memo::solana_program::pubkey::Pubkey`

Tackling the error below trying to compile my anchor program Error: Function _ZN112_$LT$solana_program..instruction..InstructionError$u20$as$u20$solana_frozen_abi..abi_example..AbiEnumVisitor$GT$...
Jimii's user avatar
  • 5,442
1 vote
0 answers
23 views

solana pirate bootcamp quest 5 - "Access violation in unknown section at address 0x225191a2c759e156 of size 2080669590007288142

While trying the Solana Bootcamp Episode 5 arbitrage bot on devnet and learning Rust (code found here: https://github.com/solana-developers/pirate-bootcamp/tree/main/quest-5) I have been experiencing ...
AdamR's user avatar
  • 11
1 vote
1 answer
22 views

How to create a private cluster on Solana?

I want to have a private cluster (not linked with mainnet) for my application, the primary use case is to create investor wallets, create NFTs and transfer of these NFTs on blockchain. I want to have ...
Muhammad Ahmed Fraz's user avatar
0 votes
0 answers
21 views

Not to setup solana rpc node. -2.8 Slots Behind

A little guidance to trobuleshoot this issue would be appreciated. Thanks in advance Server Specs: CPU: AMD EPYC 7402P 24-Core Processor RAM: DDR4 2666MHz 512GB (4 x 128GB 2666MHz RDIMM) Bandwitdth: ...
Mehul Singh's user avatar
1 vote
1 answer
31 views

How to close a token account when the token is no longer liquid

Closing a token account requires the account balance to be zero, but when that token's liquidity is drained, I cannot then swap that token to bring it to zero balance.
Nelah's user avatar
  • 13
0 votes
1 answer
24 views

Solana CLI verify-offchain-signature not compatible with message signing implementations?

We have an API that verifies and off-chain signature using the Solana CLI. It runs the following command: solana verify-offchain-signature #{message} #{signature} --signer #{public_key} Our test ...
Sebastian Scholl's user avatar
0 votes
1 answer
14 views

I try to transfere my SOl from account but get (os error 2)

I try to transfer SOl by using this command solana transfer --from <KEYPAIR> <RECIPIENT_ACCOUNT_ADDRESS> <AMOUNT> --fee-payer <KEYPAIR> from account to my wallet but I get ...
Jon McCane's user avatar
0 votes
1 answer
36 views

Signing multiple transfers using the CLI and submitting them in bulk via HTTP RPC

I'm working on a feature in my app where the user will sign two transfers and then broadcast them in one transaction. I'm a little confused in the steps, and just to clarify we are not using the web3 ...
Sebastian Scholl's user avatar
0 votes
1 answer
75 views

Solana NFT Minting fails with Phantom Wallet: 'Failed to simulate the results of this request

I'm trying to mint an NFT using Candy Machine UI v3 on the Solana network, but I'm encountering errors when attempting to confirm the transaction in Phantom Wallet. Here are the details: Environment: ...
Tuan Thanh Vo's user avatar
0 votes
0 answers
40 views

Struggling to setup a Validator

I've recently began setting up a Solana Validator via an Amazon EC2 instance. I understand in the long-term, it is an inefficient strategy and once I launch it properly, I am switching to a data ...
Hades's user avatar
  • 1
0 votes
1 answer
23 views

can anyone help me increase solana transaction fee? or increase transaction speed

here is my codes async sendSplTransaction(wallet, {to, value, mintAddress, decimals, fee}) { const recipientPubKey = new PublicKey(to); const mintPubKey = new PublicKey(mintAddress); const ...
sulthan's user avatar
2 votes
1 answer
120 views

avm install 0.30.1 is failing - could not compile `ahash` (lib)

I am trying to install avm install 0.30.1 My current installation is: avm list - 0.29.0 (installed, current) - 0.30.0* - 0.30.1 (latest) - rustc 1.82.0-nightly ( from the comments I read we ...
WowBow's user avatar
  • 201
0 votes
1 answer
45 views

Is it possible to airdrop solana-tokens distribute-spl-tokens without tokens on mint account?

I was trying to make an Airdrop (mass distro) of our $TOKEN (SPL). First we wrote a disperser using TS. And it worked (very slow) but for whatever reason 40 Tx (transactions) failed, I tried again ...
Lord Henry's user avatar
1 vote
0 answers
24 views

Error: Data writes to account failed: Custom error: Max retries exceeded while deployment

I am using QuickNode to manage the RPC Endpoint. The program was closed automatically from the BlockChain and when I try to deploy the same program, it shows me these errors:
Imran Rashid's user avatar
2 votes
1 answer
12 views

What is the type for a Struct with the Anchor account macro applied?

I am trying to make a token transfer function that either uses a Signer as authority (ie, when transferring from a regular accounts) or an Account as authority (eg when transferring from a PDA account)...
mikemaccana's user avatar
  • 2,469
1 vote
0 answers
19 views

Metaboss error, account

Error: Action failed with error: failed to get account data I use solana CLI and metaboss on Windows I try to update metadata for my token. How to deal with it ? Address are correct, try account and ...
Jon McCane's user avatar
2 votes
2 answers
32 views

How do i get rid of this i want urgent help

It just shows like this was installing anchor for cli please help
Anant Bagadev's user avatar
1 vote
0 answers
36 views

I sent SOL to wrong address [closed]

I sent SOL to wrong address by missing one character at the beginning of the address, How can get recover my SOL back?
Dong Pittaya's user avatar
1 vote
0 answers
20 views

No possible way in VersionedTransactions for Program Interactive Methods to be called within instruction

I found only transaction with SystemProgram are called in version Transactions , and no other way to call contract methods instructions in versiontransaction. need discussions over this issue
hammad ali's user avatar
0 votes
3 answers
65 views

cargo build works but `cargo build-sbf` and `anchor build` fail with unsupported target error

I am working on a Solana program and facing issues building my project. When I run cargo build, the build completes successfully but doesn't generate the required .so file for deployment. Additionally,...
Nerevaine's user avatar
  • 309
2 votes
1 answer
21 views

solana-lldb cannot start due to inability to find libpython3.8.so.1.0

I am new-ish to solana. I am on an Ubuntu 22 virtual machine. I am trying to use solana-lldb alongside solana-ledger-tool program run -l ~/test-ledger -e debugger ~/dev/program/build/program.so so ...
someone serious's user avatar
1 vote
0 answers
21 views

Mechanics of DEX limit orders

I want to understand how limit orders work on DEXes, for example on Jupiter. The question is: can I place a limit order in the order book and just wait for a sharp sale on the market? Will it be ...
CoinWiz's user avatar
  • 11
1 vote
1 answer
55 views

Transfer Fees/Tax per Transfer of Token

How can we collect the transfer fee/tax per token transfer on Solana? Is it possible to automate this process, or do we need to collect it manually? Manually means here , to run js code for searching ...
Mohammad Abuzar's user avatar
1 vote
1 answer
25 views

Why can't SOL be sent out of a mint address using "solana transfer" in the CLI?

From https://github.com/anza-xyz/agave/issues/2134 : Create a new fungible mint. Send some SOL to the mint address (and be prepared to lose it!). You can't use "solana transfer" to retrieve ...
solbugz's user avatar
  • 33
2 votes
1 answer
33 views

Can I update the FEE and Withheld authority if I'm only the Update Authority?

I have a SPL Solana Token and I set as Fee manager and Withheld withdraw authority an EX team member. I haven't the keypair of their account but I'm the only Update Authority of the token. Mint and ...
Eliel's user avatar
  • 41
0 votes
0 answers
68 views

RPC node can't find other nodes

The issue is that my RPC node can't find other nodes to download snapshot. I have tried commented out options in different combinations but nothing worked (log output is the same). In testnet the node ...
ologvin's user avatar
  • 21
0 votes
1 answer
25 views

Can I change the null MINT authority of my spl-token if I am the updateAuthority?

Can I change the "null" MINT authority of my spl-token if I am the updateAuthority of the token? Or just can update the metadata?
Eliel's user avatar
  • 41
0 votes
0 answers
71 views

How can I add liquidity for a token I want in a Raydium CPMM pool?

require('./globals'); const { Percent } = require('@raydium-io/raydium-sdk-v2'); const BN = require('bn.js'); const Decimal = require('decimal.js'); const { lpBotServices, raydiumServices } = require('...
Akash Yadav's user avatar
0 votes
0 answers
24 views

How to calculate how many bytes to extend a program when upgrading a deployed program? [duplicate]

Upgrading an existing program throws an error if the new program exceeds the size of the deployed program: Error: Deploying program failed: RPC response error -32002: Transaction simulation failed: ...
john's user avatar
  • 7,622
2 votes
1 answer
62 views

Error installing spl-token-cli via cargo on WSL

Problem: I receive the error message: could not compile solana-accounts-db (lib) For more descriptive error details pls refer the screenshot attached Desired Outcome: My goal is to successfully ...
sauravs24's user avatar
0 votes
0 answers
15 views

Can't create Reserve for Token Lending's market

I am currently following the SLP Token Lending step by step (https://github.com/solana-labs/solana-program-library/blob/master/token-lending/cli/README.md) in order to deploy my own lending system for ...
Anthony CONSOLARO's user avatar
0 votes
1 answer
27 views

Unable to deploy a Hello World contract

I have created a very simple Hello World using anchor framework, rust, and Solana. But I am unable to deploy it, due to rust's version discrepancy. Refer the below image I have tried all types of ...
ispostback's user avatar
1 vote
0 answers
17 views

solana-cli with cold wallet

I was wondering if solana-cli had support with hardware wallets other than the ledger nano. I couldn't find anything online about how to sign transactions with other wallets using cli. Thank you for ...
user20756's user avatar
1 vote
1 answer
22 views

If I delete my OS can I mint token again?

I made an spl-token on my laptop. I want to delete my Linux system and install windows. So after that, because I made a token on my Linux system, i can't access my token as owner and mint more tokens?
Hich's user avatar
  • 51
1 vote
1 answer
81 views

how i transfer my spl token by js

Hello i need to write a program that transfer token from my wallet to another wallet i wrote here is code const {clusterApiUrl, Connection, Keypair, LAMPORTS_PER_SOL, PublicKey} = require('@solana/...
Hich's user avatar
  • 51
0 votes
1 answer
151 views

how i burn spl token?

Hi I used this command spl-token burn <tokenAccountAddess> <amount> it was useful but when i transfer all minted tokens from my token account to another wallets how can i burn my token ...
Hich's user avatar
  • 51
1 vote
1 answer
174 views

What is TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb in process of creating spl token?

I trying make a token according to official document I faced this part https://solana.com/developers/guides/getstarted/how-to-create-a-token#creating-the-token-mint What is address i marked here (...
Hich's user avatar
  • 51
2 votes
1 answer
119 views

Anchor deployment on Solana mainnet is failing

I'm trying to deploy the contract to Solana mainnet and it's failing. Deployment command used: #!/bin/bash RPC_URL=RPC_URL_FROM_QUICKNODE anchor build anchor deploy --provider.cluster $RPC_URL -- --...
Akshay Soam's user avatar
1 vote
1 answer
113 views

Getting build error: the `#[global_allocator]` in spl_token conflicts with global allocator in: spl_associated_token_account

Earlier I was able to build my solana programs using anchor build but suddenly getting strange error error: the #[global_allocator] in spl_token conflicts with global allocator in: ...
blackhorse's user avatar
1 vote
1 answer
60 views

How can i mint token again?

I made spl token on Solana But i have some questions How can i mint more tokens later ? Because it didn't gives me any private things except a wallet secret key So how can i mint more coins in feature?...
Hich's user avatar
  • 51
3 votes
1 answer
93 views

How is a Solana wallet created behind the hood?

I realize that the private key is generated based on the ed25519 algorithm and that the public key is extrapolated from the private key, but I am wondering how does the actual connection get made ...
ren's user avatar
  • 31
3 votes
1 answer
84 views

Solana call mint token from pda program: Cross-program invocation with unauthorized

I am come from evm to Solana so I have question in evm we have modifier call is_owner... so in Solana how it work, as I understand using cpi here is my code I create custom token create.rs use { ...
Peter Jack's user avatar
2 votes
1 answer
200 views

Deploying program fails after checking transaction status. Error: 122 write transactions failed

For several days I couldn't deploy program because of the same reason everyone fails. In 5 retries you can't deploy it. I changed Solana Cli source code in order to increase max retries number (you ...
kadir's user avatar
  • 33
2 votes
1 answer
89 views

Solana OnCurve / OffCurve

I don't understand the whole curve thing. I was trying to generate vanity addresses using the solana cli. I created a keypair, then derived the pubkey from it using solana cli. Now if I check solscan ...
Naschi's user avatar
  • 21
2 votes
1 answer
89 views

Solana program upgrade priority fees

In Solana CLI 1.18 there is --with-compute-unit-price param on program deploy, but when looking for the same param on 'solana program upgrade' there is no such flag. As a consequence, all of 500+ ...
Ivan Britvic's user avatar
1 vote
2 answers
88 views

Solana-cli requests a passphrase for creating a keypair but store it as insecure plain text in id.json

I anticipated Solana-cli to encrypt the storage of secret keys or seeds, but it doesn't. When I run solana-keygen new It asks passphrase, however id.json file is not encrypted. I can read it with text ...
kadir's user avatar
  • 33
2 votes
1 answer
121 views

How can I airdrop Solana when running anchor locally?

If I want an airdrop on devnet, I can just do solana airdrop <amount> <address>. What if I have a local cluster running with anchor localnet though, how do I airdrop then?
Jon C Fan's user avatar
  • 5,229

1
2 3 4 5 6