Skip to main content
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
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,294
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
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
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
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
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,294
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

Only top scored, non community-wiki answers of a minimum length are eligible