Skip to main content

Command Palette

Search for a command to run...

🔍 How to Verify Smart Contracts on Blockscout Using the Story Testnet

Published
•4 min read
V

I am a third-year Computer Science Engineering student studying in Chandigarh. I am a full-stack web developer exploring the field of DevOps and gaining hands-on experience in it, including AWS.

Introduction

In the ever-evolving Web3 development space, tools that simplify developer workflows are critical. One such tool is Blockscout, a powerful open-source blockchain explorer for EVM-compatible chains. Among its many features, Blockscout allows developers to verify and interact with smart contracts directly through its UI — no command-line tools or third-party services required.

In this blog, we’ll walk through the complete process of verifying a smart contract on Blockscout, using the Story Testnet as our example network.


đź§± What is Blockscout?

Blockscout is a full-featured blockchain explorer that supports over 500 chains, providing capabilities like:

  • Transaction and address tracking

  • Token and asset visualization

  • Smart contract verification and interaction

  • Onchain analytics and charts

  • Comprehensive APIs


🧪 What You’ll Need

  • A simple Solidity smart contract (we’ll use a Hello World example)

  • Remix IDE for development and deployment

  • MetaMask connected to the Story Testnet

  • The Blockscout explorer for the Story Testnet


🛠️ Step-by-Step: Contract Verification on Blockscout

Let’s go through the process from start to finish:


1. Writing the Contract

We’ll begin with a basic “Hello World” smart contract in Solidity:

solidityCopyEdit// SPDX-License-Identifier: MIT
pragma solidity ^0.8.30;

contract HelloWorld {
    string public message;

    constructor() {
        message = "Hello World";
    }

    function setMessage(string memory _msg) public {
        message = _msg;
    }

    function getMessage() public view returns (string memory) {
        return message;
    }
}

This contract initializes a message on deployment and provides functions to read or update it.


2. Compiling in Remix

Open Remix IDE, paste the contract, and select the Solidity compiler version 0.8.30. Compile the contract and ensure there are no errors.


3. Deploying to Story Testnet

With MetaMask configured to the Story Testnet, deploy the contract from Remix:

  • Click “Deploy”

  • Approve the transaction in MetaMask

  • Wait for confirmation

Once deployed, copy the contract address.


4. Verifying the Contract on Blockscout

Now, navigate to the Story Testnet’s Blockscout explorer. Paste your contract address into the search bar and open the contract page. You’ll see an option to “Verify & Publish.”

Here’s what to fill in:

  • Compiler Type: Single File

  • Compiler Version: v0.8.30

  • License: MIT

  • Optimization: (as used during deployment)

Paste the entire source code into the field. Since we haven’t imported any external libraries, no flattening is required.

Submit the verification form.


5. Verification Result

If successful, you’ll receive a green checkmark and a message stating the contract is verified. Sometimes, Blockscout might display a “Partial Match” if you didn’t provide JSON metadata — but this won’t affect the contract’s usability.


📡 Interacting with the Verified Contract

Once verified, you can interact with the contract right within the Blockscout UI:

  • Use the Read Contract tab to call getMessage()

  • Use the Write Contract tab to execute setMessage() and update the message

  • MetaMask will prompt to confirm the transaction, and updates are reflected live on-chain

You also gain access to the contract’s ABI, bytecode, and source code — all visible within the explorer.


âś… Why Use Blockscout for Contract Verification?

Blockscout offers a fully UI-based experience that doesn’t require uploading metadata manually or using CLI tools. Whether you’re testing on devnets or deploying to public EVM chains, Blockscout provides:

  • Ease of use for beginners and pros alike

  • Transparency, letting users audit verified code

  • Functionality, enabling ABI-based interaction after verification


đź§© Final Thoughts

Smart contract verification is a critical step in building trust and usability in Web3 applications. With Blockscout’s user-friendly interface, developers can now perform this step quickly and efficiently, all within the browser.

Whether you’re testing on the Story Testnet or deploying to mainnets, Blockscout makes your development lifecycle easier, faster, and more transparent.


đź”— Try it out yourself on:

Sm verification: deploy.blockscout.com

Blockscout docs: docs.blockscout.com/

Discord: discord.gg/blockscout

Blockscout community: t.me/blockscoutcommunity

BlockscoutNews community: t.me/blockscoutnews

đź’¬ Have questions? Join the Blockscout community and explore the documentation.

More from this blog

Erg

31 posts