本文へ移動
Contact

TECHFUND
Media

Hi AUDIT
2025/12/1

How Solana Accounts Are Different from Ethereum Contracts

“On Solana, smart contracts don’t store state inside the contract itself. Instead, all state — balances, variables, configuration, user data — lives in separate accounts that are owned by the program. They are just instructions. If you are coming from Ethereum, this sounds impossible. But it is actually the secret to scalability.”

What Is an Account in Ethereum ?

In Ethereum, an account is any entity that can hold ETH, send transactions, interact with blockchain. There are only two types of accounts in Ethereum :

  • Externally Owned Account

  • Contract Account

 1. Externally Owned Account :

An Externally Owned Account (EOA) is an Ethereum account controlled by a person using a private key. It’s the wallet you use to send transactions or hold ETH. Unlike smart contract accounts that run on code, EOAs are managed directly by users.

2. Contract Account :

A contract account is an Ethereum account that contains smart contract code instead of being controlled by a person.

  • A contract account is created when someone deploys a smart contract.

  • It has a unique address, contract bytecode, storage (variables, mappings, balances).

  • It cannot send a transaction on its own — it can only respond when another account interacts with it.

What Is an Account In Solana ?

An account in Solana is like a file or a data container that stores information on the blockchain. In Solana, accounts are the main characters. Almost everything is an account :

  • User wallets are accounts

  • Smart contracts (called “programs”) are accounts

  • NFTs and tokens use accounts

  • Data storage happens in accounts

  • Program data is stored in accounts

Every account has these essential components:

  • Lamports : The amount of SOL (or fractions of SOL) the account holds. Like money in a bank account.

  • Owner : The “smart contract” that has permission to modify this account.

  • Data : The information stored in the account (could be code, numbers, text, etc.).

  • Executable : Whether the account is a program (executable code) or just data storage.

  • Rent : You must pay “rent” to keep data on-chain.

Solana Accounts vs Ethereum Contracts

  1. “Coupled vs. Decoupled: The Separation of Logic and State” :

  • Ethereum uses a coupled model: A Smart Contract contains both its code (logic) and its data (state) in one single package.

  • Solana uses a decoupled model: A Program (smart contract) contains only code and is completely stateless. It must fetch data from separate “Accounts” to process it.

2. Stateful vs Stateless Programs :

  • In Ethereum smart contracts are inherently stateful, meaning they maintain their own internal storage and can remember data across transactions. When a contract updates a variable — such as token balances, mappings, or configuration values — that data is permanently stored within the contract’s state on-chain.

  • A Solana program does not hold any internal memory and forgets everything once execution ends. To maintain data between transactions, it must explicitly read from and write to external accounts such as PDAs, user accounts, or token accounts. These accounts act as the program’s storage, and they must be passed into every instruction for the program to access or update them.

3. Transaction Execution : 

  • Ethereum supports sequential transaction execution — transactions are processed one after another in a strict, predetermined order. Because of this, Ethereum is bit slower, as it cannot execute multiple independent transactions in parallel.”

 Imagine two users:

  • Alice wants to swap tokens on Uniswap.

  • Bob wants to transfer ETH to a friend.

 On Ethereum:

  1. Alice’s transaction is included in the block first.

  2. Bob’s transaction is executed only after Alice’s is fully processed.

  3. Even if Bob’s transaction touches different accounts, the Ethereum Virtual Machine will still run them one-by-one, in a fixed order.

  • Solana supports parallel transaction execution if they do not access overlapping accounts in conflicting ways . Because of this solana is faster as compare to ethereum. Solana takes a different approach with parallel transaction execution, powered by its runtime called Sealevel.

 Now imagine a similar situation on Solana:

  • Alice interacts with a liquidity pool account A.

  • Bob sends tokens to his friend using account B.

As long as Alice’s transaction lists account A and Bob’s lists account B, Solana can detect they don’t conflict.

So Solana will:

  1. Run Alice’s transaction.

  2. At the same time, run Bob’s transaction.

  3. Because they touch different accounts, they are processed in parallel.

Hoping that you learned something from this blog. See you again next time in another awesome blog. Good Luck & WAGMI :)

Author: Mohini Vasisth

Intern, Security Researcher at TECHFUND

Hi AUDIT

Hi AUDIT is a high speed, high quality, best price security audit service, providing automated audit SaaS and consulting for web3 startups.
View More