I want to create PDA with no data in it, only SOL balance is needed. Reading following questions (q1, q2) I found out that I need to create System Account PDA
, but I am having trouble to implement this with anchor. Some small example how to create and use it would be appreciated.
There are some question that comes using System Account PDA
:
- In instruction context,
System Account PDA
should be specified as SystemAccount? - Would program be able to withdraw SOL from
System Account PDA
and ensure that the program is the only account that withdraw SOL? - When calling the transaction that withdraw SOL from
System Account PDA
,signers
are not required since it's PDA and there is no private key?