Deploy Smart Contract on Unichain
This guide covers adding the network to a browser wallet, then deploying a simple contract using Foundry and Hardhat — pick whichever you prefer.
Unichain is an EVM-equivalent OP Stack Layer 2 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 Unichain to a wallet and deploying a first contract with Foundry and Hardhat through a GetBlock endpoint.
Prerequisites
A wallet holding ETH on Unichain 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 Unichain Sepolia for testing (see Testnet Faucets)
Network Details
Chain ID
130 (0x82)
1301 (0x515)
RPC URL
https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/
https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/
Currency Symbol
ETH
ETH
Every command below defaults to Mainnet — replace environment variable values with testnet ones for a dry run before touching real funds.
Never commit a real private key. Use environment variables and prefer a throwaway deployer key for testing. Private keys committed to a public repo are drained within seconds by automated bots.
Add Network to Your Wallet
Deploy with Foundry
Deploy with Hardhat
Testnet Faucets
Unichain Sepolia
Unichain Faucet — dispenses Unichain Sepolia ETH to a connected wallet (verify)
Superchain Faucet — Sepolia ETH across OP Stack testnets, including Unichain Sepolia (verify)
Bridge Sepolia ETH from Ethereum Sepolia through the Unichain Bridge as an alternative to faucets
Last updated
Was this helpful?