How to Build on Arbitrum: A Practical Development Guide
Arbitrum is a Layer 2 network that runs Ethereum-style smart contracts with lower fees and faster confirmation. Here is how to build on it, step by step.
On this page
Short answer
Arbitrum is a Layer 2 network on Ethereum that runs the same smart contracts as mainnet, with lower fees and faster confirmation. Developers build on Arbitrum One for general apps, Arbitrum Nova for high-volume use, or an Orbit chain for a dedicated app chain. The usual stack is Solidity with Hardhat or Foundry, tested on Arbitrum Sepolia before mainnet deployment.
What is Arbitrum?
Arbitrum is a Layer 2 network on Ethereum that runs the same smart contracts as mainnet, with lower fees and faster confirmation. It takes transactions off the main chain, executes them, and posts the results back to Ethereum, which keeps the security of the base layer while cutting the cost of each transaction.
Developers write contracts in Solidity, the same language used on Ethereum, and use the same tools: Hardhat or Foundry for building and testing, and the same wallet and library patterns for the front end. A contract written for Ethereum usually runs on Arbitrum with only small changes, such as the network address and the gas settings.
Arbitrum matters because mainnet fees make many apps too costly to use. A game, a social app or a payment flow that needs many small transactions cannot run well when each one costs several dollars. On Arbitrum the same action costs a fraction of that, so apps that need frequent transactions become practical. The trade-off is that Arbitrum adds its own sequencer and bridge, which developers must understand.
Arbitrum One, Nova and Orbit chains: which one fits?
Arbitrum has three main options: Arbitrum One for general apps, Arbitrum Nova for high-volume use, and Orbit chains for teams that want their own dedicated chain. The choice depends on how much control you need and how many transactions your app will make.
| Option | Best for | Data handling | Control |
|---|---|---|---|
| Arbitrum One | General dApps, DeFi | Full data on Ethereum | Shared chain |
| Arbitrum Nova | Games, social apps | Data availability committee | Shared chain |
| Orbit chain | Dedicated app chain | Your choice | Own chain, own rules |
| Stylus | Rust or C++ contracts | Same as the host chain | Same as the host chain |
Arbitrum One is the default choice. It posts full transaction data to Ethereum, which gives the strongest security, and it has the most users, liquidity and tooling.
Nova suits apps with very high transaction counts, such as games, because a data availability committee stores the data more cheaply. An Orbit chain is a Layer 3 chain built on Arbitrum One or Nova, for teams that want their own gas token, their own throughput and their own rules.
What tools do Arbitrum developers use?
Arbitrum developers use the standard Ethereum stack: Solidity for contracts, Hardhat or Foundry for building and testing, and ethers or viem for the front end. The Arbitrum SDK adds the bridge and cross-chain message functions that plain Ethereum tools do not cover.
Hardhat and Foundry both work with Arbitrum, and most teams pick the one they already know. Foundry tests run fast and suit teams that like writing tests in Solidity. Hardhat suits teams that want a wide plugin set and a familiar JavaScript workflow. Either way, the contract code is the same Solidity you would write for mainnet.
For cross-chain work, the Arbitrum SDK handles deposits from Ethereum to Arbitrum, withdrawals back to Ethereum, and messages between the two layers. The bridge moves assets, while the messaging system lets a contract on one layer call a contract on the other. For the token-specific steps, the token development guide walks through writing and deploying a token on Arbitrum.
How do you write and deploy a contract on Arbitrum?
You write and deploy a contract on Arbitrum the same way you do on Ethereum, with two differences: you connect to an Arbitrum network instead of mainnet, and you account for the sequencer, which orders transactions before they are posted to Ethereum.
Start by writing the contract in Solidity and testing it locally with Hardhat or Foundry, exactly as you would for mainnet. Then deploy it to the Arbitrum Sepolia testnet, which is the public test network for Arbitrum One. The testnet uses test ETH, so deployment costs nothing real, and you can check the contract on the testnet block explorer.
When the contract works on testnet, deploy it to Arbitrum One with the same script, changing only the network address and the private key setup. Verify the source code on the block explorer so users and auditors can read it. A verified contract is a basic trust signal, and an unverified one will raise questions from anyone who checks.
How do you test before mainnet?
You test before mainnet by running unit tests, deploying to Arbitrum Sepolia, and checking the exact paths users will take, including deposits, withdrawals and failures. Testing on mainnet itself is not a plan.
Unit tests should cover every function that moves funds or changes state, including the failure cases: what happens when a call has too little gas, when a price feed is stale, or when a user tries to withdraw more than they hold. Foundry and Hardhat both run these tests quickly, and a good test suite catches most logic errors before they reach a testnet.
On Sepolia, test the full user journey with a real wallet: connect, deposit from Ethereum Sepolia through the bridge, use the app, and withdraw. Withdrawals from Arbitrum to Ethereum take about a week in the standard path, because of the fraud-proof window, so plan for that delay in your tests.
If your app needs faster exits, check the fast withdrawal options offered by third-party bridges, and read their terms first. For a full platform example, the Arbitrum RWA platform guide shows how testing fits into a larger build.
How to build a dApp on Arbitrum, step by step
You build a dApp on Arbitrum by choosing the chain, writing and testing the contracts, building the front end, and deploying to testnet before mainnet, with an audit for anything that holds user funds.
- Choose the chain. Pick Arbitrum One for most apps, Nova for high-volume use, or an Orbit chain if you need your own chain.
- Write the contracts. Use Solidity, keep each contract small with one job, and avoid patterns you cannot explain in a review.
- Test locally. Run unit tests in Foundry or Hardhat, including failure cases and fund movement.
- Deploy to Sepolia. Deploy to Arbitrum Sepolia, verify the source, and test the full user journey with a real wallet.
- Build the front end. Connect with ethers or viem, show gas costs clearly, and handle the bridge deposit step in the interface.
- Audit anything holding funds. Get an external audit for contracts that hold user assets, and fix every high and medium finding.
- Deploy to mainnet. Deploy to Arbitrum One, verify the source, and monitor the first transactions closely.
Ship the smallest useful version first. A dApp with one working flow on mainnet teaches you more than a large app that never leaves the testnet.
Example (hypothetical): a small team ships a staking dApp
Example (hypothetical): a team of three builds a staking dApp on Arbitrum One. Users stake a token and earn rewards over time. The team writes two contracts: a token contract and a staking contract that tracks each user and pays rewards per block.
The team tests the staking maths with 12 users on Sepolia. Each user stakes 1,000 tokens, so 12,000 tokens are staked in total. The reward rate is 1 token per 1,000 staked per day, so the pool pays 12 tokens a day. After 30 days the pool has paid 360 tokens, and each user has earned 30 tokens, which matches the rate exactly.
On mainnet, the first month brings 200 users staking 500 tokens each, which is 100,000 tokens staked. At the same rate the pool pays 100 tokens a day, or 3,000 in a 30-day month. The team checks the maths on chain each week and finds the numbers match. The audit cost and the deployment cost are the largest one-off costs, while the running cost is mainly the sequencer fees on each transaction.
What are the common mistakes?
The most common Arbitrum development mistakes are treating it as identical to mainnet, ignoring the withdrawal delay, and skipping the audit for contracts that hold funds. Each one is easy to avoid with a little planning.
- Assuming mainnet behaviour. Gas pricing, block times and the sequencer work differently on Arbitrum, so test on Sepolia rather than assuming.
- Forgetting the withdrawal delay. Standard withdrawals to Ethereum take about a week, and users will complain if the interface does not say so.
- Skipping the audit. A contract that holds user funds needs an external audit, even if the code looks simple.
- Hardcoding mainnet addresses. Price feeds, bridges and routers have different addresses on Arbitrum, so check them per network.
- No monitoring. A dApp with no alerts for failed transactions or odd contract behaviour will find problems late.
- Overbuilding the first version. A large first release is harder to test, audit and fix than a small one.
Key takeaways
- Arbitrum runs Ethereum contracts with lower fees and faster confirmation
- Arbitrum One is the default; Nova suits high-volume apps; Orbit chains are dedicated
- The stack is Solidity with Hardhat or Foundry, plus the Arbitrum SDK
- Test the full user journey on Sepolia, including deposits and withdrawals
- Standard withdrawals to Ethereum take about a week, so say so in the interface
Frequently asked questions
What is the difference between Arbitrum One and Nova?
Arbitrum One posts full transaction data to Ethereum, which gives the strongest security. Nova uses a data availability committee to store data more cheaply, which suits high-volume apps such as games. Both run the same Solidity contracts.
Do I need to learn a new language for Arbitrum?
No. Arbitrum contracts are written in Solidity, the same language as Ethereum. Stylus also lets developers write contracts in Rust or C++, but Solidity covers most apps and has the most examples.
How long do withdrawals from Arbitrum take?
Standard withdrawals from Arbitrum to Ethereum take about a week, because of the fraud-proof window. Deposits from Ethereum to Arbitrum are fast. Some third-party bridges offer faster exits, so read their terms before relying on them.
Is Arbitrum cheaper than Ethereum mainnet?
Yes, usually by a large margin, because transactions are executed off chain and only the results are posted to Ethereum. The exact cost depends on the transaction and on mainnet congestion, so check current gas prices before you quote a figure.
What is an Orbit chain?
An Orbit chain is a Layer 3 chain built on Arbitrum One or Nova for one app or team. It can have its own gas token, its own throughput and its own rules, which suits teams that need a dedicated chain rather than a shared one.
Do I need an audit before launching on Arbitrum?
Yes, for any contract that holds user funds. An external audit checks the logic, the fund flows and the admin functions. Fix every high and medium finding before launch, and publish a short summary of what was checked.