System program
Course: Ownership And Authorities and PDAs - chapter 3
Solana contains a small handful of native programs that are part of the validator implementation and provide various core functionalities for the network.
When developing custom programs on Solana, you will commonly interact with two native programs, the System Program and the BPF Loader.
System program
Section titled “System program”By default, all new accounts are owned by the System Program. The System Program performs several key tasks such as:
- New Account Creation: Only the System Program can create new accounts.
- Space Allocation: Sets the byte capacity for the data field of each account.
- Assign Program Ownership: Once the System Program creates an account, it can reassign the designated program owner to a different program account. This is how custom programs take ownership of new accounts created by the System Program.
On Solana, a
walletis simply an account owned by the System Program. The lamport balance of the wallet is the amount of SOL owned by the account.

Using @solana/web3.js to interact with the System program
Section titled “Using @solana/web3.js to interact with the System program”Create a new account with data and rent
$1b
Transfer lamports from your account to another account
$1d
Change the owner of an account
$1f