HTTP/1.1 402 PAYMENT REQUIRED agent402.base.eth · BASE · SOLANA · POLYGON · ARBITRUM · MONAD · STELLAR · ALGORAND · ROBINHOOD · USDC · USDG

Contract audit

Triage a smart contract before an agent interacts with it: verified source, heuristic vulnerability scan, known-address check, function-selector resolution, and a read-only dry-run of the exact call you plan to make.

When to use this pack

An agent is about to approve, transfer, or call an unfamiliar contract — you want the verified source scanned for red flags, the address checked against known labels, and the intended calldata simulated before anything is signed or broadcast.

Tools in this pack

Workflow

  1. Fetch the verified Solidity source and compiler metadata from Sourcify via contract-source — an unverified contract is itself a finding.
  2. Run solidity-scan over the returned source for line-anchored heuristic findings: tx.origin auth, delegatecall, selfdestruct, unchecked calls, weak randomness, and more.
  3. Resolve the 4-byte selector of the calldata you plan to send with selector-lookup so you know exactly which function it hits.
  4. Check the address against the curated known-address dataset with address-label — is this the real token/router/bridge or an impostor?
  5. Dry-run the exact call with tx-simulate (eth_call + gas estimate, strictly read-only) to see whether it succeeds or reverts before anything is signed.

Run it in Claude

claude mcp add agent402 -s user -- npx -y agent402-mcp@latest

Then paste this prompt into Claude:

Audit the contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on base before interacting with it, using Agent402's contract-audit skill pack. (1) Fetch the verified source from Sourcify, (2) run the heuristic Solidity scan over it, (3) resolve the selector of the planned calldata 0x70a08231000000000000000000000000abf4fabd7c416fb67202e5f9002389fc75e2a9d0, (4) check the address against known labels, (5) simulate the call read-only. Report: verification status, scan findings by severity, what the calldata does, whether the address is a known contract, and the dry-run verdict.

← All skill packs