Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 336 Bytes

File metadata and controls

5 lines (3 loc) · 336 Bytes

PDA Rent-Payer

This examples demonstrates how to use a PDA to pay the rent for the creation of a new account.

The key here is accounts on Solana are automatically created under ownership of the System Program when you transfer lamports to them. So, you can just transfer lamports from your PDA to the new account's public key!