John b4618e8ede Merge branch 'main' into anchor-update 1 年之前
..
anchor b4618e8ede Merge branch 'main' into anchor-update 1 年之前
native a70c93ba45 test: Adding test jobs github actions for anchor and solana native 💚 (#76) 1 年之前
README.md 3bd26a073a PDA rent-payer example 2 年之前

README.md

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!