Blockchain Interview Questions & Answers
All 200 unique questions in one place — 61 easy, 98 medium, 41 hard — grouped by topic.
Practise by topic
Practise the way your interview works
How is a blockchain different from a traditional database?
Show answer
What does a block contain and what is inside a block header?
Show answer
Explain public, private and consortium blockchains.
Show answer
How does a blockchain achieve immutability?
Show answer
You open a transaction on a block explorer. Which fields do you check and what do they mean?
Show answer
How would you set up a local blockchain for development and testing?
Show answer
Why do you want to build a career in blockchain?
Show answer
What is the difference between a full node, a light node and an archive node?
Show answer
What is double spending and how does a blockchain prevent it?
Show answer
Compare the UTXO model and the account model.
Show answer
What is the difference between a soft fork and a hard fork?
Show answer
What is the blockchain trilemma?
Show answer
What is a mempool?
Show answer
What are the main components of Hyperledger Fabric?
Show answer
An HR team wants to store employee records on a blockchain. Would you recommend it?
Show answer
Design a blockchain solution for farm-to-store supply chain traceability. What goes on-chain?
Show answer
A user's transaction has been pending for an hour. How do you troubleshoot it?
Show answer
Write a minimal Python example showing how blocks are linked by hashes.
Show answer
How do you get the latest block number from an Ethereum node using JSON-RPC?
Show answer
Tell me about a time you explained blockchain to a non-technical stakeholder.
Show answer
What is finality, and how does probabilistic finality differ from deterministic finality?
Show answer
A product team wants to store user documents and personal details directly on a public chain. What do you advise?
Show answer
A group of banks wants a shared KYC ledger. Would you choose a public chain, a Layer 2 or Hyperledger Fabric?
Show answer
Your exchange credited a deposit, but the block was later dropped in a reorg and the funds vanished. How do you prevent this?
Show answer
What is a cryptographic hash function and what properties must it have?
Show answer
How is public-key cryptography used in blockchain?
Show answer
What is a digital signature and what does it guarantee?
Show answer
What is a nonce in blockchain? Explain both common meanings.
Show answer
What is a hash collision and why does it matter for blockchains?
Show answer
A user lost their private key and seed phrase. Can you recover their funds?
Show answer
How do you compute a keccak256 hash in Solidity and in ethers.js?
Show answer
How do you keep up with security and cryptography developments in Web3?
Show answer
What is the difference between SHA-256 and Keccak-256?
Show answer
What is ECDSA and why does Ethereum use the secp256k1 curve?
Show answer
How is an Ethereum address derived from a private key?
Show answer
What is a Merkle tree and what is a Merkle proof?
Show answer
What are seed phrases and HD wallets (BIP-39, BIP-32, BIP-44)?
Show answer
Compare multisig wallets and MPC wallets.
Show answer
Users complain they must pay gas to approve tokens before every trade. How can signatures help?
Show answer
How would you check on-chain whether a user is in a 10,000-address allowlist without storing all addresses?
Show answer
A developer accidentally pushed a private key to a public GitHub repo. What do you do?
Show answer
Show how to sign and verify a message with ethers.js.
Show answer
Write a Python function that computes a Merkle root from a list of transactions.
Show answer
Describe a time you found a security problem in code and how you handled it.
Show answer
What is a Merkle Patricia Trie and why does Ethereum use it?
Show answer
What are zero-knowledge proofs, and how do zk-SNARKs and zk-STARKs differ?
Show answer
What is signature malleability and how is it prevented?
Show answer
Design the custody setup for an exchange's hot and cold wallets.
Show answer
How do you verify a signed message inside a Solidity contract?
Show answer
What is a consensus mechanism and why does a blockchain need one?
Show answer
How does Proof of Work function?
Show answer
Compare Proof of Work and Proof of Stake.
Show answer
What is a 51 percent attack?
Show answer
What is a Layer 2 and why is it needed?
Show answer
What is Bitcoin halving and difficulty adjustment?
Show answer
How does Ethereum's Proof of Stake work?
Show answer
What is slashing in Proof of Stake?
Show answer
What are Delegated Proof of Stake and Proof of Authority?
Show answer
What is the difference between optimistic rollups and zk-rollups?
Show answer
How is a sidechain different from a rollup?
Show answer
What are state channels, such as the Lightning Network?
Show answer
What is the difference between an execution client and a consensus client, and why does client diversity matter?
Show answer
Your dApp's users are paying high gas fees on Ethereum mainnet. How would you choose a Layer 2?
Show answer
A user is angry that withdrawing from an optimistic rollup to Ethereum takes seven days. How do you explain and solve it?
Show answer
Your staking validator is missing attestations and losing rewards. How do you investigate?
Show answer
Write a simple Proof of Work loop in Python with a difficulty setting.
Show answer
How do you deploy a contract to a Layer 2 testnet with Foundry?
Show answer
How do you read the latest finalized block with ethers.js, and why use it?
Show answer
Tell me about a technical decision you made where you had to balance trade-offs.
Show answer
Describe a time you disagreed with a teammate about architecture.
Show answer
Explain Byzantine Fault Tolerance and the 3f+1 rule.
Show answer
What did EIP-4844 (proto-danksharding) change?
Show answer
What is MEV and what is proposer-builder separation?
Show answer
You are asked to design a cross-chain bridge. What are the main risks and design choices?
Show answer
Four organisations are building a private EVM network. Which consensus would you pick: Raft or QBFT?
Show answer
What is Ethereum and how is it different from Bitcoin?
Show answer
What is the Ethereum Virtual Machine (EVM)?
Show answer
What is the difference between an externally owned account and a contract account?
Show answer
Explain gas, gas limit and gas price.
Show answer
What happens when a transaction reverts?
Show answer
What are testnets and how do you get test ETH?
Show answer
What was the Merge?
Show answer
How do you get current fee data and send an EIP-1559 transaction with ethers.js?
Show answer
Tell me about a blockchain project you have built.
Show answer
How does the EIP-1559 fee model work?
Show answer
What happens, step by step, when you send an Ethereum transaction?
Show answer
Explain storage, memory, stack and calldata in the EVM.
Show answer
What are the ABI and function selectors?
Show answer
What are events and logs in Ethereum?
Show answer
What is the difference between CREATE and CREATE2?
Show answer
A transaction keeps failing with an out of gas error. How do you fix it?
Show answer
You need the same contract at the same address on five chains. How do you do it?
Show answer
Your dApp needs a full history of user transactions and fast queries. Reading events from the node is too slow. What do you do?
Show answer
How do you read a contract's storage slot directly with Foundry's cast?
Show answer
How do you compute a function selector and decode calldata with cast?
Show answer
What is the difference between call, delegatecall and staticcall?
Show answer
What transaction types exist on Ethereum today?
Show answer
What is account abstraction, and how do ERC-4337 and EIP-7702 differ?
Show answer
A simulated eth_call succeeds but the real transaction reverts. What could cause this?
Show answer
Describe a production incident you handled under pressure.
Show answer
What is Solidity?
Show answer
What are value types and reference types in Solidity, and what are data locations?
Show answer
Explain public, external, internal and private visibility.
Show answer
What is the difference between view, pure and payable functions?
Show answer
What are function modifiers in Solidity?
Show answer
What is the difference between constant and immutable?
Show answer
Write a simple ERC-20 token using OpenZeppelin.
Show answer
Tell me about a time you learnt a new technology quickly to meet a deadline.
Show answer
How are mappings stored, and why can you not iterate over them?
Show answer
What is the difference between require, revert, assert and custom errors?
Show answer
How does inheritance work in Solidity, including virtual and override?
Show answer
Compare interfaces, abstract contracts and libraries.
Show answer
What is the difference between receive and fallback functions?
Show answer
How does arithmetic overflow work in Solidity 0.8, and when do you use unchecked?
Show answer
The business wants to change contract logic after launch. How do you plan for it?
Show answer
A function that distributes rewards loops over all users and is getting too expensive. How do you fix it?
Show answer
You need to send ETH to hundreds of winners. Should you push payments or let them pull?
Show answer
Write a Foundry unit test and a fuzz test for a contract.
Show answer
Write a simple escrow contract where a buyer deposits and releases payment to a seller.
Show answer
Write a basic voting contract using a struct, mapping and event.
Show answer
How did you handle a time you received critical code review feedback?
Show answer
How have you mentored junior developers on a smart contract team?
Show answer
How do upgradeable contracts work, and how do Transparent and UUPS proxies differ?
Show answer
What is storage packing, and what are other key gas optimisations?
Show answer
Your contract fails to deploy because it exceeds the 24 KB size limit. What do you do?
Show answer
What is the checks-effects-interactions pattern?
Show answer
How did integer overflow bugs happen before Solidity 0.8?
Show answer
Why should you not use tx.origin for authorisation?
Show answer
A user approved unlimited token spending to a scam site. What should they do?
Show answer
How do you run Slither on a Foundry project and focus on important findings?
Show answer
What is a reentrancy attack?
Show answer
What are front-running and sandwich attacks, and how do you mitigate them?
Show answer
What are common access control vulnerabilities?
Show answer
How can a smart contract suffer denial of service?
Show answer
Why is on-chain randomness insecure, and what should you use instead?
Show answer
Why should you check return values of low-level calls and use SafeERC20?
Show answer
What is a signature replay attack and how do you prevent it?
Show answer
What does a smart contract audit process look like?
Show answer
Which tools do you use for static analysis and fuzzing of smart contracts?
Show answer
An auditor flags that a single owner key can mint tokens and change fees. How do you address it?
Show answer
Your team is preparing a contract for an external audit. What do you do beforehand?
Show answer
Show a contract vulnerable to reentrancy and a fixed version.
Show answer
Tell me about a bug you missed and what you learned from it.
Show answer
How do flash loans enable oracle manipulation attacks?
Show answer
What are storage collision and uninitialised implementation risks in proxies?
Show answer
What are cross-function and read-only reentrancy?
Show answer
Your protocol is being exploited right now. What do you do?
Show answer
A lending protocol reads collateral prices from one DEX pool's current reserves. What is the risk and fix?
Show answer
Write a Foundry invariant test for a token's total supply.
Show answer
Management wants to launch before the audit is complete. How do you handle it?
Show answer
What is DeFi?
Show answer
Compare ERC-20, ERC-721 and ERC-1155 tokens.
Show answer
What types of stablecoins exist?
Show answer
Write a basic ERC-721 NFT contract using OpenZeppelin.
Show answer
How do you approve and transfer ERC-20 tokens from a script with ethers.js?
Show answer
How should NFT metadata and tokenURI be structured?
Show answer
A retail brand wants to give customers loyalty points as blockchain tokens. How would you design it?
Show answer
Why do you want to work in DeFi, given its risks and volatility?
Show answer
How does a constant product automated market maker work, and what is impermanent loss?
Show answer
Calculate the output of a swap in a constant product pool with a 0.3 percent fee.
Show answer
How do you calculate a borrower's health factor in a lending protocol?
Show answer
How do you read a Chainlink price feed in Solidity safely?
Show answer
Design token vesting for team members and early investors.
Show answer
You are launching a 10,000-piece NFT collection and fear gas wars and bots. How do you design the mint?
Show answer
Users complain they received far fewer tokens than expected on large swaps. What is happening and how do you help?
Show answer
A user lost funds on our DeFi app due to their own mistake and is angry. How would you handle it?
Show answer
Tell me about working with product, legal or compliance teams on a blockchain feature.
Show answer
Write the core reward-per-token logic for a staking rewards contract.
Show answer
How do you build a tokenised vault using ERC-4626?
Show answer
Calculate impermanent loss when one token's price doubles.
Show answer
A stablecoin used as collateral in your protocol loses its peg. How do you respond?
Show answer
A sharp market fall causes cascading liquidations in your lending protocol and bad debt. How do you design against it?
Show answer
A client in India wants to tokenise real estate for fractional ownership. What do you consider?
Show answer
A fee-on-transfer token breaks your DEX's accounting. What happened and how do you fix it?
Show answer
An attacker borrows governance tokens with a flash loan to pass a malicious DAO proposal. How do you prevent it?
Show answer
What does a typical dApp architecture look like?
Show answer
What is IPFS and what is content addressing?
Show answer
How do you connect a browser wallet to a dApp using ethers.js?
Show answer
How do you call read and write functions of a contract with ethers v6?
Show answer
What are the basic Foundry commands to create, build, test and work with a project?
Show answer
How do you verify a deployed contract's source code on a block explorer?
Show answer
Users report their USDC balance shows as a tiny fraction in your dApp. What is wrong?
Show answer
Tell me about yourself for a blockchain developer role.
Show answer
Where do you see yourself in five years?
Show answer
How do you listen to contract events and query past events with ethers?
Show answer
How do you read a contract and send a transaction with viem?
Show answer
Write a Foundry deployment script.
Show answer
How do you store an NFT image on IPFS and use it in your contract?
Show answer
How do you test against real mainnet contracts using a fork?
Show answer
How do you handle a user on the wrong network in your dApp?
Show answer
After a transaction is confirmed, your front-end still shows old data. How do you fix it?
Show answer
Your RPC provider starts rate-limiting and the dApp breaks during peak traffic. What do you do?
Show answer
Your fantasy sports contract needs live match scores. How do you get that data on-chain?
Show answer
Your target users in India have never used crypto wallets. How do you design onboarding?
Show answer
How do you handle unclear or changing requirements from a client?
Show answer
How would you implement Sign-In with Ethereum on a web back-end?
Show answer
Design a back-end relayer so users can make transactions without holding gas.
Show answer
How do you manage deployer private keys in a CI/CD pipeline?
Show answer
How do you monitor smart contracts in production?
Show answer
Frequently asked questions
What jobs can I get after learning blockchain?
You can apply for roles such as blockchain developer, smart contract developer, Web3 front-end developer, junior smart contract auditor and blockchain consultant. In India these roles exist in IT services and consulting firms building enterprise blockchain solutions, in banks and payment companies exploring tokenisation and settlement, and in Web3 start-ups that build products for global users. Many companies also hire remotely. A strong GitHub portfolio with tested, deployed contracts matters more than certificates alone.
Who is eligible to learn blockchain development?
Anyone with basic programming knowledge can start. B.Tech, BCA, MCA and B.Sc students, fresh graduates and working developers are all suitable. You should know at least one language like JavaScript or Python, basic data structures and Git. Knowledge of web development helps for dApp front-ends. Finance or cryptography backgrounds are useful but not required; the course teaches the cryptography and DeFi concepts you need from the beginning.
How long does it take to learn blockchain and become job-ready?
With consistent study of two to three hours a day, most learners become job-ready for fresher roles in about four months. The first month covers fundamentals, cryptography and Ethereum, the next two cover Solidity, testing and security, and the last month goes into DeFi and full-stack dApps. Becoming strong in security or protocol engineering takes longer, usually one to two years of real project and audit experience.
Is a certification necessary for blockchain jobs?
Certification helps show structured learning, but employers in this field mainly judge practical skill. Recruiters look at your GitHub, deployed testnet contracts, test coverage, and how well you explain security trade-offs. A course certificate plus two or three solid projects and participation in hackathons or audit contests makes a strong profile. For enterprise roles, knowledge of Hyperledger Fabric and cloud platforms can also be valuable.
Is blockchain a good career in India in 2026?
Yes, for people who build real skills. Demand is steady for Solidity developers, security engineers and Web3 front-end developers, and Indian developers form one of the largest Web3 talent pools globally. Enterprise use in banking, supply chain and tokenisation continues to grow. The market can be cyclical with crypto prices, so strong fundamentals in software engineering, security and distributed systems keep your career stable during downturns.
Do I need to buy cryptocurrency to learn blockchain development?
No. All learning and practice can be done on local networks like Anvil or Hardhat and public testnets such as Sepolia, which use free test ETH from faucets. You only need a wallet such as a browser extension, a code editor and Foundry or Hardhat installed. Never use real funds or real private keys while learning, and keep test wallets separate from any personal wallet you may have.