Skip to content
Taiko Hekla will be sunsetting with the deprecation of the Holesky Testnet on September 30th, 2025. In it's place, we are deploying the Taiko Hoodi testnet with Ethereum Hoodi as L1. Please find network details here.

Verify a contract

This guide will help you verify a smart contract on Taiko.

Prerequisites

You have a contract deployed on Taiko and the source code available.

Taiko Alethia


Verify a contract with Foundry

Replace the contract address and filepath to contract below, and then execute in terminal to verify your contract.

Terminal window
forge verify-contract 0x526317252e346978869d178081dA2cd10ac8b56D src/Counter.sol:Counter \
--verifier-url https://blockscoutapi.mainnet.taiko.xyz/api\? \
--verifier blockscout

It’s also possible to verify the contract through Taikoscan API as follows:

Terminal window
forge verify-contract 0x526317252e346978869d178081dA2cd10ac8b56D src/Counter.sol:Counter \
--watch \
--verifier-url https://api.taikoscan.io/api \
--etherscan-api-key {YOUR_API_KEY}

Taiko Hekla


Verify a contract with Foundry

Replace the contract address and filepath to contract below, and then execute in terminal to verify your contract.

Terminal window
forge verify-contract 0x526317252e346978869d178081dA2cd10ac8b56D src/Counter.sol:Counter \
--verifier-url https://blockscoutapi.hekla.taiko.xyz/api\? \
--verifier blockscout

Verify a contract with Hardhat or other alternatives

Check out the Blockscout docs here!

Taiko Hoodi

Replace the contract address and filepath to contract below, and then execute in terminal to verify your contract.

Terminal window
forge verify-contract 0x526317252e346978869d178081dA2cd10ac8b56D src/Counter.sol:Counter \
--verifier-url https://blockscoutapi.hoodi.taiko.xyz/api\? \
--verifier blockscout

Verify a contract with Hardhat or other alternatives

Check out the Blockscout docs here!