Build with CoinStats’ all-in-one API. Learn more

Deutsch한국어日本語中文EspañolFrançaisՀայերենNederlandsРусскийItalianoPortuguêsTürkçePortfolio TrackerCryptocurrenciesPricingCrypto APIMCPIntegrationsNewsRWA MarketEarnBlogNFTWidgetsDeFi Portfolio TrackerDerivativesETF FlowsCrypto GamingPrediction Markets24h ReportPress KitAPI Docs

Solana Accounts Model: How It Works and Why It Matters

2h ago•
bullish:

0

bearish:

0

Solana Accounts Model Explained for Developers and Users

The Solana Accounts Model confuses many newcomers because Solana programs keep no storage of their own. Code sits in one-account, and state sits in others. 

Wallets, tokens, and apps, including tools covered in Solana Payments, all rest on this design. Protocol facts below follow the official-account structure documentation.

How Solana Stores Everything

In the Solana Accounts Model, all on-chain state lives in accounts found by unique addresses. 

Each account holds lamports, data, an owner, an executable flag, and a legacy rent epoch field. Programs process instructions and touch only the accounts a transaction supplies.

Labels used below:

  • Live: matches current official documentation

  • Author calculation: simple math from official figures

  • Needs recheck: limits that may change with network upgrades

The Five Fields Inside Every Account

  • Lamports: the balance, where 1 SOL equals 1 billion lamports

  • Data: raw bytes, empty for a plain wallet

  • Owner: the program was allowed to change data and deduct lamports

  • Executable: a flag that marks program-accounts

  • Rent epoch: a deprecated field kept for compatibility

All five fields are live per the official docs.

Who Can Change What: The Ownership Rule

Anyone can send lamports to an account. Only the owner program can deduct them or edit the data. 

This single rule explains most behavior in the Solana Accounts Model, and it is also where many security bugs begin.

Account-types Compared

Account-type

What it holds

Typical owner

Common use

Wallet

SOL balance

System Program

User funds

Program

Executable code

A loader program

Contract logic

Data

Application state

A custom program

Settings, game state

Mint

Token definition

Token Program

Supply and decimals

Token

One owner's balance

Token Program

Holding a token

The official account types page covers each category in more detail.

Why Developers Like the Code and State Split

Each transaction lists every account it touches and marks each one writable or read-only. The runtime can then process transactions that touch different accounts at the same time. 

That is a major reason Solana runs work in parallel. The cost falls on builders, who must pass in every account up front. 

A transaction is capped at 1,232 bytes, which limits how many accounts fit. Developers shaping Solana Actions feel this limit early.

Rent Exemption: What Storage Really Costs

Despite the name, rent works as a refundable deposit, not a recurring charge. An account must hold a minimum balance based on its size. The formula is (128 + data length) x 6,960 lamports.

Two worked examples:

  • A zero-data wallet-account needs 890,880 lamports, about 0.00089 SOL (author calculation, needs recheck)

  • A 165-byte token-account needs 2,039,280 lamports, about 0.00204 SOL (author calculation, needs recheck)

Closing an account returns its lamports to a chosen address. Accounts can grow to 10 MiB (live, needs recheck), yet compact data keeps deposits low.

PDAs: Accounts That Sign Without a Key

A program-derived address (PDA) is built from a program ID and seeds. It has no private key, so no person can sign for it. 

Developers use PDAs for vaults, profiles, and escrow records. Predictable addresses let apps find user data without a lookup table. Flows such as Solana Pay depend on this kind of account-logic behind the scenes.

Where Tokens Actually Live

A wallet never holds tokens directly. Picture a simple flow:

  1. A mint account-defines the token.

  2. A token-account-stores one owner's balance for that mint.

  3. An associated token-account follows a fixed address formula, so anyone can calculate where a balance sits.

Sending a token to a wallet with no matching token-account means creating one, and the sender usually pays that deposit. Buyers following the How to Buy Solana guide may notice this extra cost on a first transfer. 

The official token documentation explains closure and ownership.

Solana vs. Ethereum: A Quick Comparison

Topic

Solana

Ethereum

Where code lives

Program account

Contract account

Where state lives

Separate data accounts

Inside the contract's storage

Account access

Declared in each transaction

Resolved during execution

This is a simplified view, since both chains have exceptions. The Solana Accounts Model favors explicit lists, while Ethereum favors contract-held storage.

What Everyday Users Should Check

Most users never touch these details, yet the Solana Accounts Model shapes the wallet experience. Before signing anything, users can check:

  • The recipient address, token, and amount

  • Whether the request is a plain transfer or a token approval

  • Any unfamiliar program name in the preview

Empty token-accounts can be closed to reclaim the deposit, and unknown tokens that appear in a wallet are best ignored. Fresh ecosystem updates, such as Solana News Today, help users spot new risks.

Security and Risk Section

Account-design gives developers freedom, and mistakes follow when checks are skipped.

  • Missing owner checks: a program may accept a fake--account

  • Missing signer checks: an action may run without approval

  • Broad approvals: unclear signatures can expose token balances

  • Unsafe closing logic: leftover data or lamports can be exploited

  • PDA mistakes: weak seed validation can let the wrong account-pass

Frameworks such as Anchor add many checks by default. Audits and frameworks reduce risk, but neither guarantees safety.

Final Thoughts

The Solana Accounts Model rests on three ideas: everything is an account, programs stay stateless, and owners control changes. Rent, PDAs, and token-accounts all grow from those rules. 

Limits and fees can change, so readers should confirm current figures in the official Solana documentation before building or signing.

Disclaimer: This article offers general education about Solana. It is not financial, investment, legal, or tax advice, and it does not recommend buying, selling, or holding any asset. Crypto assets carry risk, and losses are possible.

2h ago•
bullish:

0

bearish:

0

Manage all your crypto, NFT and DeFi from one place

Securely connect the portfolio you’re using to start.