返回顶部
Q

QELT ContractsQELT合约验证

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
330
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

QELT Contracts

QELT 智能合约验证技能

QELT主网索引器通过REST API提供生产级合约验证。支持500多个Solidity版本、构造函数参数、库链接、多文件合约(75个以上文件)、viaIR编译以及自动EVM版本检测。

API基础地址: https://mnindexer.qelt.ai
速率限制: 每个IP每小时10次验证提交
每个任务超时: 600秒(10分钟)
状态轮询: 无限制——可自由每3-5秒轮询一次

安全事项

  • - 请勿提交包含私钥或机密的源代码。
  • 验证是永久性的——一旦验证通过,源代码将公开。
  • 提交前务必先检查是否已验证(节省速率限制配额)。
  • status: completed 并不表示验证通过——务必检查 result.verified === true。
  • 状态轮询无限制——任务仍在处理中时请勿重新提交。

操作流程

1. 检查是否已验证(请先执行此步骤)

bash
curl -fsSL https://mnindexer.qelt.ai/api/v2/contracts/0xCONTRACT/verification

如果 verified: true → 向用户返回现有源代码/ABI,无需提交。

2. 提交单文件合约

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 }

3. 提交多文件合约(含导入)

适用于使用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: ...
}
}

4. 轮询状态(无限制)

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 = 字节码不匹配。

5. 获取编译器版本

bash
curl -fsSL https://mnindexer.qelt.ai/api/v2/verification/compiler-versions

6. 获取EVM版本

bash
curl -fsSL https://mnindexer.qelt.ai/api/v2/verification/evm-versions

EVM版本选择

Solidity版本范围EVM版本
0.5.14 – 0.8.4istanbul
0.8.5
berlin | | 0.8.6 – 0.8.17 | london | | 0.8.18 – 0.8.19 | paris | | 0.8.20 – 0.8.23 | shanghai | | 0.8.24+ | cancun |

QELT主网运行EVM Cancun——Solidity 0.8.24+请使用 cancun。

速率限制

端点限制
POST /api/v1/verification/submit每个IP每小时10次请求
POST /api/v1/verification/submit-multi
每个IP每小时10次请求 | | GET /api/v1/verification/status/:jobId | 无限制 | | 所有其他GET端点 | 无速率限制 |

速率限制头信息:X-RateLimit-Limit、X-RateLimit-Remaining、X-RateLimit-Reset、Retry-After。

常见错误

症状可能原因修复方法
verified: false(已完成)编译器/优化/参数错误匹配确切的部署设置
HTTP 429
达到速率限制 | 等待 Retry-After 秒(通常为3600) | | status: failed | 编译错误 | 检查 message 字段 | | 600秒超时 | 大合约 + viaIR | 正常;任务仍会完成 |

最佳实践

  1. 1. 提交前先检查——首先使用 GET /api/v2/contracts/:address/verification
  2. 任何包含 import 语句的合约使用 /submit-multi
  3. 如果在hardhat配置中使用 viaIR: true 编译,请包含 viaIR: true
  4. 每3-5秒轮询一次——不要重新提交正在处理的任务

开发者工具

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

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 qelt-contracts-1776202326 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 qelt-contracts-1776202326 技能

通过命令行安装

skillhub install qelt-contracts-1776202326

下载

⬇ 下载 QELT Contracts v0.1.0(免费)

文件大小: 5.84 KB | 发布时间: 2026-4-15 12:38

v0.1.0 最新 2026-4-15 12:38
Initial release of QELT Contracts skill.

- Verify single- and multi-file Solidity smart contracts on the QELT blockchain using the Mainnet Indexer API.
- Check if a contract is already verified, retrieve source code or ABI, and list supported compiler and EVM versions.
- Supports advanced verification features including constructor arguments, library linking, viaIR, and up to 75+ files with OpenZeppelin imports.
- Poll contract verification status without rate limits; submission rate limited to 10 per hour.
- Includes best practices and error handling guidance for safer, efficient contract verification.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部