For the complete documentation index, see llms.txt. This page is also available as Markdown.

Deploy a Smart Contract on Scroll

This guide covers adding the network to a browser wallet, then deploying a simple contract using Foundry and Hardhat — pick whichever you prefer.

Scroll is EVM-equivalent, so contracts deploy using the standard Solidity toolchain — Foundry, Hardhat, or Remix — with a GetBlock endpoint. This guide covers adding the network to a wallet and deploying a first contract to Scroll.

Prerequisites

  • Node.js 18+ and a package manager, or Foundry

  • An EVM wallet (such as MetaMask) with ETH on Scroll for gas — see Add Network to Your Wallet and Funding Your Deployer

  • A GetBlock access token — the endpoint is https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

  • A funded deployer address with ETH on Scroll

Network Details

Property
Value

Network Name

Scroll Mainnet

RPC URL

https://shared.eu-central-1.getblock.io//

Chain ID

534352 (0x82750)

Currency Symbol

ETH

Block Explorer

Add Network to Your Wallet

Ethereum Mainnet is pre-configured in MetaMask by default. Scroll is not, so it must be added manually — use the button below or the manual steps that follow.

1

Open your wallet

Open MetaMask (or your EVM wallet of choice).

2

Add a custom network

Open the network selector and choose Add a custom network.

3

Enter network details

Enter the values from the Network Details table above.

4

Confirm the Chain ID

Confirm the Chain ID resolves to 534352.

5

Save and switch networks

Save and switch to the newly added Scroll network.

Funding Your Deployer

Scroll gas is paid in ETH that has been bridged from Ethereum.

  • Mainnet — bridge ETH from Ethereum L1 using the official Scroll Bridge. Bridged ETH becomes spendable on Scroll for gas.

  • Testnet (Scroll Sepolia, chain ID 534351) — obtain Ethereum Sepolia ETH from a public Sepolia faucet, then bridge it to Scroll Sepolia with the Scroll Bridge in testnet mode.

Deploy with Foundry

1

Install Foundry and initialize

2

Write the contract

3

Deploy

4

Verify on the block explorer

Scroll uses a Scrollscan (Etherscan-compatible) explorer:

Deploy with Hardhat

1

Create the project

2

Configure the network

3

Write the contract

4

Deploy

5

Verify on the block explorer

Last updated

Was this helpful?