How to Deploy A Smart Contract on Linea
This guide covers adding the network to a browser wallet, then deploying a simple contract using Foundry and Hardhat — pick whichever you prefer on Linea.
Linea is an EVM-equivalent zkEVM that runs standard EVM bytecode, so contracts deploy with the usual Ethereum tooling such as Foundry, Hardhat, and Remix without modification. This guide covers adding Linea to a wallet and deploying a first contract with Foundry and Hardhat through a GetBlock endpoint.
Prerequisites
A wallet holding ETH on Linea for gas (see Add Network to Your Wallet below)
A GetBlock access token from the GetBlock dashboard, used as
<ACCESS-TOKEN>in the endpointhttps://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/Node.js version 20 or later, for Hardhat
A funded deployer address, on Linea Sepolia for testing (see Testnet Faucets)
Network Details
Chain ID
59144 (0xe708)
59141 (0xe705)
RPC URL
https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/
https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/
Currency Symbol
ETH
ETH
Add Network to Your Wallet
Deploy with Foundry
Deploy with Hardhat
Testnet Faucets
Linea Sepolia
Linea Faucet — dispenses Linea Sepolia ETH to a connected wallet (verify)
Bridge Sepolia ETH from Ethereum Sepolia through the Linea Bridge as an alternative to faucets
Last updated
Was this helpful?