program-examples/basics/pda-rent-payer/README.md at main · DAPOR-001/program-examples

Skip to content

Navigation Menu

Sign in

Appearance settings

Latest commit

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!