
deploy a simple contract on base and claim the deployer role! in this guide, i’ll walk you through how to deploy a simple contract on base and claim the deployer role from guild. → step 1: create an etherscan api key go to etherscan.io, create an account and generate an api key. since base explorer (basescan) is powered by Etherscan, the same api key works for verification. → step 2: open remix and set the api key for your deployment go to remix.ethereum.org, sign in with your github account. then click the ⚙️ settings icon (bottom left) > connected services > turn on etherscan access token then paste your api key inside. → step 3: create the contract file click create on the home page > new file, name it "SimpleStorage.sol", then paste the code below into the editor: // SPDX-License-Identifier: MIT pragma solidity ^0.8.20; contract SimpleStorage { string public message; constructor(string memory _message) { message = _message; } function setMessage(string memory _newMessage) public { message = _newMessage; } } → step 4: compile the contract click solidity compiler on the side menu > click compile SimpleStorage.sol → step 5: deploy on base mainnet click deploy & run transactions, environment → select injected provider (metamask/rabby). make sure your wallet is on base mainnet in the constructor field, type "gm base", then click deploy and verify. it will auto-verify the contract on basescan. → step 6: claim your role after successful deployment and verification, go to: guild.xyz/base and claim the deployer role. what you just did? you deployed a simple contract that stores the message "gm base" fully onchain on base. if you encounter any error, drop it in the comments and i’ll help you fix it.



















