Browse DIDLab Docs

Deployment · Remix

Deploy a contract from the browser

Use Remix for the fastest first deployment. Your browser wallet signs the deployment; DIDLab never receives your private key.

01

Connect your DIDLab wallet

Complete the DIDLab Quickstart first. In MetaMask, verify that the selected network is DIDLab and the chain ID is 252501.

Use a lab account

Use a dedicated learning wallet with only test/lab assets. Never paste your seed phrase or private key into Remix or a webpage.
02

Create and compile SimpleStorage.sol

In Remix, create SimpleStorage.sol, paste the contract below, then compile it with a Solidity compiler compatible with ^0.8.24.

SimpleStorage.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

contract SimpleStorage {
    uint256 private value;
    event ValueChanged(uint256 value, address indexed changedBy);

    function set(uint256 newValue) external {
        value = newValue;
        emit ValueChanged(newValue, msg.sender);
    }

    function get() external view returns (uint256) {
        return value;
    }
}

Expected result

The Solidity Compiler panel reports a successful compilation and SimpleStorage appears as a deployable contract.
03

Select the browser wallet environment

Open Deploy & Run Transactions. Select the browser-extension/injected wallet environment, then approve the connection in MetaMask if prompted.

Wallet network
DIDLab
Chain ID
252501
Contract
SimpleStorage
Constructor value
None
04

Deploy and approve the transaction

Click Deploy. MetaMask will show a contract-creation transaction. Check that the network is DIDLab, review the gas estimate, and approve.

Expected result

After the transaction is mined, Remix lists a new deployed SimpleStorage instance and shows its contract address.
05

Write and read state

Expand the deployed contract. Call set with 42 and approve the wallet transaction. Then call get; it should return 42.

set(42)

Signed transaction · changes state · emits ValueChanged.

get()

Read-only call · should return 42.

06

Verify the deployment in Blockscout

Copy the contract address from Remix and search for it in the DIDLab explorer. Confirm the creation transaction, block, creator address, bytecode, and your later set(42) transaction.

Open DIDLab Explorer

What you have proven

You compiled Solidity, created a contract-deployment transaction, interacted with state, and independently verified the results on DIDLab. The deeper course version adds debugging, tests, events, security analysis, and automated evidence checkpoints.

Validation profile

Network

DIDLab Blockchain

Chain ID

252501

Client

Hyperledger Besu

Consensus

QBFT

Native asset

TRUST

Platform token

TT (ERC-20)

Solidity examples

0.8.24

Last validated

August 2026

Go deeper in DIDLab Labs

Public documentation explains the workflow and expected result. Authenticated DIDLab Labs adds managed workspaces, deeper exercises, checkpoints, evidence capture, and instructor assessment.

Open DIDLab Labs