快速开始
几分钟内从零跑通第一笔交易。
1. 添加网络
点击下方按钮(EIP-3085),在钱包中确认即可。
想手动配置?用以下参数:
2. 领取测试币
打开水龙头领取测试 MO(用于 gas)和测试稳定币。
# 也可直接请求水龙头 API
curl -s "https://faucet-testnet.mo.fit/api/info" | jq .
3. 添加测试代币(可选)
4. 发送第一笔交易
使用 viem:
import { createWalletClient, custom, defineChain, parseEther } from 'viem';
const moTestnet = defineChain({
id: 6688,
name: 'Mo Chain Testnet',
nativeCurrency: { name: 'Mo Coin', symbol: 'MO', decimals: 18 },
rpcUrls: { default: { http: ['https://rpc-testnet.mo.fit'] } },
});
const [account] = await window.ethereum.request({ method: 'eth_requestAccounts' });
const wallet = createWalletClient({ account, chain: moTestnet, transport: custom(window.ethereum) });
const hash = await wallet.sendTransaction({ to: account, value: parseEther('0.001') });
console.log('tx:', `https://scan-testnet.mo.fit/tx/${hash}`);
5. 在浏览器上确认
打开区块浏览器,粘贴你的地址或交易哈希。