clarity.audit
Onchain Security Registry for Clarity Smart Contracts
Connect a wallet
Select your Stacks wallet to continue.
⚡ MAINNET — real STX · contract: SP3CM…audit-registry2
TESTNET
Select Network
⬡ Stacks · Bitcoin L2 · Clarity 4

The Onchain
Security Registry
for Clarity Contracts

Audit your Stacks smart contract, publish results onchain, and give users verifiable proof of security — permanently anchored to Bitcoin.

↓ npm CLI
stacks-clarity-audit · v0.1.5
$ npx stacks-clarity-audit
  scan ./contracts/token.clar

  ┌──────────────────────────┐
  │  Stacks Security Audit   │
  └──────────────────────────┘

  [CRIT] CLA-001 unwrap! unsafe
  [CRIT] CLA-006 unchecked transfer
  [WARN] CLA-003 as-contract risk
  [INFO] CLA-005 use read-only

  ──────────────────────────
  Score: 19/100  ✗ CRITICAL RISK
  Registry: ❌ NOT CERTIFIED
Total Audits
Certified Safe
7
Security Rules
70+
Passing Score
Audit Registry
Querying Stacks blockchain…
How It Works
01
Run CLI
Scan with npx stacks-clarity-audit and get a 0–100 security score.
02
Fix Issues
Resolve critical vulnerabilities and warnings until score reaches ≥70 for certification.
03
Publish Onchain
Submit results to the Bitcoin-anchored Stacks registry — permanently stored, publicly verifiable.
04
Get Certified
Score ≥70 earns a certified badge. Embed it in your README and docs for user trust.
Verify Contract Safety

Enter a Stacks contract address to check its onchain audit status.

Quick Examples
Submit Audit Result
Stored permanently on Stacks blockchain
85
CRITICAL
WARNING
INFO

Requires Leather Wallet · Testnet STX for gas

Score Guide
90–100Excellent
70–89✅ Safe (certified)
40–69⚠️ Moderate risk
0–39❌ High risk
Run CLI first
Get your score before submitting:
npx stacks-clarity-audit
scan ./contract.clar
Generate Security Badge
For README and docs
⚠ Badge is cosmetic only. Real verification is onchain via the Stacks registry — anyone can check your audit using the Verify tab.
Adjust Score
92
Preview
clarity-audit 92/100 ✅ SAFE
Markdown
[![Clarity Audit](https://img.shields.io/badge/clarity--audit-92%2F100-green?style=flat-square&logo=bitcoin)](https://clarity-audit-nine.vercel.app)
Deploy — Generate & Deploy Clarity Contracts
Stacks Docs ↗ Leather Wallet ↗
Choose a template → fill parameters → preview & download your .clar contract.
🪙
SIP-010 Fungible Token
Standard fungible token — ERC-20 equivalent on Stacks.
🖼
SIP-009 NFT Collection
Non-fungible token with mint, transfer & URI support.
🏛
DAO Voting
On-chain proposals, voting, and execution with quorum.
🔐
Multisig Wallet
2-of-3 multi-signature STX wallet with confirm & execute.
📋
Key-Value Registry
Generic on-chain data registry with owner-gated writes.