Skip to main content

All Questions

Tagged with
0 votes
2 answers
32 views

Pay for PDA by a centralized wallet

I'm trying to build an app that will hold a user's wallet private key to sign for transactions and pay for the account from a centralized wallet that I own. I'm trying to avoid them having to approve ...
Christopher Nolan Buckley's user avatar
1 vote
1 answer
42 views

Not able to read the updated value in a Solana Data Account

I have a simple solana greeting-counter program, I have it deployed locally. When I am calling from my typescript code I am able to do pretty much all the transactions and verify them. Except the last ...
Md Tauhidul Islam's user avatar
1 vote
1 answer
18 views

Checking the generated PDA against the user's PDA input

First of all, I'm new to Solana development (came from an Ethereum background), so sorry if my question is too basic. I'm following the SolDev course, I'm on course state management. I have a ...
0xbrivan's user avatar
1 vote
1 answer
99 views

Correct way to define and initialize a variable-length account in Anchor

I have been following the Tic-Tac-Toe tutorial and i am experimenting with creating a PDA account in my program that holds a variable-length list of values (in particular, public keys representing ...
munifao's user avatar
  • 53
1 vote
0 answers
36 views

Increase PDA size after deployment

I read somewhere some time ago that Solana now provides feature to increase the PDA size post deployment. For example, let's assume that I deploy a PDA with a capacity to hold 10 Publickeys and later ...
Vineet Kinger's user avatar
2 votes
3 answers
190 views

Extending struct fields in a PDA and ensuring compatibility

I need to extend the fields I have within a PDA. Some accounts are already live, so I want those to still be compatible with the new layout. As a simple illustrative example, consider this account ...
mega_creamery's user avatar
3 votes
2 answers
337 views

What determines the data type sizes for Solana accounts?

Looking through examples like Soldev, one sees PDAs sizes calculated using code like: pub fn get_account_size(title: String, description: String) -> usize { return (4 + MovieAccountState::...
mikemaccana's user avatar
  • 2,150
3 votes
1 answer
223 views

How do you repopen a closed account?

If an account has been closed with the following anchor context: #[account( mut, close = user, seeds = [ SEED_SCHEMA.as_bytes(), &user.key().as_ref()...
mega_creamery's user avatar
1 vote
1 answer
45 views

Is it a good idea to add a "passphrase" as part of a PDA seed to store data encrypted on-chain?

Thinking about approaches to simplify e2e encryption, this is one of the ideas that came to mind. The seed then could further be used to encrypt the PDAs data. Sharing the passphrase between the ...
tenxsoydev's user avatar