Skip to content
To create an account on Solana, invoke the System Program’s createAccount instruction. This instruction requires you to specify the number of bytes (space) for the new account and fund it with lamports for the allocated bytes (rent). The account’s owner program is set as the program specified in the instruction. The Solana runtime enforces that only this owner program can modify the account’s data or transfer lamports from it.
On Solana, only the System Program can create new accounts. To create accounts owned by other programs, invoke the createAccount instruction to create a new account and set the owner program to the desired program. The new program owner can then initialize the account data through its own instructions.
Kit
Output from a local Surfpool network
Output
The recorded output comes from a local Surfpool network, which still uses the older rate of 6,960 lamports per byte. Mainnet and devnet use 5,080 lamports per byte as of October 2026, so they return a lower value. See rent.