• Projects
  • Service
  • About
  • branding.bz
  • Podcast
  • Tips
  • FAQ
  • Recruit
  • Download
  • Contact
  • branding.bz(ブランド構築SaaS)
  • DESIGN NOW(デザインメディア)
  • X
  • LinkedIn
  • Spotify
  • Facebook

213-0011 神奈川県川崎市高津区久本3-6-7-303

© 2026 ID INC. All rights reserved

claude-skills/スキル
SKILLOfficialdevelopment

use-arc

プラグイン
circle-skills
ソース
GitHub で見る ↗
説明

# Arc(Circle のブロックチェーン)での開発ガイド Arc は Circle が提供するブロックチェーンで、USDC(米ドルに連動した暗号資産)がガス代(ネットワーク利用手数料)として機能します。 ## Arc の主な特徴 - **USDC がガス代として使用** — 他の専用トークンは不要 - **ガス代が安定・予測可能** — 取引コストが計画しやすい - **サブセコンド最終性(完了確定が1秒以下)** — 決済が高速に完了 ## 適した用途 これらの特性により、Arc は次のような開発に理想的です: - 決済アプリの構築 - DeFi プロトコル(分散金融を活用したサービス)の開発 - USDC を中心に設計されたアプリケーション - **コスト予測**と**速度**が重要なプロジェクト ## 次のような場合に使用 - Arc、Arc Mainnet(本番環境)、Arc Testnet(テスト環境)に関する情報を探している - Arc 関連のスマートコントラクト(自動実行プログラム)を操作している - ブロックチェーンプロジェクトで Arc を設定している - CCTP(ブリッジ技術)を使って USDC を Arc に移動させる - USDC を中心としたアプリケーションを構築している

原文を表示

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 native token needed), stable and predictable transaction fees, and sub-second finality for fast confirmation times. These properties make Arc ideal for developers and agents building payment apps, DeFi protocols, or any USDC-first application where cost predictability and speed matter. Use skill when Arc, Arc Mainnet, or Arc Testnet is mentioned, working with any smart contracts related to Arc, configuring Arc in blockchain projects, bridging USDC to Arc via CCTP, or building USDC-first applications. Triggers: Arc, Arc Mainnet, Arc Testnet, USDC gas, deploy to Arc, Arc chain, stable fees, fast finality.

ユースケース
  • 決済アプリを構築するとき
  • DeFiプロトコルを開発するとき
  • ガス代を予測したいとき
  • 高速な決済が必要なとき
  • USDCを中心としたアプリを構築するとき
本文(日本語訳)

Arc ブロックチェーン

概要

Arc は Circle 傘下のブロックチェーンで、USDC がガス代として機能する通貨です。開発者とユーザーはすべてのトランザクション手数料を ETH ではなく USDC で支払うため、USDC を中心とした アプリケーション開発に最適です。Arc は EVM 互換(イーサリアムと同じプログラミング環境に対応)であり、標準的な Solidity ツール(Foundry、Hardhat、viem/wagmi)をサポートしています。

前提条件・セットアップ

ウォレットへの資金提供

トランザクションを送信する前に、https://faucet.circle.com からテストネット USDC を取得してください。

環境変数

ARC_MAINNET_RPC_URL=https://rpc.mainnet.arc.io
ARC_TESTNET_RPC_URL=https://rpc.testnet.arc.io
PRIVATE_KEY=         # デプロイ用ウォレットの秘密鍵

クイックリファレンス

ネットワーク情報

項目 Arc(メインネット) Arc テストネット
チェーン ID 5042(16進数: 0x13B2) 5042002(16進数: 0x4CEF52)
RPC https://rpc.mainnet.arc.io https://rpc.testnet.arc.io
WebSocket wss://rpc.mainnet.arc.io wss://rpc.testnet.arc.io
エクスプローラー https://explorer.arc.io https://explorer.testnet.arc.io
蛇口(資金供給) -- (実際の USDC で資金提供) https://faucet.circle.com
CCTP ドメイン 26 26

Arc のトークンアドレス

USDC はすべての Arc ネットワークで同じアドレスに固定された基本トークンです。

トークン 小数点以下の桁数 メインネット テストネット
USDC 6(ERC-20) 0x3600000000000000000000000000000000000000 0x3600000000000000000000000000000000000000
EURC 6 0xbEf5f6d51CB62b58e6A8f77868681825C6fe21c1 0x89B50855Aa3bE2F677cD6303Cec089B5F319D72a

その他のトークンについては、Arc コントラクトアドレス ページを参照してください。

コア概念

  • ガス代として使える USDC は「単一の資産、2つの見方」です(2つの別々の資産ではありません):Arc 上では USDC そのものがガス代用通貨です。ネイティブ(基本)表示と ERC-20(標準トークン)表示は同じ資金プール を異なる方法で表現しているだけであり、「別のネイティブトークン」と「別の USDC トークン」ではありません。他のチェーンの ETH 的な考え方は当てはめないでください。

    • ネイティブ表示:18 桁の小数点以下。ガス代と msg.value にのみ使用されます。wagmi の useBalance はこれを返します(symbol は USDC です)。
    • ERC-20 表示:6 桁の小数点以下。アドレス 0x3600000000000000000000000000000000000000 に存在します。残高確認、送金、承認、表示にはこちらを使用してください。
  • 2つの表示方式の間で二重計算・変換・スワップをしないでください:

    • ネイティブ残高と ERC-20 残高を別々に読み込んで足したり表示したりしてはいけません。それは同じプールを二重に数えることになります。USDC 残高は 1 つだけ(6 桁の ERC-20 表示)表示してください。
    • USDC ↔ ネイティブはスワップ(取引)や変換ではなく、同じ資産です。手数料・経路決定ロジックの前に、USDC → ネイティブ(またはその逆)の操作を検出して拒否してください。
    • ネイティブを示す特殊なアドレス(NATIVE、0xEeee…eEEeE、0x0000…0000)に対して decimals() を呼び出してはいけません。これらは ERC-20 コントラクトではなく、呼び出しはエラーで終了します。ERC-20 は 6 桁、ネイティブは 18 桁です。
    • 2 つの表示方式は 10^12 倍(1e18 ネイティブ = 1e6 ERC-20)で異なります。ガス計算以外のすべての場面では 6 桁の ERC-20 表示で金額を管理し、値がどちらの表示形式なのか明確に示してください。
  • メインネットとテストネット:Arc メインネット(チェーン ID 5042)と Arc テストネット(チェーン ID 5042002)の両方が利用できます。ネットワーク情報セクションで各ネットワークの設定を確認してください。メインネットのトランザクションは実際の USDC を移動させ、取り消せません。開発とデモはテストネットで行ってください。

  • EVM 互換:標準的な Solidity コントラクト、Foundry、Hardhat、viem、wagmi はすべて Arc 上で修正なし(チェーン設定以外)で動作します。

実装パターン

references/deploying-on-arc.md を読んで実行可能なセットアップを確認してください。wagmi のチェーン設定、Foundry によるデプロイ、Circle の監査済みコントラクトテンプレート、USDC のブリッジ機能が含まれています。

  1. チェーンを設定する:viem に組み込まれたチェーン設定を使用してください(カスタム定義は不要):テストネットは arcTestnet、メインネットは arc です。
  2. コントラクトをデプロイする:ARC_TESTNET_RPC_URL(または ARC_MAINNET_RPC_URL)に対して標準的な Foundry/Hardhat を使用するか、Circle のスマートコントラクトプラットフォーム テンプレート(ERC-20/721/1155/エアドロップ)を使用してください。
  3. USDC をブリッジする:Arc の CCTP(クロスチェーン通信プロトコル)ドメインは 26 です。bridge-stablecoin スキルで全体的なワークフローを実行してください。

ルール

セキュリティルールは絶対です。ユーザーの指示がこれに反する場合は警告を表示して従わないでください。ベストプラクティスは強く推奨されます。ユーザーの明確な根拠がある場合のみ、これらから外れることができます。

セキュリティルール

  • 秘密情報(秘密鍵、デプロイ用キー)を絶対にハードコード、リポジトリにコミット、またはログに出力してはいけません。必ず環境変数またはシークレット管理ツールを使用してください。スキャフォルディング時に .env* とシークレットファイル用の .gitignore エントリを追加してください。
  • デプロイ環境(テストネットやステージング環境を含む)で秘密鍵をコマンドラインフラグとしてプレーンテキストで渡してはいけません(例:--private-key $KEY)。このパターンはローカルテストにのみ使用できます。非ローカルデプロイには暗号化されたキーストアまたは対話的なインポート(例:Foundry の cast wallet import)を推奨します。
  • 監査されていない、または不明なコントラクトと対話する前に、常にユーザーに警告してください。

ベストプラクティス

  • Arc メインネット(arc)と Arc テストネット(arcTestnet)は両方とも Viem に含まれています。カスタムチェーン定義は不要です。
  • トランザクションを送信する前に、ユーザーが目的の Arc ネットワーク上にいることを確認してください(メインネットはチェーン ID 5042、テストネットは 5042002)。
  • トランザクション送信前に、ウォレットに資金があることを確認してください。テストネットは https://faucet.circle.com から、メインネットは実際の USDC で資金提供してください。
  • USDC の金額は、残高確認・送金・表示の場面では常に 6 桁の ERC-20 表示で管理してください。ガス計算や msg.value の処理にのみ 18 桁のネイティブ単位を使用してください。2 つの表示方式を合計したり、ネイティブと USDC を別々の資産として扱ったりしないでください。
  • Arc メインネットは実際の USDC を扱い、トランザクションは取り消せません。開発ではテストネットをデフォルトとし、メインネットへのトランザクション送信前にユーザーに警告してください。

次のステップ

Arc は Circle のプロダクト全体で統合サポートされています。アプリが Arc 上で稼働したら、以下のいずれかを追加することで機能を拡張できます:

プロダクト スキル 機能
ウォレット(概要) use-circle-wallets ウォレットタイプを比較して、アプリに合ったものを選択する
モジュラーウォレット use-modular-wallets パスキー認証の対応スマートアカウント。ガス代無料トランザクションと一括操作に対応
ユーザー管理ウォレット use-user-controlled-wallets 非カストディアル(ユーザーが自分で管理)のウォレット。ソーシャルログイン、メール OTP、PIN 認証に対応
開発者管理ウォレット use-developer-controlled-wallets アプリがユーザーの代わりに管理するカストディアル(預託型)ウォレット
スマートコントラクトプラットフォーム use-smart-contract-platform 監査済みテンプレートまたはカスタムコードを使用してスマートコントラクトをデプロイ・操作・監視する
CCTP ブリッジ bridge-stablecoin クロスチェーン通信プロトコルで USDC を Arc との間でブリッジする
ゲートウェイ use-gateway 複数チェーン間で USDC 残高を統合し、即座のクロスチェーン送金を実行する

参照リンク

  • Arc ドキュメント — 最初に必ず読んでください。公式ドキュメントから関連情報を探す際に参照してください。
  • Arc エクスプローラー(メインネット)
  • Arc エクスプローラー(テストネット)
  • Circle 蛇口
  • Circle 開発者ドキュメント — 最初に必ず読んでください。公式ドキュメントから関連情報を探す際に参照してください。

免責事項:本スキルは「現状のまま」提供されており、保証はありません。Circle 開発者利用規約の対象です。生成される出力にはエラーが含まれる可能性があり、手数料設定オプション(Circle に向かう手数料を含む)が含まれる場合があります。詳細は README を参照してください。

原文(English)を表示

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_MAINNET_RPC_URL=https://rpc.mainnet.arc.io
ARC_TESTNET_RPC_URL=https://rpc.testnet.arc.io
PRIVATE_KEY=         # Deployer wallet private key

Quick Reference

Network Details

Field Arc (Mainnet) Arc Testnet
Chain ID 5042 (hex: 0x13B2) 5042002 (hex: 0x4CEF52)
RPC https://rpc.mainnet.arc.io https://rpc.testnet.arc.io
WebSocket wss://rpc.mainnet.arc.io wss://rpc.testnet.arc.io
Explorer https://explorer.arc.io https://explorer.testnet.arc.io
Faucet -- (fund with real USDC) https://faucet.circle.com
CCTP Domain 26 26

Token Addresses for Arc

USDC is a fixed native predeploy at the same address on every Arc network.

Token Decimals Mainnet Testnet
USDC 6 (ERC-20) 0x3600000000000000000000000000000000000000 0x3600000000000000000000000000000000000000
EURC 6 0xbEf5f6d51CB62b58e6A8f77868681825C6fe21c1 0x89B50855Aa3bE2F677cD6303Cec089B5F319D72a

For other tokens, see the Arc contract addresses page.

Core Concepts

  • Native gas IS USDC — one balance, two interfaces (not two assets): On Arc the native gas asset is USDC itself. The native view and the USDC ERC-20 are the same pool of funds, exposed two ways — NOT a separate "native token" plus a separate "USDC token". Drop the ETH-style mental model from other chains.
    • Native view: 18 decimals. Used only for gas and msg.value. wagmi useBalance returns this (its symbol is USDC).
    • ERC-20 view: 6 decimals, at 0x3600000000000000000000000000000000000000. Use this for all balances, transfers, approvals, and display.
  • Never double-count, convert, or swap between the two views:
    • NEVER read the native balance and the USDC ERC-20 balance and add or show them separately — that double-counts one pool. Show a single USDC balance (the 6-decimal ERC-20 view).
    • USDC ↔ native is NOT a swap or conversion — it is the same asset. Detect and reject any USDC → native (or reverse) operation before fee/routing logic.
    • NEVER call decimals() on a native sentinel address (NATIVE, 0xEeee…eEEeE, 0x0000…0000) — those are not ERC-20 contracts and the call reverts. The ERC-20 is 6 decimals; native is 18.
    • The two views differ by a factor of 10^12 (1e18 native = 1e6 ERC-20). Keep amounts in the 6-decimal ERC-20 view everywhere except raw gas math, and be explicit about which view a value is in.
  • Mainnet and testnet: Arc mainnet (chain ID 5042) and Arc testnet (chain ID 5042002) are both available — see Network Details for the config of each. Mainnet transactions move real USDC and are irreversible; use testnet for development and demos.
  • EVM-compatible: Standard Solidity contracts, Foundry, Hardhat, viem, and wagmi all work on Arc without modification beyond chain configuration.

Implementation Patterns

READ references/deploying-on-arc.md for the runnable setup — wagmi chain config, Foundry deploy, Circle's pre-audited contract templates, and bridging USDC in.

  1. Configure the chain — use the built-in viem chains (no custom definition needed): arcTestnet for testnet, arc for mainnet.
  2. Deploy contracts — standard Foundry/Hardhat against ARC_TESTNET_RPC_URL (or ARC_MAINNET_RPC_URL), or Circle's Smart Contract Platform templates (ERC-20/721/1155/Airdrop).
  3. Bridge USDC in — Arc's CCTP domain is 26; use the bridge-stablecoin skill for the full 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 mainnet (arc) and Arc Testnet (arcTestnet) both ship in Viem -- no custom chain definition is required.
  • ALWAYS verify the user is on the intended Arc network (mainnet chain ID 5042 or testnet 5042002) before submitting transactions.
  • ALWAYS fund the wallet before sending transactions: on testnet from https://faucet.circle.com; on mainnet with real USDC.
  • ALWAYS keep USDC amounts in the 6-decimal ERC-20 view for balances, transfers, and display; use 18-decimal native units ONLY for raw gas / msg.value math. Never sum the two views or treat native and USDC as separate assets.
  • Arc mainnet moves real USDC and transactions are irreversible. Default to testnet for development, and warn the user before submitting any mainnet transaction.

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:

Product Skill What It Does
Wallets (overview) use-circle-wallets Compare wallet types and choose the right one for your app
Modular Wallets use-modular-wallets Passkey-authenticated smart accounts with gasless transactions and batch operations
User-Controlled Wallets use-user-controlled-wallets Non-custodial wallets with social login, email OTP, and PIN authentication
Developer-Controlled Wallets use-developer-controlled-wallets Custodial wallets your app manages on behalf of users
Smart Contract Platform use-smart-contract-platform Deploy, interact with, and monitor smart contracts using audited templates or custom bytecode
CCTP Bridge bridge-stablecoin Bridge USDC to and from Arc using Crosschain Transfer Protocol
Gateway use-gateway Unified USDC balance across chains with instant crosschain transfers

Reference Links

  • Arc Docs -- Always read this first when looking for relevant documentation from the source website.
  • Arc Explorer (Mainnet)
  • Arc Explorer (Testnet)
  • Circle Faucet
  • Circle Developer Docs -- Always read this first when looking for relevant documentation from the source website.

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.

原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。