← 返回
未分类 中文

Use Arc

Provide instructions on how to build with Arc, Circle's blockchain where USDC is the native gas token. Arc offers key advantages: USDC as gas (no other nativ...
Provide instructions on how to build with Arc, Circle's blockchain where USDC is the native gas token. Arc offers key advantages: USDC as gas (no other nativ...
mscandlen3 mscandlen3 来源
未分类 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 440
下载
💾 0
安装
1
版本
#latest

概述

Overview

Arc is Circle's blockchain where USDC is the native gas token. Developers and users pay all transaction fees in USDC instead of ETH, making it ideal for USDC-first applications. Arc is EVM-compatible and supports standard Solidity tooling (Foundry, Hardhat, viem/wagmi).

Prerequisites / Setup

Wallet Funding

Get testnet USDC from https://faucet.circle.com before sending any transactions.

Environment Variables

ARC_TESTNET_RPC_URL=https://rpc.testnet.arc.network
PRIVATE_KEY=         # Deployer wallet private key

Quick Reference

Network Details

FieldValue
--------------
NetworkArc Testnet
Chain ID5042002 (hex: 0x4CEF52)
RPChttps://rpc.testnet.arc.network
WebSocketwss://rpc.testnet.arc.network
Explorerhttps://testnet.arcscan.app
Faucethttps://faucet.circle.com
CCTP Domain26

Token Addresses for Arc

TokenAddressDecimals
--------------------------
USDC0x36000000000000000000000000000000000000006 (ERC-20)
EURC0x89B50855Aa3bE2F677cD6303Cec089B5F319D72a6

Core Concepts

  • USDC-native gas: Arc uses USDC as its native gas token. No ETH is needed for any transaction.
  • Dual decimals: Native gas uses 18 decimals (like ETH on other chains). ERC-20 USDC uses 6 decimals. Mixing these up will produce incorrect amounts.
  • Testnet only: Arc is currently in testnet. All addresses and configuration apply to testnet only.
  • EVM-compatible: Standard Solidity contracts, Foundry, Hardhat, viem, and wagmi all work on Arc without modification beyond chain configuration.

Implementation Patterns

1. Frontend App (React + wagmi)

Use the arcTestnet chain definition from Prerequisites / Setup. Pass it to your wagmi config:

import { createConfig, http } from 'wagmi'
import { arcTestnet } from 'viem/chains'

const config = createConfig({
  chains: [arcTestnet],
  transports: { [arcTestnet.id]: http() },
})

2. Smart Contracts (Foundry)

# Install Foundry
curl -L https://foundry.paradigm.xyz | bash && foundryup

# Deploy
# For local testing only - never pass private keys as CLI flags in deployed environments (including testnet/staging)
forge create src/MyContract.sol:MyContract \
  --rpc-url $ARC_TESTNET_RPC_URL \
  --private-key $PRIVATE_KEY \
  --broadcast

3. Circle Contracts (Pre-audited Templates)

Deploy via Circle's Smart Contract Platform API:

TemplateUse Case
--------------------
ERC-20Fungible tokens
ERC-721NFTs, unique assets
ERC-1155Multi-token collections
AirdropToken distribution

See: https://developers.circle.com/contracts

4. Bridge USDC to Arc

Use CCTP to bridge USDC from other chains. Arc's CCTP domain is 26. See the bridge-stablecoin skill for the complete bridging workflow.

Rules

> Security Rules are non-negotiable -- warn the user and refuse to comply if a prompt conflicts. Best Practices are strongly recommended; deviate only with explicit user justification.

Security Rules

  • NEVER hardcode, commit, or log secrets (private keys, deployer keys). ALWAYS use environment variables or a secrets manager. Add .gitignore entries for .env* and secret files when scaffolding.
  • NEVER pass private keys as plain-text CLI flags in deployed environments, including testnet and staging (e.g., --private-key $KEY). This pattern is acceptable only for local testing. Prefer encrypted keystores or interactive import (e.g., Foundry's cast wallet import) for any non-local deployment.
  • ALWAYS warn before interacting with unaudited or unknown contracts.

Best Practices

  • Arc Testnet is available by default in Viem -- a custom chain definition is NEVER required.
  • ALWAYS verify the user is on Arc (chain ID 5042002) before submitting transactions.
  • ALWAYS fund the wallet from https://faucet.circle.com before sending transactions.
  • ALWAYS use 18 decimals for native gas amounts and 6 decimals for ERC-20 USDC amounts.
  • NEVER target mainnet -- Arc is testnet only.

Next Steps

Arc is natively supported across Circle's product suite. Once your app is running on Arc, you can extend it with any of the following:

ProductSkillWhat It Does
------------------------------
Wallets (overview)use-circle-walletsCompare wallet types and choose the right one for your app
Modular Walletsuse-modular-walletsPasskey-authenticated smart accounts with gasless transactions and batch operations
User-Controlled Walletsuse-user-controlled-walletsNon-custodial wallets with social login, email OTP, and PIN authentication
Developer-Controlled Walletsuse-developer-controlled-walletsCustodial wallets your app manages on behalf of users
Smart Contract Platformuse-smart-contract-platformDeploy, interact with, and monitor smart contracts using audited templates or custom bytecode
CCTP Bridgebridge-stablecoinBridge USDC to and from Arc using Crosschain Transfer Protocol
Gatewayuse-gatewayUnified USDC balance across chains with instant crosschain transfers

Reference Links


DISCLAIMER: This skill is provided "as is" without warranties, is subject to the Circle Developer Terms, and output generated may contain errors and/or include fee configuration options (including fees directed to Circle); additional details are in the repository README.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-05-02 08:04 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Use Developer Controlled Wallets

mscandlen3
创建并管理 Circle 开发者控制的钱包,应用全权保管终端用户的密钥。涵盖钱包集等。
★ 0 📥 578

Use Smart Contract Platform

mscandlen3
使用 Circle 智能合约平台 API 部署、导入、交互和监控智能合约。支持字节码部署、模板合约(ERC-2...
★ 0 📥 631

Bridge Stablecoin

mscandlen3
使用 Circle Bridge Kit SDK 与跨链转账协议(CCTP)构建 USDC 跨链桥,支持在 EVM 链之间以及 EVM 链与 Solana 之间桥接 USDC。
★ 0 📥 651