一.添加Arc网络

手动添加网络

**网络名称:**Arc Testnet 新 RPC URL:https://rpc.testnet.arc.network

**链 ID:**5042002 **货币符号:**USDC 区块浏览器 URL:https://testnet.arcscan.app

自动添加网络:

进入Arc浏览器

https://testnet.arcscan.app/

下滑找到左下角Add Arc Testent ,点击添加网络

领取Arc测试网水龙头

https://faucet.circle.com/

二. 打开 Remix 并编写/加载合约

访问https://remix.ethereum.org/

找到左侧工具栏中的File Explorer

点击进去之后,找到Contracts,右键New File新建一个文件,这里Arc文档中为例,文件名为HelloArchitect.sol

然后在打开的空白页面中粘贴代码,这里也是以Arc文档中的代码为例

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

contract HelloArchitect {
    string private greeting;

    // Event emitted when the greeting is changed
    event GreetingChanged(string newGreeting);

    // Constructor that sets the initial greeting to "Hello Architect!"
    constructor() {
        greeting = "Hello Architect!";
    }

    // Setter function to update the greeting
    function setGreeting(string memory newGreeting) public {
        greeting = newGreeting;
        emit GreetingChanged(newGreeting);
    }

    // Getter function to return the current greeting
    function getGreeting() public view returns (string memory) {
        return greeting;
    }
}

然后Ctri+s保存