Skip to content

feat(typescript): add RugShield action provider for pre-trade DEX swap simulation and honeypot detection - #1631

Open
ak10082247-max wants to merge 1 commit into
coinbase:mainfrom
ak10082247-max:feat/rugshield-action-provider
Open

ak10082247-max wants to merge 1 commit into
coinbase:mainfrom
ak10082247-max:feat/rugshield-action-provider

Conversation

@ak10082247-max

Copy link
Copy Markdown

Description

Adds the RugShield Action Provider (@coinbase/agentkit), enabling autonomous trading agents on Base and Solana to perform sub-second, pre-trade DEX swap simulations, honeypot detection, buy/sell tax audits, and LP lock verification via x402 micropayments.

Capabilities Included:

  • scan_token: Comprehensive pre-trade swap simulation (verifies Uniswap V2 buy/sell execution, computes exact buy/sell tax bps, checks liquidity depth, and returns trading recommendation: SAFE, CAUTION, DANGEROUS).
  • check_honeypot: Fast boolean honeypot check to confirm whether a token can be sold on DEX pools before submitting swaps.
  • token_god_mode: Top token holder distribution, whale cluster mapping, and smart-money orderflow breakdown.

Supported networks: Base Mainnet (8453), Base Sepolia (84532), and Solana Mainnet (5eykt...).


Zero-Wallet Instant Evaluation

If no x402 payment signature is configured, the provider gracefully falls back to instant preliminary evaluation (/v1/scan/preview) and provides 1 free daily full scan per agent. Full paid requests settle gaslessly via RFC/x402 in USDC.


Tests

Unit tests included in src/action-providers/rugshield/rugshieldActionProvider.test.ts:

  • Action provider initialization with default URL
  • Custom service URL override
  • Multi-chain network support (EVM + SVM)

Checklist

  • Added documentation to typescript/agentkit/README.md
  • Added dedicated provider README in src/action-providers/rugshield/README.md
  • Added export to src/action-providers/index.ts
  • Added changeset entry (.changeset/add-rugshield-action-provider.md)

@github-actions github-actions Bot added documentation Improvements or additions to documentation action provider New action provider typescript labels Nov 7, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action provider New action provider documentation Improvements or additions to documentation typescript

Development

Successfully merging this pull request may close these issues.

1 participant