Ethereum developer interview questions and how to answer them
Ethereum developer interview questions go deep on the EVM: how gas and fees work, where data lives (storage, memory, calldata, logs), how calls and delegatecall behave, the token standards, upgrade patterns and the tooling used to test and deploy contracts. Security comes up in every round, usually through a code review of a vulnerable contract. Expect a live coding task in Solidity or a take-home with Foundry or Hardhat tests, and be ready to explain the gas and trust trade-offs of each design choice.
By Evin JohnPublished 7 min read
What the role involves
An Ethereum developer writes, tests and maintains smart contracts that run on Ethereum or an EVM-compatible chain, along with the scripts and services around them. Day to day that means Solidity (sometimes Vyper), a test framework such as Foundry or Hardhat, front-end or backend integration through a library such as ethers.js or viem, deployment and verification scripts, and close work with auditors. Many teams deploy to several EVM networks, including layer 2 rollups, so you are expected to know where they behave differently from mainnet.
If you want the broader view of blockchain engineering, including security classes, audits and off-chain indexing, read the blockchain developer guide. This page goes further into the EVM itself, gas, the standards most protocols build on, and the questions that show you have shipped contracts on Ethereum specifically. Backend fundamentals still matter, so the backend developer questions are worth a look if the role includes indexers or APIs.
How Ethereum interviews are often structured
| Stage | Format | What is assessed |
|---|---|---|
| Screen | Call with a recruiter or engineer | What you have deployed, on which networks, value at stake, audits you went through |
| EVM and Solidity fundamentals | Technical conversation | Gas, storage, calls, standards, and why the language behaves as it does |
| Code review | Read a contract, live or as homework | Finding bugs, ranking them by severity and proposing fixes |
| Build task | Live coding or take-home with tests | A small contract such as a vault, escrow or staking pool, with tests and gas awareness |
| Design discussion | Whiteboard or document | Architecture of a protocol feature: upgrades, roles, oracles, failure modes |
| Behavioral | Conversation | Incidents, audit disagreements, shipping under pressure |
EVM and protocol questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| What is the difference between an externally owned account and a contract account? | Account model | An EOA is controlled by a private key and starts transactions; a contract account has code and runs only when called |
| Explain the fee model introduced by EIP-1559. | Fees | A base fee set by the protocol and burned, which rises or falls with block demand, plus a priority fee to the block producer, capped by the sender's max fee |
| What is gas, and why does the EVM need it? | Execution model | A unit of work that prices computation and storage, prevents endless loops and makes the sender pay for what they use |
| Where can data live in the EVM, and what does each cost? | Data locations | Stack, memory (temporary, per call), storage (persistent, most expensive), calldata (read-only input) and logs (cheap, not readable by contracts) |
| What happens when a transaction reverts? | Atomicity | State changes in that call frame roll back, gas used so far is still paid, and the revert data can carry an error |
| How do nonces work for an account? | Transactions | Each transaction from an EOA uses the next nonce, which orders them, prevents replay, and lets a pending transaction be replaced with a higher fee |
| What is the difference between call, staticcall and delegatecall? | Calls | call runs the target's code in its own context; staticcall forbids state changes; delegatecall runs the target's code in the caller's storage and context |
| How does CREATE2 differ from CREATE? | Deployment | CREATE2 makes the address depend on the deployer, a salt and the init code, so addresses can be known before deployment |
| What did EIP-4844 change for rollups? | Scaling | It added blob-carrying transactions, a cheaper and temporary place for rollups to post data, priced in their own fee market |
Solidity questions
- How does Solidity lay out state variables in storage? In 32-byte slots in declaration order, with smaller types packed together when they fit in one slot. Mappings and dynamic arrays use slots derived from a hash of their position.
- When should a function parameter be calldata instead of memory? For read-only array or struct inputs to external functions, because it avoids copying the data.
- What is the difference between constant and immutable? constant is fixed at compile time; immutable is set once in the constructor and stored in the code, and both avoid storage reads.
- Why use custom errors instead of revert strings? Cheaper to deploy and to revert with, and they can carry typed parameters for better debugging.
- Is arithmetic overflow still a concern? Since Solidity 0.8 it reverts by default; the risk returns inside unchecked blocks, in inline assembly, and with unsafe type casts.
- What does msg.sender mean inside a delegatecall? It stays the original caller of the proxy, which is why proxies can pass through authentication.
- Why is tx.origin a poor choice for authorization? A malicious contract the user calls can forward the call, and tx.origin would still be the user.
- What are events for, and what can they not do? They give off-chain systems a cheap record to index; other contracts cannot read them.
Standards and design patterns
- What surprises have you seen with ERC-20 tokens? Tokens that do not return a boolean, fee-on-transfer tokens, rebasing balances and tokens with blocklists. A safe-transfer wrapper and balance-before-and-after checks handle many of them.
- Why does safeTransferFrom in ERC-721 call the receiver? To make sure a contract recipient can handle the token; it also creates a reentrancy point you must account for.
- When would you use ERC-1155 instead of ERC-721? For many token types in one contract, batch transfers, or fungible and non-fungible items together, as in games.
- What is ERC-4626, and what is the classic risk with vaults? A standard interface for tokenized vaults; the well-known risk is share-price manipulation when a vault is empty or nearly empty, which teams mitigate with virtual shares or an initial deposit.
- Compare transparent and UUPS proxies. Both delegate to an implementation; transparent proxies keep upgrade logic in the proxy and separate admin calls, while UUPS puts upgrade logic in the implementation, which is cheaper but must never be left out of a new version.
- What is a storage collision in an upgradeable contract? A new implementation that reorders or changes variables reads the wrong slots. Append-only layouts, storage gaps or namespaced storage prevent it.
- How do typed signatures (EIP-712) and permit (EIP-2612) work, and what can go wrong? Users sign structured data off-chain for an on-chain action; the contract must check the domain, nonce and deadline so a signature cannot be replayed elsewhere.
- What does account abstraction (ERC-4337) add? Smart contract wallets that submit user operations through bundlers and an entry point contract, allowing features such as sponsored gas and custom signature checks.
Security and code review questions
| Question | What a strong answer shows |
|---|---|
| Find the bug in this withdraw function. | The external call happens before the balance update; fix with checks-effects-interactions and a reentrancy guard |
| This contract reads a price from a single exchange pool. Is that safe? | A flash loan can move the spot price within one transaction; use a time-weighted or external oracle and sanity bounds |
| How would you rank the issues you found? | By impact and likelihood, with funds at direct risk first, and a clear note on assumptions |
| What could a block producer or searcher do to this function? | Reorder, insert or delay transactions; consider slippage limits, commit-reveal or batch designs |
| How do you test a contract beyond unit tests? | Fuzzing, invariant tests that hold after any sequence of calls, fork tests against real deployed contracts, and static analysis |
Gas, layer 2 and tooling questions
- Name three ways to cut gas in a contract you already wrote. Pack storage, cache storage reads in memory, use calldata and immutable values, and avoid unbounded loops. Measure each change with a gas report.
- When is a gas optimization not worth it? When it hurts readability or safety for a tiny saving on a rarely called function.
- How does deploying to a rollup change your assumptions? Fees include the cost of posting data to Ethereum, finality and withdrawal times differ, and some opcodes or precompiles may behave differently; read the chain's documentation.
- How do you simulate a transaction before sending it? eth_call or a fork test, and estimate gas, then compare against what the transaction actually used.
- Foundry or Hardhat? Name what you used and why: Foundry for Solidity-native tests, fuzzing and speed; Hardhat for a JavaScript or TypeScript toolchain and plugins. Many teams use both.
Fictional example
- On a staking contract I worked on, rewards were tracked per share, and our unit tests all passed. I added an invariant test that random users could deposit, claim and withdraw in any order, and that the contract's token balance should always cover what it owed. The fuzzer broke it within minutes: a user who deposited in the same block a reward was added could claim part of that reward. The cause was the order of updates in deposit. We moved the reward update to the top of every state-changing function, added the invariant to CI, and wrote it up for the auditors, who later told us it saved them time on that part of the review.
Two weeks of preparation
- Days 1 to 3: EVM refreshData locations, calls, gas and the fee model. Explain each out loud in two sentences.
- Days 4 to 6: standardsRead the ERC-20, ERC-721 and ERC-4626 interfaces, and an audited implementation of each.
- Days 7 to 9: review practiceWork through intentionally vulnerable practice contracts and past public audit reports, writing findings with severity.
- Days 10 to 12: build and testWrite a small vault or escrow with fuzz and invariant tests, then run a gas report and improve it.
- Days 13 and 14: your storyPrepare deployments, incidents and audit conversations using the behavioral guide.
Explaining gas, storage and proxies out loud is harder than knowing them, and a mock interview shows the gaps fast. When you practice on Mac or Windows, Natively, an AI interview assistant, keeps a live transcript of what you say and can offer an answer when you lose the thread on delegatecall or fee mechanics. On Pro or the free trial it can take your résumé and the job description into account. The transcript and notes it saves let you check, after the session, whether you ranked review findings clearly.
Questions people ask
What questions are asked in an Ethereum developer interview?
Expect EVM fundamentals (gas, fees, accounts, data locations, call versus delegatecall), Solidity details such as storage layout and custom errors, token standards, upgradeable proxies, signatures, layer 2 differences, a security code review and a build task with tests.
How do I explain gas and the EIP-1559 fee model in an interview?
Gas measures the work a transaction does. Under EIP-1559 each block has a base fee that is burned and moves with demand, and the sender adds a priority fee for the block producer, capped by a maximum fee they set.
What is the difference between storage, memory and calldata?
Storage is persistent contract state and the most expensive to write. Memory is temporary for one call. Calldata is the read-only input of an external call and avoids copying. Logs are cheap but cannot be read by contracts.
Is there a coding test for Ethereum developer jobs?
Usually. Common formats are reviewing a vulnerable contract and ranking findings, writing a small contract such as a vault or escrow with tests in Foundry or Hardhat, or optimizing gas without changing behavior.
Where to go next
Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.
Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.
