Skip to main content

New answers tagged

0 votes

Raydium Liquidity Pool API call && calculation of price

Were you able to calculate a price using the swap amounts? I believe you have to fetch the vault amounts and use those... baseVaultAmount / quoteVaultAmount
NotArchon's user avatar
0 votes

Raydium Liquidity Pool API call && calculation of price

Has any solution been found for this? We know how to obtain the liquidity of the pool and the market value of those currencies?
Ismael Treviño's user avatar
2 votes

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

The deployment will spend a bit of SOL to create a buffer account, and after which this is reclaimed once the deploy succeeds or solana program close --buffers is ran. If the deploy fails like in your ...
Joey Meere's user avatar
  • 1,324
2 votes

Solana OnCurve / OffCurve

Create a keypair solana-keygen new -o test.json Get the pubkey solana-keygen pubkey test.json Check the public key on solscan Solscan displays isOnCurve attribute false for the address. Airdrop 1 SOL ...
att's user avatar
  • 151
0 votes

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

You should be able to store keypairs on a flash drive or use the hardware wallets like Ledger.
Andrei Montchik's user avatar
2 votes
Accepted

Solana program upgrade priority fees

I believe you can (or should) use just the solana program deploy when you update the Solana program. That's what is needed in most cases. The CLI help says Deploy an upgradeable program while in the ...
chalda's user avatar
  • 1,082
0 votes

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

I forgot to mention that I'm working with a private cluster. In a private cluster, I have control over the total supply within the network, so validator stake wasn't the problem. The root cause was ...
dariusjvc's user avatar
2 votes
Accepted

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

This is expected. Your local id.json should only be used for tests and nothing more e.g storage of your assets. Still, it is possible to not write the KP to the id.json file using solana-keygen new --...
Jimii's user avatar
  • 3,120
0 votes

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

At present, the total number of pledges in the network has reached 365m, and 50000sol accounts for about 0.013% of the share. The total number of connections allocated to validators is 2000, so the ...
qingmo's user avatar
  • 1
3 votes
Accepted

How can I airdrop Solana when running anchor locally?

Figured it out. When running anchor localnet, it outputs a bunch of info about the local run like so: Ledger location: .anchor/test-ledger Log: .anchor/test-ledger/validator.log ⠚ Initializing... ...
Ahri's user avatar
  • 3,920
1 vote

Solana TransactionExpiredTimeoutError : Transaction was not confirmed in 30.00 seconds

From the question, I assume you're confirming transactions with connection.confirmTransaction(signature, "confirmed) Try using this instead: const block = await connection.getLatestBlockhash(&...
Joey Meere's user avatar
  • 1,324
1 vote

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

The information about the caller program is not provided to a callee program during CPI, but there's a workaround. You could verify the caller program id by: including the caller program id as ...
Jon C's user avatar
  • 15.3k
2 votes

Do I publish the coin via a pull-request?

I would advise you to first look at the documentation and understand how tokens work on Solana. The docs cover everything https://solana.com/docs/core/tokens takes you through what tokens are and how ...
Jimii's user avatar
  • 3,120
0 votes

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

If your nodes are unstaked or have low stake, they will not be allocated many QUIC connections by the rest of the cluster, which will mean timeouts when trying to connect to other nodes. You can ...
Jon C's user avatar
  • 15.3k
0 votes

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

If you are using Anchor, you can get your program ID from the accounts context using ctx.program_id For native programs you have to pass in the program ID, which you can in your process_instruction ...
Jimii's user avatar
  • 3,120
0 votes

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

Certainly! solana-test-validator has the --bind-address, --rpc-port, --gossip-host, and --gossip-port flags, which you can specify as needed for your setup. For example, if you set it up on a public ...
Jon C's user avatar
  • 15.3k

Top 50 recent answers are included