Deploy EVM Contract

Deploy a smart contract to the blockchain using Remix IDE

Copy smart contract code

// SPDX-License-Identifier: MIT
// Compatible with OpenZeppelin Contracts ^5.0.0
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract MyToken is ERC721, Ownable {
    constructor(address initialOwner)
        ERC721("MyToken", "MTK")
        Ownable(initialOwner)
    {}

    function safeMint(address to, uint256 tokenId) public onlyOwner {
        _safeMint(to, tokenId);
    }
}

Paste code in Remix IDE

Create a new file in the contracts folder of your Remix browser IDE and paste the component smart contract code in the newly created file.

doc-guide-image

Compile smart contract code

Proceed to the solidity compiler tab and compile the newly pasted smart contract code.

doc-guide-image

Deploy smart contract

Next proceed to the Deploy & run transactions tab select the evm blockchain network you wish to deploy your smart contract to by selecting injected provider and having your browser wallet connected to your preferred network. Finally fill in the constructor arguments and click on transact to deploy your smart contract. Your browser wallet extension will prompt you to sign the transaction in order to confirm the execution for your smart contract deployment.

doc-guide-image