Link to this headingSolana

Link to this headingAccounts

Account Types:

  • System Account[0 bytes]: For holding SOL only
  • SPL Token Account[165 bytes]: For holding tokens
  • SPL Mint Account[82 bytes]: For Token Contracts
  • Program Account[Variable]: For Smart Contracts. Needs SOL for all of the bytes of the contract
  • Stake Account[~200 bytes]:
  • Vote Account[~373 bytes]:

Link to this headingRent & Rent-Exemption

Solana has storage costs and requires SOL to be a valid address.
If the account doesn’t have the minimum balance it can be reclaimed

Getting the MinRent:

#System Account has 0 bytes curl https://api.mainnet-beta.solana.com -X POST -H "Content-Type: application/json" -d '{ "jsonrpc":"2.0", "id":1, "method":"getMinimumBalanceForRentExemption", "params":[0] }' {"jsonrpc":"2.0","result":890880,"id":1} # SPL Mint Account >>> curl https://api.mainnet-beta.solana.com -X POST -H "Content-Type: application/json" -d '{ "jsonrpc":"2.0", "id":1, "method":"getMinimumBalanceForRentExemption", "params":[82] }' {"jsonrpc":"2.0","result":1461600,"id":1} #Token Account has 165 bytes >>> curl https://api.mainnet-beta.solana.com -X POST -H "Content-Type: application/json" -d '{ "jsonrpc":"2.0", "id":1, "method":"getMinimumBalanceForRentExemption", "params":[165] }' {"jsonrpc":"2.0","result":2039280,"id":1}

When creating an account the payer must fund it.
When the owner closes an account they can get a refund