AI-powered smart contract generator, analyzer, and deployer for BNB Chain (BSC/opBNB). Use when you need to generate Solidity from natural language, run security analysis, compile and deploy contracts, verify source on BscScan/opBNBScan, interact with deployed contracts, or run the full generate→analyze→deploy→verify pipeline. Supports bsc-mainnet, bsc-testnet, opbnb-mainnet, opbnb-testnet.
Generate, analyze, deploy, and verify smart contracts on BNB Chain via CLI.
Source & install: pnpm install && pnpm build && npm link.
Generate a contract:
clawcontract generate "escrow contract for peer to peer trades with dispute resolution and timeout auto release"
Full pipeline (generate → analyze → deploy → verify):
clawcontract full "escrow contract for peer to peer trades with dispute resolution and timeout auto release" --chain bsc-testnet
Deploy an existing contract:
clawcontract deploy ./contracts/VibeToken.sol --chain bsc-testnet
Interact with a deployed contract:
clawcontract interact 0xABC... name --chain bsc-testnet
List deployment records:
clawcontract list
clawcontract list --chain bsc-testnet
Delete a deployment record:
clawcontract delete 0xABC...def
| Key | Chain | Testnet |
|---|---|---|
| INLINECODE2 | BNB Smart Chain | No |
| INLINECODE3 |
opbnb-mainnet | opBNB | No |
| opbnb-testnet | opBNB Testnet | Yes |
Default: bsc-testnet.
Configure via docker-compose.yml or set directly in the environment.
| Variable | Required | Purpose |
|---|---|---|
| INLINECODE8 | Yes | AI contract generation |
| INLINECODE9 |
CLAWCONTRACT_BSCSCAN_API_KEY | For verify | Contract verification on BscScan/opBNBScan |CLAWCONTRACT_OPENROUTER_MODEL | No | Model override (default: anthropic/claude-sonnet-4-20250514) |
The CLI writes the following files to disk during normal operation:
| Path | When | Contents |
|---|---|---|
| INLINECODE12 | INLINECODE13 , INLINECODE14 | Generated Solidity source |
| INLINECODE15 |
deploy, full | Deployment metadata (address, chain, tx hash) |
CLAWCONTRACT_PRIVATE_KEY must be explicitly provided by the user via environment variable. The CLI will not generate or persist a private key on its own.--chain explicitly (default is bsc-testnet).delete confirmation prompt. delete is the sole interactive command — it shows deployment details and asks Remove this deployment? (y/N). Use --force to skip the prompt (agent-friendly). This is safe because delete only removes local metadata; it cannot affect on-chain state.full, if high-severity issues are found the AI attempts to fix and re-analyze (up to 3 rounds). This means the agent may modify generated source before deploy. Mitigations:--skip-fix to disable auto-fix entirely.
- Use --skip-deploy to review the final source and analysis before any on-chain action.
- Fixes only target the generated file in contracts/; no other files are modified.
CLAWCONTRACT_PRIVATE_KEY is mandatory for deploy and the default chain is bsc-testnet, accidental mainnet deploys require the user to both set a funded mainnet key and explicitly pass --chain bsc-mainnet or --chain opbnb-mainnet. Neither can happen silently.该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 clawcontract-1776419971 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 clawcontract-1776419971 技能
skillhub install clawcontract-1776419971
文件大小: 4.29 KB | 发布时间: 2026-4-17 20:08