Skip to main content

All Questions

1 vote
1 answer
23 views

Is there anyway to decode program account change that I don’t know the struct?

I’m trying to decode update that I got from the call of “connection.onProgramAcccountChange” but I don’t know the struct of possible outcome, is there anyway to get the struct or decode it somehow ? ...
Daniel Kotlarov's user avatar
1 vote
1 answer
36 views

Websocket version of getProgramAccounts

Is there a WebSocket version of getProgramAccounts that allows me to fetch PDAs with supplied seeds?
kekti's user avatar
  • 55
2 votes
1 answer
334 views

Get AccountInfo from ProgramId, or invoke program method using ProgramID

If I've programId (Pubkey) of a program, is it possible to get AccountInfo (or Program) object somehow? Or conversely, is it possible to somehow invoke a (view) method on program if its programId is ...
Sarfaraz Nawaz's user avatar
1 vote
0 answers
18 views

Question about solana programs

Why is it recommended that solana programs check the validity of any account it reads, but does not modify?
Mehmet Ayd's user avatar
0 votes
2 answers
261 views

My sol stuck in prgram. How can I close program and recover it?

I was deploying program and by mistake I missed the keyword program and just typed solana deploy <PROGRAM_FILEPATH> which return the below program Id and there is no upgradeable authority. Now ...
Abdul Maajid's user avatar