Verify and inspect smart contracts on the QELT blockchain using the Mainnet Indexer verification API. Use when asked to verify Solidity source code, check if a contract is verified, retrieve ABIs, list compiler versions, poll a verification job, or submit multi-file contracts (with OpenZeppelin imports). Rate limit: 10 submissions/hour.
QELT主网索引器通过REST API提供生产级合约验证。支持500多个Solidity版本、构造函数参数、库链接、多文件合约(75个以上文件)、viaIR编译以及自动EVM版本检测。
API基础地址: https://mnindexer.qelt.ai
速率限制: 每个IP每小时10次验证提交
每个任务超时: 600秒(10分钟)
状态轮询: 无限制——可自由每3-5秒轮询一次
bash
curl -fsSL https://mnindexer.qelt.ai/api/v2/contracts/0xCONTRACT/verification
如果 verified: true → 向用户返回现有源代码/ABI,无需提交。
bash
curl -fsSL -X POST https://mnindexer.qelt.ai/api/v1/verification/submit \
-H Content-Type: application/json \
-d {
address: 0xCONTRACT,
sourceCode: // SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n...,
compilerVersion: 0.8.20,
contractName: MyContract,
optimizationUsed: true,
runs: 200,
evmVersion: shanghai,
constructorArguments: 0x000...,
libraries: {}
}
响应:{ success: true, jobId: uuid, statusUrl: /api/v1/verification/status/uuid }
适用于使用OpenZeppelin或任何 import 语句的合约:
bash
curl -fsSL -X POST https://mnindexer.qelt.ai/api/v1/verification/submit-multi \
-H Content-Type: application/json \
-d {
address: 0xCONTRACT,
compilerVersion: v0.8.17+commit.8df45f5f,
contractName: MyToken,
optimizationUsed: true,
runs: 200,
viaIR: true,
evmVersion: london,
mainFile: contracts/MyToken.sol,
sourceFiles: {
contracts/MyToken.sol: pragma solidity ^0.8.17; ...,
@openzeppelin/contracts/token/ERC20/ERC20.sol: ...
}
}
bash
curl -fsSL https://mnindexer.qelt.ai/api/v1/verification/status/JOB_ID
状态:pending → processing → completed / failed
⚠️ 在 completed 之后,务必验证 result.verified === true:
json
{
status: completed,
result: { verified: true, abi: [...] }
}
verified: false 且 status: completed = 字节码不匹配。
bash
curl -fsSL https://mnindexer.qelt.ai/api/v2/verification/compiler-versions
bash
curl -fsSL https://mnindexer.qelt.ai/api/v2/verification/evm-versions
| Solidity版本范围 | EVM版本 |
|---|---|
| 0.5.14 – 0.8.4 | istanbul |
| 0.8.5 |
QELT主网运行EVM Cancun——Solidity 0.8.24+请使用 cancun。
| 端点 | 限制 |
|---|---|
| POST /api/v1/verification/submit | 每个IP每小时10次请求 |
| POST /api/v1/verification/submit-multi |
速率限制头信息:X-RateLimit-Limit、X-RateLimit-Remaining、X-RateLimit-Reset、Retry-After。
| 症状 | 可能原因 | 修复方法 |
|---|---|---|
| verified: false(已完成) | 编译器/优化/参数错误 | 匹配确切的部署设置 |
| HTTP 429 |
Hardhat插件: npm install --save-dev @qelt/hardhat-verify@latest
bash
npx hardhat qelt:verify --network qelt 0xCONTRACT_ADDRESS
CLI工具: npm install -g qelt-verify → qelt-verify verify 0x... ./Contract.sol --compiler-version 0.8.20 --optimize
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 qelt-contracts-1776202326 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 qelt-contracts-1776202326 技能
skillhub install qelt-contracts-1776202326
文件大小: 5.84 KB | 发布时间: 2026-4-15 12:38