Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
37 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 ? ...
1 vote
1 answer
58 views

Websocket version of getProgramAccounts

Is there a WebSocket version of getProgramAccounts that allows me to fetch PDAs with supplied seeds?
2 votes
1 answer
398 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 ...
1 vote
0 answers
19 views

Question about solana programs

Why is it recommended that solana programs check the validity of any account it reads, but does not modify?
0 votes
2 answers
338 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 ...