Skip to main content
Sei is EVM-compatible — standard deployment tooling works without modification. This page covers deploying a contract and verifying its source on the Sei block explorer. For a deeper look at verification options (Remix, Sourcify UI, batch verification), see the Verify Contracts page.

Try it: deploy from your browser

No local toolchain required — compile and deploy a contract to Sei testnet straight from the browser. The Remix sandbox below preloads a minimal Counter.sol. First, add Sei testnet to your wallet: Then in Remix: compile under the Solidity Compiler tab, open Deploy & Run, set Environment to Injected Provider — MetaMask, and click Deploy. Sei has instant finality, so the deployment confirms in well under a second.

Deploying with viem or ethers

Deploying with Foundry

Foundry works against Sei with the standard --rpc-url flag.
For testnet:

Deploying with Hardhat

Add Sei networks to your hardhat.config.ts (Hardhat 3). Keep the toolbox in the plugins array — it ships with projects created by npx hardhat --init and provides Hardhat Ignition for deployments:
Store your private key in Hardhat’s encrypted keystore so it never lives in a plaintext file:
Describe the deployment in a minimal Ignition module at ignition/modules/MyContract.ts:
Then deploy it:

Verifying Contracts

Sei’s block explorer is Seiscan. The recommended verification method is Sourcify — no API key required.

Foundry

Verify after deployment:
Or deploy and verify in one step:
For testnet, use --chain-id 1328 and --rpc-url https://evm-rpc-testnet.sei-apis.com.

Hardhat

If you use a Hardhat toolbox (as in the config above), hardhat-verify is already bundled and active — skip ahead to the verify command. Without a toolbox, install the plugin:
Then add it to the plugins array in hardhat.config.ts — Sourcify verification is enabled by default in hardhat-verify and needs no API key:
Verify a deployed contract on Sourcify:
If your contract has constructor arguments:
Running npx hardhat verify without the sourcify subtask attempts verification on all enabled providers (Etherscan, Blockscout, and Sourcify) in a single run.

Network Reference