Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 50
32 votes
Accepted

What is a Program Derived Address (PDA) exactly?

Is this an account or is it an address? A PDA is an address with special properties. They are 32-byte strings that look like public keys, but don’t have corresponding private keys. … Why can't I just use a regular account instead? You can, but it requires you to explicitly know all the addresses of where data is stored for your program. …
C.OG's user avatar
  • 2,907
1 vote

Do I have to pay when deploy a project with one code account and one store data account

Yes, all accounts have to pay rent. Validators on the network need to maintain a copy of the state in memory; the cost of that is rent. All accounts are required to be rent exempt by default. Executab …
C.OG's user avatar
  • 2,907
1 vote
Accepted

Make reading from PDAs private

As you correctly stated, anyone who knows the seeds can find the address of a PDA. There is no mechanism to have a private PDA. You can obfuscate the data instead, e.g. via encryption or some other me …
C.OG's user avatar
  • 2,907
6 votes
Accepted

Can you modify a non-PDA account's data when you know its private key

Only the owner of an account can debit lamports or modify its data. You have the private key, which gives you the signing authority of that account, but you're not the owner. … Even with this signing authority only the owner (a program) can actually write data to the account. …
C.OG's user avatar
  • 2,907
6 votes
Accepted

How to efficiently transfer NATIVE SOL to a program accepting WRAPPED SOL?

Each transaction will require the wallet to sign the transaction. Rather than three separate transactions, create one transaction with the three instructions. This is the only way to have the user acc …
C.OG's user avatar
  • 2,907