Verify & Publish Contract Source Code

合约验证与源码公开

Verification is automatic: paste your source and compiler settings, sign with a KYC-verified address, and the server compiles it and compares the result with the code on SCDO Shard0 (EVM). On a match, the source code, ABI and a Read/Write panel appear on the contract page right away.

验证全自动完成:填写源码和编译参数,用已通过 KYC 的地址签名,服务器即会编译并与 SCDO Shard0 (EVM) 链上代码比对。比对一致后,源码、ABI 和读/写面板会立即显示在合约页面。

SCDO Shard0 (EVM)chainId 5680 (0x1630)Automatic / 自动验证KYC-verified submitters / 需通过 KYC

1Contract合约

2Compiler settings & source编译参数与源码

Official solc releases, checked by SHA-256. / 官方 solc 发布版,校验 SHA-256。
Empty = try every contract in the source. / 留空则尝试源码中所有合约。
Must be the same name used at deploy time for a full match. / 与部署时文件名一致才能完全匹配。
Max 1.5 MB, 300 files. Imports are not downloaded: flatten the source or use standard JSON with every file inline. / 最大 1.5 MB、300 个文件。不会下载 import,请展平源码,或使用内联全部文件的标准 JSON。

3Sign & KYC签名与 KYC

Sign the message below with a KYC-verified address (the deployer, the owner, or any KYC-verified address). Signing is free and sends no transaction. Each signature is valid for 10 minutes and works once.

请用已通过 KYC 的地址(部署者、owner 或任意已认证地址)签署下方消息。签名免费,不会发送交易。每个签名 10 分钟内有效,只能使用一次。

A. MetaMask (or another browser wallet) / 浏览器钱包

The wallet will ask you to sign when you press "Verify & publish". / 点击"验证并发布"时钱包会请求签名。

B. SCDO web wallet / SCDO 网页钱包(手动签名)

Open wallet / 打开钱包 →
KYC registry: liveKYC 登记合约:已上线 — 0x0d245fb56f9e9bdcf05fa93f39d5d29c4cd09335 (KYC Registry — 9Y9 PTY LTD). Connect a wallet or enter a signer address to see its KYC status.(KYC 登记合约 — 9Y9 PTY LTD)。请连接钱包或填写签名地址以查看其 KYC 状态。

4Verify & publish验证并发布

Problems? Report here (GitHub).

遇到问题?在这里反馈(GitHub)。

How it works验证流程Verified contracts / 已验证合约

EN How automatic verification works

  1. KYC check. The signed message SCDO contract verification <address> <timestamp> proves which address is submitting. That address must be KYC-verified in the SCDO Shard0 (EVM) KYC registry (live), which stores only a status, tier, expiry and a record hash, never personal data. Registry: 0x0d245fb56f9e9bdcf05fa93f39d5d29c4cd09335 (KYC Registry — 9Y9 PTY LTD). Not verified yet? Complete KYC in the SCDO web wallet (KYC tab).
  2. Compile. The server downloads the exact official solc release you chose (SHA-256 checked, cached) and compiles your source in a sandbox with your optimizer, runs and evmVersion settings.
  3. Compare. The compiled runtime bytecode is compared with eth_getCode on chainId 5680. immutable slots are masked and the metadata hash is compared separately: full match (identical) or partial match (only the metadata hash differs). Where the creation transaction is found, its creation code and constructor arguments are checked too.
  4. Publish. On a match the record is published at once. The contract page shows a "Contract: Verified" badge, the source, ABI and compiler settings, and a Read/Write panel. Your browser re-checks the on-chain code hash live each time the page is opened.

Limits: 2 MB per request, 1.5 MB of source, 60 s compile time, 30 submissions per hour per network. Verification is free; nobody will ask you for keys, seed phrases or a payment. Contracts on SCDO Shard1 (Classic), SCDO Shard2 (Classic), SCDO Shard3 (Classic) and SCDO Shard4 (Classic) are not covered. Details: /verified/METHOD.txt.

中文 自动验证流程

  1. KYC 检查:签名消息 SCDO contract verification <地址> <时间戳> 用于证明提交人地址。该地址须在 SCDO Shard0 (EVM) KYC 登记合约(已上线)中为"已认证"。注册合约只存状态、等级、有效期和记录哈希,不存个人信息。注册合约地址:0x0d245fb56f9e9bdcf05fa93f39d5d29c4cd09335(KYC 登记合约 — 9Y9 PTY LTD)。尚未认证?请在 SCDO 网页钱包(KYC 页面)完成认证。
  2. 编译:服务器下载你所选的官方 solc 发布版(校验 SHA-256 并缓存),按你填写的优化器、runs 和 evmVersion 在沙箱中编译。
  3. 比对:将编译得到的运行时字节码与 chainId 5680 上的 eth_getCode 比对。immutable 位置会被屏蔽,元数据哈希单独比较:完全匹配(完全相同)或部分匹配(仅元数据哈希不同)。如能找到部署交易,还会核对创建字节码和构造函数参数。
  4. 发布:比对一致后立即发布。合约页面显示“合约:已验证”标记、源码、ABI、编译参数和读/写面板。每次打开页面时,浏览器还会实时复核链上代码哈希。

限制:每次请求 2 MB、源码 1.5 MB、编译 60 秒、每个网络每小时 30 次提交。验证免费,任何人都不会向你索要私钥、助记词或付款。SCDO Shard1 (Classic)、SCDO Shard2 (Classic)、SCDO Shard3 (Classic) 和 SCDO Shard4 (Classic) 上的合约不适用。详情:/verified/METHOD.txt。

Verified contracts / 已验证合约

Loading… / 加载中…