Skip to content
jotel-devPublic

About

AI-powered crypto wallet security scanner that detects risks across five blockchains and logs verifiable scan records on Stacks Mainnet.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

79 Commits

Folders and files

Repository files navigation

TxGuard — Know Before You Send.

Check the address. Understand the risk. Decide before you send.

TxGuard is a free recipient risk assessment tool for everyday crypto users, freelancers, P2P traders and small businesses. It combines available blockchain activity with provider-reported security indicators, explains coverage limits, and lets users inspect actual transaction history. No wallet connection, private key, seed phrase or payment is required.

Existing public app · Repository

The 2.0 revamp is on feat/txguard-2-reliability. Production still serves the previous release. Existing GitHub automation creates protected Vercel previews on branch pushes; their application flow has not been verified through Vercel login. No production promotion has been performed. See the final release report.

What is implemented

  • Shared mainnet address validation: EIP-55 EVM checksums, Solana 32-byte Base58 keys, Bitcoin Base58Check / SegWit / Taproot checksums, Stacks c32 principals and contract principals.
  • Deterministic evidence-based categories: Low observed risk, Caution, Suspicious, High risk, and Insufficient data. Missing coverage has a null score, never a fabricated zero.
  • Concurrent bounded provider collection, scan deduplication and short-lived caches. Free scans continue without AI or Etherscan credentials.
  • Responsive scan form, downloadable report, explicit sources, limitations and exact native-unit formatting.
  • Real recent blockchain history, with pending/failed/unknown statuses kept distinct and missing amounts/times left unknown.
  • Locally saved wallets, search/filter, bounded refresh and the last 20 live scan summaries. Existing valid saved addresses migrate; unverifiable legacy scores and example balances are cleared.
  • Contextual Ask TxGuard: optional server-side Groq chooses an explanation focus; server-owned evidence supplies all factual prose. Deterministic fallback remains usable without a key.
  • Native speech with a bounded optional audio fallback.
  • Read-only Stacks contract and existing receipt verification. No automatic wallet prompts or mainnet writes.
  • Clearly labeled synthetic demo scenarios and a sourced historical address that users can load for a genuine live check.

Network coverage

Network Blockchain activity Address-security intelligence
Ethereum Etherscan V2 native balance, normal transactions and ERC-20 events; key/plan required GoPlus address-security fields
BNB Chain Etherscan V2 chain ID 56; key/plan required GoPlus address-security fields
Solana Finalized native balance; recent signatures and conservatively decoded transfers Not integrated; insufficient data
Bitcoin Confirmed balance/statistics; recent transactions including mempool observations Not integrated; insufficient data
Stacks Native balance and recent activity from Hiro Not integrated; insufficient data

An address assessment is not transaction simulation. Optional token and amount fields do not validate token ownership, approvals, execution or available token balance. No ownership guarantee, comprehensive sanctions screening or honeypot analysis is provided. A low observed risk score never guarantees safety.

Run locally

Use Node.js 24 and npm. On Windows PowerShell, use npm.cmd if script execution policy blocks npm.ps1.

cd web
npm ci
cp .env.example .env
npm run dev

Vite serves the frontend and all six local /api/ handlers. GROQ_API_KEY and ETHERSCAN_API_KEY are optional server-only variables. Deployed APIs require an existing Upstash REST URL/write token and RATE_LIMIT_HMAC_SECRET; missing or unavailable protection returns 503 before providers are called. Never prefix secrets with VITE_. Follow the exact environment setup. npm run preview serves the static production build only; it does not emulate serverless APIs.

# web/
npm run check                 # formatting, lint, unit/API/security tests, build + secret boundary
npx playwright install chromium
npm run test:e2e              # deterministic browser journeys, seven widths and axe
node scripts/verify-live.mjs  # read-only public integration checks; no signing

# Windows installed Edge alternative
# $env:PLAYWRIGHT_CHANNEL='msedge'; npm run test:e2e

# txguard-stacks/
npm ci
npm run typecheck            # strict TypeScript for tests/configuration
npm test                     # local Clarinet simnet, never mainnet

# simulator/
npm ci
npm test                     # deterministic mock ledger/API checks
npm start                    # local mock service on 127.0.0.1:3000

The simulator is entirely synthetic and never supplies production scan data. Its numbers and settlement behavior are not blockchain intelligence.

Stacks registry

Existing mainnet contract: SP3QKY6WR398BJHPP23VKKEQXQ0T1H1HAQ1BKQFKM.registry.

Read-only verification confirmed its interface, deployed source (matching local code ignoring comments/whitespace), and an existing anchored successful log-scan call. See live evidence. A registry entry records a public assertion from a submitter. It does not authenticate TxGuard, prove the score correct, or bind the entry to a downloaded report. Existing entries may be duplicates or arbitrary submissions. This release verifies existing receipts and does not create paid mainnet entries.

Documentation and submission

Deployment, production environment changes, contract upgrades, paid transactions and merging require explicit approval. Shared Redis quotas are implemented and mocked in tests; configure and verify them across actual deployed instances before launch. Production has no in-memory limiter fallback.

About

AI-powered crypto wallet security scanner that detects risks across five blockchains and logs verifiable scan records on Stacks Mainnet.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages