Bankr token scam analysis

From Eskyee/agentbot-opensource · View interactive version

Bankr token scam analysis is an AI agent skill from the GitHub repository Eskyee/agentbot-opensource. Deep on-chain scam / rug / soft-rug analysis for EVM tokens (especially Clanker, Doppler, Bankr-style single-admin ERC-20s). Use when the user asks to "analyze this token for scam", "is this a rug", "should I trust this migration", "do a deep dive on holders and deployer", or provides one or more to

How to use this skill

Skill file

Token Scam Analysis Skill

You are performing a forensic on-chain analysis to determine whether a token (or set of tokens) is a scam, rug-pull, or soft-rug. The output is a written report saved to the user's file storage plus a verdict in chat.

When to use this skill

Core principle

Narrative is noise. On-chain state is signal. Every claim the team makes should be checked against what the contract and the deployer's wallet actually did. If the two conflict, the chain wins.

BUT: on-chain cleanliness ≠ not a scam. A team can deploy a perfectly clean LayerZero OFT or ERC-20, hand it to a multisig, and still run a textbook insider pump-and-dump via CEX coordination and concentrated supply. You MUST always run the off-chain intel pass (Step Final-1) before issuing a verdict, or you will under-call real manipulation cases.


Step 0 — Read the platform's deploy docs BEFORE judging tokenomics claims

Before making any claim about what a team "could not" or "should have" configured, read the deployment docs for the launch platform. Otherwise you will miss capabilities and bait on the team's narrative. Identify the platform by looking at the allData() context field (e.g., "interface":"clanker.world"), the deploy factory address, or the token ABI (admin/originalAdmin/allData/isVerified is Clanker-style).

Priority reads by platform:

Save this step to your report. The "Claim vs reality" section needs to quote a specific docs capability the team could have used and chose not to.


Tool map (roughly in order of use)

  1. token_search (identifier_type=address, chain=...) — baseline market data: price, mcap, volume, 24h change, holder count, security scan flag. Set include_chart=false, include_market_data_image=false to keep context lean.
  2. get_token_launch_info — if the token was deployed via Bankr/Doppler, you get the deployer wallet + twitter handle + tweet URL for free. Always try this first even if you think it's Clanker; the tool returns cleanly on non-match.
  3. get_contract_abi (chain=...) — confirm the address is a real contract and enumerate read/write functions. Flag dangerous functions: mint, crosschainMint, setOwner, updateAdmin, blacklist, setFee, pause, updateImage, updateMetadata. For OFTs, note setPeer / setEnforcedOptions — these are owner-gated but not exit-scam primitives by themselves.
  4. read_contract for on-chain state. For Clanker v4 tokens:

For OFTs: owner(), peers(uint32) for each known eid (Ethereum=30101, BSC=30102, Arbitrum=30110, Base=30184, Polygon=30109, Optimism=30111), endpoint(), msgInspector(), preCrime().

  1. get_clanker_reward_ownership (tokenAddress, chain) — returns every reward recipient/admin slot for the token. This is the single best signal for "did the team actually allocate ecosystem/marketing/CEX rewards like they claim" — if it shows only one {admin, recipient} both equal to the deployer, the team did NOT configure multi-recipient tokenomics.
  2. Direct viem reads via execute_cli when you need to batch-check balances, detect contract vs EOA (top holders with 48-byte bytecode are AA smart-wallet sniper proxies, not whales), or compute concentration. Install viem@2.21.55 and run a small analyze.mjs.

RPC configuration (custom env var is OPTIONAL):

```js

import { createPublicClient, http } from 'viem';

import { base } from 'viem/chains';

const rpcUrl = process.env.BASE_RPC_URL; // may be undefined

const client = createPublicClient({

chain: base,

transport: rpcUrl ? http(rpcUrl) : http(), // http() with no arg uses chain.rpcUrls.default

});

```

This works for base, mainnet, arbitrum, optimism, polygon, bnb, unichain, etc. out of the box.

Always use this viem step to:

  1. market_intelligence with query_type="holders" (chain, token_id=contract address, limit up to 20) — top holder distribution. The #1 holder is almost always the Uniswap v4 PoolManager (0x498581ff718922c3f8e6a244956af099b2652b2b on Base). Always identify pool addresses first and exclude them from concentration math.
  2. get_chain_activity_for_wallet on each interesting wallet:
  1. get_evm_address_from_twitter_username / get_evm_address_from_farcaster_username — resolve the claimed social handle to a wallet. Then check with get_chain_activity_for_wallet and viem getTransactionCount whether that wallet is the admin of any contract or has any footprint on the deploy chain. Most rugs have social wallets with ZERO activity on the chain they're scamming.
  2. browse_url on basescan/etherscan/polygonscan (https://basescan.org/address/{addr}) only as fallback when get_contract_abi fails or to confirm an address is a DEX/pool/infra contract. Many docs sites (gitbook-hosted root pages) return empty via firecrawl — go directly to the specific article URLs. After extracting the fact you need, immediately prune_messages(tool_names=["browse_url"], replacement="<one-line fact>").
  3. perform_technical_analysis (only if user is Bankr Club — will error otherwise, don't retry).

Step Final-1 (MANDATORY) — Off-chain intel pass before verdict

A contract can be on-chain-clean and still be a running manipulation case. Before writing the TL;DR verdict, you MUST run a parallel off-chain pass. Run these three calls IN PARALLEL in one turn:

  1. search_tool for investigator / press coverage:
  1. get_social_sentiment_for_ticker — pass the ticker and additionalContext describing the token, chain, and whether it's in a parabolic move. Returns community split, funding-rate context, and surfaced allegations.
  2. browse_url on the project's official X/Twitter account if known (format: https://x.com/<handle>) — look for self-warnings from the project itself. A team publicly "warning" its own community about "extreme volatility" during a parabolic move is often a soft acknowledgment of insider distribution about to begin.

Verdict-adjustment rules based on off-chain intel

If you skip this step and issue a verdict based only on on-chain data, you will systematically under-call insider manipulation cases. This step is not optional.


Red flag checklist (score each; >=5 = high risk)

Contract / configuration-level (AFTER reading platform docs):

Deployer-level:

Holder-level:

Narrative vs reality:

Off-chain / market-integrity (from Step Final-1):


Output structure (write to `/reports/<token_or_project>_scam_analysis.md`)

  1. TL;DR — Verdict (LOW / MEDIUM / HIGH / EXTREME risk) + one-line reasoning + confidence %. MUST incorporate off-chain intel from Step Final-1 if any triggers hit.
  2. Contracts under analysis — table with address, deployer, admin, supply, isVerified, metadata completeness, reward-recipient count, vault/airdrop presence, market stats, pool %. Include sibling contracts on other chains for multichain OFTs.
  3. Off-chain intel / social & press coverage — dedicated section with: key incidents (investigator callouts, CEX investigations, bounties with dates), team identification (founders, prior projects, LinkedIn/RootData links), community sentiment summary, mainstream press coverage links, and net effect on verdict. Always add this section even if findings are neutral.
  4. Claim vs reality — enumerate each of the team's public claims; under each, state (a) what the chain shows and (b) what the platform's deploy docs say the team could have done. Cite the doc URL.
  5. Deployer wallet forensics — for each deployer: funding source, nonce-by-nonce lifecycle, funding pre-deploy / extraction post-deploy / fee claims post-launch.
  6. Holder distribution — explicitly identify the pool/DEX holder and exclude it from concentration math; list the top 5–10 real holders with how they acquired their bag (tx hash, ETH paid, which block), and mark each as EOA vs smart-contract. For multichain: include cross-chain treasury holdings.
  7. Contract-level red flags — pulled directly from the ABI + allData + reward ownership, with function signatures and why each matters.
  8. Economic irrationality test — what SHOULD a legit team have done? Name the specific platform-native tools (for Clanker: vault, airdrop, multiple rewards recipients, Safe multisig admin, snapshot + claim contract, LP burn). Contrast with what the team actually did.
  9. Pattern match — does this fit a known grift template (e.g., "Clanker redeploy dump", "sniper-fronted relaunch", "CEX-listing reflex pump with dominant treasury", "self-funded MM short-squeeze")?
  10. What would change the verdict — list the specific on-chain facts that would lower the risk score. Forces the team to put up or shut up. Also list what would raise it.
  11. Sources — direct block-explorer links for every contract and wallet referenced, plus the platform docs URLs you read in Step 0 and the investigator/press URLs from Step Final-1.
  12. Appendix — full raw data pulled (totalSupply, admin, allData, key balances, viem script output, block height of reads).

After saving the file

Return to the user a 4–6 bullet summary with:

Do NOT dump the whole report inline.

Context management

These analyses pull a lot of data. After you have extracted the facts you need, call prune_messages on noisy tools like browse_url, get_contract_abi (if the ABI was huge), and get_chain_activity_for_wallet (these return long tx histories). Pass a short replacement summary so the facts aren't lost.

Common pitfalls

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.