Skip to content

Add CryptoGuard to x402 ecosystem (Services/Endpoints)#1358

Closed
gpartin wants to merge 1 commit intox402-foundation:mainfrom
gpartin:add-cryptoguard-ecosystem
Closed

Add CryptoGuard to x402 ecosystem (Services/Endpoints)#1358
gpartin wants to merge 1 commit intox402-foundation:mainfrom
gpartin:add-cryptoguard-ecosystem

Conversation

@gpartin
Copy link
Copy Markdown

@gpartin gpartin commented Feb 26, 2026

CryptoGuard - Per-transaction crypto trade validator powered by WaveGuard physics engine. One API call before every trade: resolves token, runs anomaly detection via wave-equation PDEs (no ML), checks rug pull risk, cross-references CEX/DEX pricing, and returns a deterministic PROCEED / CAUTION / BLOCK verdict.

Endpoints:

  • POST /v1/validate-trade - Primary: one call, one verdict, every trade vetted
  • POST /v1/validate-trades - Batch up to 20 trades
  • GET /v1/scan/{coin_id} - Single token anomaly scan
  • POST /v1/portfolio/scan - Portfolio batch (up to 50 tokens)
  • GET /v1/scan/{coin_id}/history - Historical self-comparison
  • GET /v1/rug-check/{chain}/{pair} - Rug pull risk assessment
  • GET /v1/dex/new-pairs - New DEX pair discovery

Pricing: 0.05 USDC/scan on Base
Live: https://gpartin--cryptoguard-api-fastapi-app.modal.run
x402 discovery: https://gpartin--cryptoguard-api-fastapi-app.modal.run/.well-known/x402
Source: https://github.com/gpartin/CryptoGuard

Files:

  • partners-data/cryptoguard/metadata.json - Service metadata
  • public/logos/cryptoguard.svg - Custom SVG logo (shield + candlestick chart + anomaly indicator + checkmark)

Copilot AI review requested due to automatic review settings February 26, 2026 11:41
@cb-heimdall
Copy link
Copy Markdown

cb-heimdall commented Feb 26, 2026

✅ Heimdall Review Status

Requirement Status More Info
Reviews 1/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 26, 2026

@gpartin is attempting to deploy a commit to the Coinbase Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds CryptoGuard, a crypto trade validation service, to the x402 ecosystem. CryptoGuard provides per-transaction validation powered by a WaveGuard physics engine, offering anomaly detection, rug pull risk assessment, and CEX/DEX price cross-referencing with deterministic PROCEED/CAUTION/BLOCK verdicts at $0.05/scan on Base.

Changes:

  • Added CryptoGuard partner metadata with service description and configuration
  • Created custom SVG logo featuring shield, candlestick chart, anomaly indicator, and checkmark

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
typescript/site/app/ecosystem/partners-data/cryptoguard/metadata.json Defines service metadata including name, description, logo path, website URL, and category classification
typescript/site/public/logos/cryptoguard.svg Custom vector logo with visual elements representing security (shield), crypto trading (candlesticks), anomaly detection (alert dot), and validation (checkmark)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +3 to +6
"description": "Per-transaction crypto trade validator powered by WaveGuard physics engine. One API call before every trade: resolves token, runs anomaly detection, checks rug pull risk, cross-references CEX/DEX pricing, and returns PROCEED/CAUTION/BLOCK verdict. Also provides portfolio scanning, historical self-comparison, and new DEX pair discovery. $0.05/scan via USDC on Base.",
"logoUrl": "/logos/cryptoguard.svg",
"websiteUrl": "https://gpartin--cryptoguard-api-fastapi-app.modal.run",
"category": "Services/Endpoints"
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The field ordering in this metadata.json file doesn't follow the newer convention used by recent partner additions. Many recent partners place the "category" field immediately after "name" (line 2-3 position), rather than at the end. While both orderings work functionally, following the more recent pattern would improve consistency. Consider reordering the fields as: name, category, logoUrl, description, websiteUrl.

Suggested change
"description": "Per-transaction crypto trade validator powered by WaveGuard physics engine. One API call before every trade: resolves token, runs anomaly detection, checks rug pull risk, cross-references CEX/DEX pricing, and returns PROCEED/CAUTION/BLOCK verdict. Also provides portfolio scanning, historical self-comparison, and new DEX pair discovery. $0.05/scan via USDC on Base.",
"logoUrl": "/logos/cryptoguard.svg",
"websiteUrl": "https://gpartin--cryptoguard-api-fastapi-app.modal.run",
"category": "Services/Endpoints"
"category": "Services/Endpoints",
"logoUrl": "/logos/cryptoguard.svg",
"description": "Per-transaction crypto trade validator powered by WaveGuard physics engine. One API call before every trade: resolves token, runs anomaly detection, checks rug pull risk, cross-references CEX/DEX pricing, and returns PROCEED/CAUTION/BLOCK verdict. Also provides portfolio scanning, historical self-comparison, and new DEX pair discovery. $0.05/scan via USDC on Base.",
"websiteUrl": "https://gpartin--cryptoguard-api-fastapi-app.modal.run"

Copilot uses AI. Check for mistakes.
@Must-be-Ash
Copy link
Copy Markdown
Collaborator

please sign your commit and tag me to review again
also just a heads up /v1/dex/new-pairs seems to be free

Screenshot 2026-02-26 at 11 07 00 AM

@Must-be-Ash Must-be-Ash self-assigned this Feb 26, 2026
@gpartin
Copy link
Copy Markdown
Author

gpartin commented Feb 26, 2026

Thanks for the review @Must-be-Ash!

Signed commits: Done latest commit is GPG-signed.

/v1/dex/new-pairs appearing free: This is by design. CryptoGuard has a 5 free calls/day/IP tier to let developers evaluate the API before committing to x402 payments. After the 5th call from the same IP in a 24-hour window, the endpoint enforces x402 payment (.05 USDC on Base). The free tier logic is in _check_free_tier() it tracks call counts per IP per day and only calls _check_x402_payment() once the limit is exceeded.

So the data you saw was real you just hit it within the free window. The x402 paywall is fully wired and active beyond that threshold.

@gpartin
Copy link
Copy Markdown
Author

gpartin commented Mar 11, 2026

Hey @Must-be-Ash — just checking in on this. Commits are signed and metadata is reordered per your feedback from Feb 26. Let me know if anything else is needed for review. Thanks!

@Must-be-Ash
Copy link
Copy Markdown
Collaborator

hi there, you still have an unsigned commit. All commits must have verified signatures.

d52f131
Screenshot 2026-03-11 at 12 09 36 PM

@gpartin gpartin force-pushed the add-cryptoguard-ecosystem branch from b58bd0b to d279694 Compare March 11, 2026 19:58
@gpartin
Copy link
Copy Markdown
Author

gpartin commented Mar 11, 2026

Fixed! Squashed into a single signed commit (d279694). All commits now have verified signatures. Thanks for catching that!

@gpartin
Copy link
Copy Markdown
Author

gpartin commented Mar 31, 2026

Superseded by #1888 which consolidates both WaveGuard and CryptoGuard into a single PR and uses the correct field ordering (name, category, logoUrl, description, websiteUrl) per the convention suggested in the review.

@gpartin gpartin closed this Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ecosystem Additions to ecosystem site website

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants