All Questions

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

Python and Javascript returning different public keys in HD Wallet path derivation

So I have been trying to figure out HD Wallet derivation in Python and I recently found a way using the bip-utils module. Btw I am using a 12 word mnemonic phrase from mnemonic import Mnemonic from ...
  • 285
0 votes
0 answers
5 views

WalletMultiButton only establishes a connection to Phantom wallet every other time

I've been following along soldev course and I'm now starting to interact with a browser wallet interact-with-wallets. Problem is whenever I try to connect to a wallet it only connects after two clicks....
0 votes
0 answers
7 views

Why are there so many missing blocks

Trying to get early (~2021 March) blocks either with public RPC, QuickNode RPC or Alchemy RPC results in almost 1/3 blocks being missing (not skipped!). Why is that so? Can those blocks be retrieved ...
0 votes
1 answer
6 views

How to send raw signed transaction with Solnet .net?

I use following .net core library to send signed transaction https://github.com/bmresearch/Solnet I send the encoded raw transaction from react app with web3.js, and accept the string on server side, ...
  • 149
0 votes
1 answer
12 views

Transaction expired inside Phantom wallet

Has anyone experienced this "Transaction expired" issue inside Phantom and knows how to fix it? Im trying to make a transaction in my local environment, and it used to work.
  • 111
2 votes
1 answer
9 views

Session persistence on blockchain

I'm quite new to blockchain and was wondering if someone can help me regarding the session persistence on Web3 applications. I come from a Web2 background with experience in developing websites in ...
0 votes
0 answers
8 views

Can you send Custom tokens and NFTs to a PDA account?

I have used PDA account to send and receive sol, now I want to send spl token to PDA Account. What is the implementation for that?
  • 11
0 votes
1 answer
13 views

How to create Associated token Account onchain

Please help i'm trying to create an Associated token account for a PDA onchain using let create_accounts = Create { payer: ctx.accounts.signer.to_account_info().clone(), ...
  • 63
0 votes
0 answers
2 views

Metaplex JS SDK, NFT update works but fails to confirm

I am updating the name and metadata name of NFTs on a React web client. The following code updates the name in both metadata and on chain. // Update metadata name const { uri: newUri } = ...
0 votes
0 answers
9 views

Use devnet tokens in Phantom mobile app to pay for test transactions

Hi I am developing a mobile Dapp. Everything is working fine. I have connected to Phantom mobile app but when I pay for demo transactions, Phantom mobile app wants me to pay with real money even ...
0 votes
0 answers
8 views

Error Creating AssociatedTokenAccount when the signer/funder is one of the seeds. Any way around this?

Im getting this error "Transaction simulation failed: Error processing Instruction 0: incorrect program id for instruction" I think its because Im passing in the same account twice one as ...
0 votes
1 answer
7 views

My variable u64 is not saved and appears as undefined

When I use the fetch method my variable u64 appears as undefined
0 votes
0 answers
6 views

Walllet is "locked". Can't pay transaction fees to close/update program

I am currently facing this issue that doesnt let me close my program (I don't really want to loose all the rent right now) https://forums.solana.com/t/help-me-my-wallet-was-locked-unable-to-pay-a-...
0 votes
0 answers
8 views

Sending SPL Token Exception

I am attempting to transfer tokens when a user clicks a button. Once a user connects their wallet I have this method that gets called when a user clicks a button async function claimTokens() { ...
0 votes
1 answer
9 views

hello-world example build failure with cargo_build_sbf

I follow instructions in https://github.com/solana-labs/example-helloworld and got stuck in this step npm run build:program-rust The error shows program-rust % npm run build:program-rust > ...
  • 1
0 votes
1 answer
13 views

Is it possible to reverse a PDA?

I wanna know if we can reverse a PDA ? I have a PDA created with a timestamp, and I lost this timestamp... Can I get back this timestamp from reverse the PDA ? I know approximately the day, the hour, ...
  • 105
0 votes
0 answers
4 views

Streaming account history from arbitrary block

Is there currently anything available that will allow one to easily stream from any arbitrary block (perhaps even genesis block) and pump a subset of account data through the Geyser plugin framework? ...
  • 101
0 votes
0 answers
15 views

WalletMultiButton in react/typescript application does not seem to be functioning as a button

I have followed along with a few tutorials at this point, but I pulled code directly from the following website: https://www.0xdev.co/how-to-connect-to-a-solana-wallet-to-your-react-app/ After ...
  • 1
0 votes
1 answer
18 views

PublicKey.toString() vs PublicKey.toBase58()

@solana/web3.js has 2 ways to convert a public key to string. what's the difference between PublicKey.toString() and PublicKey.toBase58()
0 votes
0 answers
11 views

accessing security.txt from python

I am trying to integrate security.txt https://github.com/neodyme-labs/solana-security-txt into a project, and while from the repo it is clear how to access it from rust, I am at a loss as to how to do ...
  • 151
0 votes
1 answer
11 views

Fake token for Phantom app on mobile (devnet)

Hi I am developing a mobile dapp. Everything seems to be on the right track however I need fake tokens on my Phantom app (devnet) to test my app. My application is not complete yet, I think need more ...
0 votes
1 answer
14 views

Reject promise after trying to send transaction for 50 seconds

I created an API where I send sol. I put it in a try-catch block so if it succeeds or fails I will get a response. Right now the Solana blockchain is down so it would load way too long and my API ...
  • 33
0 votes
2 answers
18 views

How to update the updateAuthority of an NFT

good afternoon everyone! I'm having trouble finding docs / examples on how to change the updateAuthority of a mint address. would someone be able to point me in the right direction / help out here? ...
  • 1
0 votes
0 answers
4 views

(resolved) Setting up a file wallet

Edit - fixed gm, I've ran into the following error when verifying my address against my keypair file zsh: no such file or directory: DErdG3QsrZGaK36pBXVCeNvtSpbUC6hDXyUJSqKLM4nT it's confusing bc this ...
  • 1
0 votes
0 answers
20 views

error when attempting to send USDC transaction on Solana

I am encountering the following error when trying to send a transaction: WalletSendTransactionError: Missing or invalid parameters. at n. (adapter.ts:188:23) at f (regeneratorRuntime.js:86:17) at ...
0 votes
0 answers
17 views

Solana JSON RPC slower than @solana/web3.js?

Has anyone else noticed that calls to the JSON RPC for solana seem to be not as current as calls to @solana/web3.js? The method I noticed this for was getProgramAccounts. When I create a new account ...
  • 112
0 votes
0 answers
3 views

How to programmatically access any wallet assets of protocols such as Orca/ Raydium or Solend

I need to programmatically fetch the tokens balances and other assets like from orca/ raydium/ solend. I am able to fetch token balances using the getTokenAccountsByOwner method but do not how to ...
0 votes
1 answer
6 views

Issues with installing solana on m1 mac book (macOS Monterey v12.6)

Followed guide https://dev.to/0xmuse/install-solana-on-m1-macs-without-rosetta-10m5 to install solana as I was reading about issues installing with rosetta. But after running ./scripts/cargo-install-...
0 votes
0 answers
5 views

What does “External” in Solana Instructions stand for?

I noticed that all transfers jsons I work with, have the field "external" inside the transactions object. For wWhat does “External” in Solana Instructions stand for?
0 votes
0 answers
14 views

Are solana addresses uniformly distributed?

If I took every single 256 bit wallet public key, divided them by 20 and floored that to an integer, could I expect a reasonably uniform distribution (5% for each value, in this case) in the range of ...
  • 1
0 votes
1 answer
19 views

Access violation in stack frame

I am facing an error called Access violation in stack frame ..., I tried to solve my problem with this but didn't work. My instruction : pub fn save_tournament_eight_players( ctx: Context<...
0 votes
0 answers
9 views

How to batch send two transactions where the second one depends on the first one?

I have two transactions, and the 2nd one depends on the first one. What would be the best way to send these efficiently? As of now I'm signing them at once, and then sending them one by one using web3....
1 vote
1 answer
13 views

Phantom app Picture

Not really a tech question, but how can I set a custom icon in phantom Browser ?
  • 105
0 votes
1 answer
8 views

how to change authority of mint account?

i'm trying to change the authority of token mint to a pda so only the program can mint pub fn into_set_authority_context(&self) -> CpiContext<'_, '_, '_, 'info, SetAuthority<'info>>...
  • 63
0 votes
1 answer
21 views

Get NFT's owner on chain

Was wondering what would be the best solution to get the owner of an NFT on chain. I am trying to validate this as I need to run some fn on my program only if the signer is the owner of the NFT. I ...
  • 3
0 votes
0 answers
6 views

is it possible to show logs from `solana-program-test` only for failed tests?

When I test my programs with solana-program-test, the clean output of libtest is flooded with test validator log: [2022-09-29T20:20:42.852247608Z INFO solana_program_test] "solcery_game" ...
  • 159
0 votes
0 answers
11 views

How to sign a transaction with the json rpc?

I am trying to send a transaction using the json-rpc api. But it requires me to send a fully signed transaction Currently the solana docs only mention how to sign a transaction with the solana-cli ...
0 votes
0 answers
4 views

how did you resolve installing solana-test-validator on a Mac M1 Max?

How did you overcome the challenge of reaching illegal hardware instruction solana-test-validator? I have installed Solana and Rust and Openssl. Running Solana --version returns solana-cli 1.13.2 (src:...
1 vote
3 answers
28 views

How do i convert the phantom mnemonic

How to convert a mnemonic from phantom i.e: 'some words that are secret ...' Into the following format: [ 118, 72, 137, 65, 79, 174, 185, 29, 222, 164, 107, 111, 226, 137, 150, 19, 162, 10, 56, 231, 5,...
1 vote
0 answers
6 views

Stake account info is not updated after epoch

I delegate 30 SOL the validator in 353 epoch. Stake account is 2o5G3H5dCb2akeT1eU4Q9WUz7Ky8hco2QmoAQg2ki42Z. In 354 epoch I got rewards and my stake right now is 30.013167766 SOL. But when I'm trying ...
0 votes
0 answers
4 views

What exactly mean minContextSlot parameter for getting program accounts?

I would like to get only fresh program accounts by context slot. But when I use the getProgramAccounts method with minContextSlot parameter, nothing happens, I just get the all program accounts.
1 vote
0 answers
17 views

Transaction too large

I have an instruction which has a heavy payload, And I am getting Transaction too large Error, I wanted to know if there is a way to handle this error or should I break the transaction into two pieces?...
1 vote
0 answers
3 views

Testing transactions that should fail with anchor

I am currently writing unit test for my Solana contract written using the Anchor framework. I have created unit tests for the positive flow of how things should work, and all the tests are passing, ...
1 vote
2 answers
29 views

Error with newly migrated Certified NFT Collection

I just migrated my NFT collection to the new Metaplex certified collection standard using their tool at link Now when I try and run .nfts().update() I get the following error Source: Program > ...
0 votes
0 answers
4 views

How to include a new token in one of the Solana TokenProviders?

We've successfully created a new token and listed a Serum market for it using Dexlab. We can perform trades with it but we don't know how to have it listed in one of the Solana TokenProviders. How can ...
  • 101
0 votes
0 answers
11 views

Close PDA account dynamically and conditionally in secure way

I want to close the PDA account only on specif condition. Macro [account(mut, close = <target_account>)] does not work in this case because it will always be triggered after instruction ...
  • 81
1 vote
0 answers
6 views

How to have a single transaction that enables a custom program to verify two partial offline signers?

I need a single transaction that allows a custom program to verify that two signers are who they say they are: signer1: create, sign, serialize transaction and send to signer2. signer2: deserialize, ...
2 votes
1 answer
18 views

How to parse event in transaction log with Anchor

I have following transaction logs which contains triggered event and I want to parse it: 'Program log: Instruction: Init', 'Program data: 867fyqeFJJGYZDSk+Vy/7Cpm35d+fps/e3WovaZGp4v+...
  • 81
0 votes
1 answer
12 views

How to validate that partially signed transactions aren't malicious?

Taken from https://solanacookbook.com/references/offline-transactions.html#partial-sign-transaction If Alice is the fee payer and has to sign the transaction, how does she know that Bob hasn't ...
1 vote
1 answer
10 views

Print in Solana Playground

I want to debug my program in Solana Playground. I am using print function to get logs. The containing function is running but not producing any log. Attaching screenshot below.

15 30 50 per page
1
2 3 4 5
32