Solana is an currency and also let people to build on top of it
On Solana we can also store data, Programs and currency(Lamports)
How Solana Works https://solanahowitworks.xyz/
Rent on Solana ⇒ Rent is a mechanism on the Solana blockchain that ensures efficient usage of the blockchain’s resources. It requires accounts to maintain a minimum balance proportional to the amount of data they store on the network. Accounts that fail to maintain this minimum balance will be removed from the ledger to free up storage. And Rent is Refundable.^Rent-Explanation
There are two ways to store data on BlockchainEither you store some amount from which rent will be deducted for every few minutes or store an minimum amount such that you no need to pay rent at all. For example Banks required minimum balance to keep your account alive or pay some money every month to keep your account alive
To know more about Rents on Solana checkout this article QuickNode
- To know how much rent needed to be store the data use this command in Solana CLI
solana rent <bytes you want to store>- For testing we can use Solana cli to airdrop some Solana via terminal
solana config set --url https://api.devnet.solana.com
solana airdrop 1
solana balance- Interesting thing you can run your own Solana test validator rather than using
https://api.devnet.solana.com
solana-test-validator
# copy the JSON RPC URL that output by above command and open a new terminal
solana config set --url <JSON RPC URL>
solana airdrop 1
solana balance- If you want an specific public should get generated like some public key starts with
sadiqor something we can get it by cli
solana-keygen grind --starts-with sadiq