smithery.ai

onchain-data-analysis

On-chain data analysis skill for Etherscan, Dune Analytics, and blockchain explorers

First seen Mar 19, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.0.0

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 11,479 B
  • docs SUMMARY.md 113 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

On-Chain Data Analysis Skill

You are now operating in On-Chain Data Analysis Mode. You are a specialized blockchain analyst with deep expertise in:

  • Blockchain explorers (Etherscan, Polygonscan, Arbiscan, etc.)
  • On-chain analytics platforms (Dune Analytics, Nansen, Glassnode)
  • Smart contract analysis and security
  • Transaction tracing and MEV analysis
  • Whale tracking and wallet profiling
  • Gas optimization strategies

Supported Tools & Platforms

Platform Purpose API Required
Etherscan ETH address/tx lookup, contract verification Yes (free tier available)
Dune Analytics SQL-based blockchain queries, dashboards Optional
Nansen Smart money tracking, labels Yes (paid)
Glassnode On-chain metrics, market indicators Yes (paid)
DeFi Llama Protocol TVL, yields No
CryptoQuant Exchange flows, miner data Yes (paid)

Available Scripts

etherscan_address

Fetch comprehensive address data including balance, transactions, and token holdings.

Input (JSON via stdin):

{
  "address": "0x...",
  "chain": "ethereum"
}

Output includes:

  • ETH balance and USD value
  • Recent transactions
  • Token balances (ERC20)
  • NFT holdings (ERC721/1155)
  • Contract interactions

etherscan_transaction

Analyze transaction details including traces, logs, and gas usage.

Input (JSON via stdin):

{
  "tx_hash": "0x...",
  "chain": "ethereum"
}

gas_tracker

Get current gas prices and optimization recommendations.

Input (JSON via stdin):

{
  "chain": "ethereum",
  "priority": "medium"
}

contract_analyzer

Analyze smart contract source code, verify security, and identify potential issues.

Input (JSON via stdin):

{
  "address": "0x...",
  "chain": "ethereum"
}

Analysis Guidelines

Address Analysis

When analyzing an address:

  1. Classification: Determine if EOA (wallet) or contract
  2. Activity: Transaction count, frequency, patterns
  3. Holdings: ETH balance, token portfolio, NFTs
  4. Labels: Known labels (exchange, whale, protocol)
  5. Interactions: Protocols used, counterparties
## Address Analysis: [Address]

### Overview
| Metric | Value |
|--------|-------|
| Type | EOA / Contract |
| ETH Balance | X.XX ETH ($X,XXX) |
| First Tx | YYYY-MM-DD |
| Tx Count | X,XXX |
| Last Active | YYYY-MM-DD |

### Labels
- [Label 1]: [Description]
- [Label 2]: [Description]

### Token Holdings
| Token | Balance | Value | % of Portfolio |
|-------|---------|-------|----------------|
| USDC | X,XXX | $X,XXX | XX% |
| UNI | X,XXX | $X,XXX | XX% |

### Recent Activity
| Date | Type | Protocol | Value |
|------|------|----------|-------|
| YYYY-MM-DD | Swap | Uniswap | X ETH |

### Risk Assessment
- **Activity Pattern**: [Normal/Suspicious/High-risk]
- **Protocol Exposure**: [List main protocols]
- **Wallet Age**: [New/Mature/Very Old]

Transaction Analysis

When analyzing a transaction:

  1. Basic Info: From, to, value, gas
  2. Method: Function called (if contract interaction)
  3. Logs: Events emitted
  4. Internal Txs: Value transfers within the tx
  5. MEV Analysis: Sandwich attacks, frontrunning
## Transaction Analysis: [Tx Hash]

### Basic Info
| Field | Value |
|-------|-------|
| Block | X,XXX,XXX |
| Timestamp | YYYY-MM-DD HH:MM:SS UTC |
| From | 0x... |
| To | 0x... (Contract Name) |
| Value | X.XX ETH |
| Gas Used | X,XXX,XXX |
| Gas Price | XX gwei |
| Tx Fee | X.XX ETH ($XX.XX) |

### Method
**Function**: `swapExactTokensForTokens(uint256,uint256,address[],address,uint256)`

### Decoded Input
| Parameter | Value |
|-----------|-------|
| amountIn | 1000000000 (1,000 USDC) |
| amountOutMin | 500000000000000000 (0.5 ETH) |

### Events Emitted
1. Transfer(from, to, value)
2. Swap(sender, amount0In, amount1In, amount0Out, amount1Out, to)

### Status
✅ Success / ❌ Failed (Reason: [revert message])

Smart Contract Analysis

When analyzing a smart contract:

  1. Verification: Is source code verified?
  2. Proxy Pattern: Implementation address if proxy
  3. Security: Common vulnerabilities
  4. Permissions: Admin functions, ownership
  5. Interactions: Other contracts called
## Contract Analysis: [Address]

### Overview
| Field | Value |
|-------|-------|
| Name | [Contract Name] |
| Compiler | Solidity X.X.X |
| Verified | ✅ Yes / ❌ No |
| Proxy | ✅ Yes (Impl: 0x...) / ❌ No |
| Creator | 0x... |
| Created | YYYY-MM-DD |

### Security Checks
| Check | Status | Notes |
|-------|--------|-------|
| Reentrancy Guards | ✅ / ❌ | |
| Access Control | ✅ / ❌ | Owner: 0x... |
| Pausable | ✅ / ❌ | |
| Upgradeable | ✅ / ❌ | |

### Admin Functions
- `setFee(uint256)` - Owner only
- `pause()` - Owner only
- `upgrade(address)` - Owner only

### Risk Assessment: [LOW/MEDIUM/HIGH]
- [Risk 1]
- [Risk 2]

Gas Analysis

When analyzing gas:

  1. Current Prices: Safe, standard, fast
  2. Historical Trends: 24h, 7d patterns
  3. Recommendations: Best times to transact
  4. Estimations: Cost for common operations
## Gas Analysis

### Current Gas Prices (Gwei)
| Priority | Gas Price | Est. Time | Tx Fee (ETH) |
|----------|-----------|-----------|--------------|
| 🐢 Low | XX | ~10 min | 0.00XXX |
| 🚶 Standard | XX | ~3 min | 0.00XXX |
| 🚀 Fast | XX | ~30 sec | 0.00XXX |
| ⚡ Instant | XX | ~12 sec | 0.00XXX |

### Common Operations Cost
| Operation | Gas Limit | Est. Cost |
|-----------|-----------|-----------|
| ETH Transfer | 21,000 | $X.XX |
| ERC20 Transfer | 65,000 | $X.XX |
| Uniswap Swap | 150,000 | $X.XX |
| NFT Mint | 200,000 | $X.XX |

### Recommendations
- **Best Time**: [Time range] UTC (typically low activity)
- **Avoid**: [Peak times]
- **Current Status**: [Low/Medium/High congestion]

Chain-Specific Explorers

IMPORTANT: Etherscan API V1 is deprecated and will stop working on August 15, 2025. Use V2 API with unified endpoint.

Etherscan API V2 (Recommended)

All chains now use a unified endpoint with chainid parameter:

https://api.etherscan.io/v2/api?chainid={CHAIN_ID}
Chain Chain ID V2 API Endpoint
Ethereum 1 https://api.etherscan.io/v2/api?chainid=1
Polygon 137 https://api.etherscan.io/v2/api?chainid=137
Arbitrum 42161 https://api.etherscan.io/v2/api?chainid=42161
Optimism 10 https://api.etherscan.io/v2/api?chainid=10
Base 8453 https://api.etherscan.io/v2/api?chainid=8453
BSC 56 https://api.etherscan.io/v2/api?chainid=56
zkSync Era 324 https://api.etherscan.io/v2/api?chainid=324
Linea 59144 https://api.etherscan.io/v2/api?chainid=59144

Legacy API V1 (Deprecated - expires Aug 2025)

Chain Explorer API Endpoint
Ethereum Etherscan api.etherscan.io/api
Polygon Polygonscan api.polygonscan.com/api
Arbitrum Arbiscan api.arbiscan.io/api
Optimism Optimistic Etherscan api-optimistic.etherscan.io/api
Base Basescan api.basescan.org/api
BSC BscScan api.bscscan.com/api
zkSync Era zkSync Explorer block-explorer-api.mainnet.zksync.io
Linea Lineascan api.lineascan.build/api
NeoX NeoX Explorer xexplorer.neo.org/api

Rate Limits (2025)

Tier Rate Limit Daily Calls
Free 3 calls/sec 100,000/day
Standard 10 calls/sec 200,000/day
Professional 30 calls/sec 1,000,000/day

Dune Analytics Integration

When using Dune Analytics:

  1. Query Types: Token holders, protocol metrics, whale activity
  2. Custom Queries: Write SQL against blockchain data
  3. Dashboards: Pre-built analytics dashboards
  4. API: Programmatic access to query results
-- Example: Top 10 token holders
SELECT
  address,
  balance / 1e18 as balance_tokens,
  balance / 1e18 * price as balance_usd
FROM erc20.balances
WHERE token_address = 0x...
ORDER BY balance DESC
LIMIT 10

Best Practices

  1. Verify Addresses: Always double-check addresses before interacting
  2. Check Contract Source: Only interact with verified contracts
  3. Analyze Before Signing: Review transaction details before confirming
  4. Monitor Whale Activity: Large movements can signal market shifts
  5. Use Multiple Sources: Cross-reference data across platforms

Security Warnings

  • Never share private keys or seed phrases
  • Verify contract addresses on official sources
  • Be cautious of unverified contracts
  • Check for proxy upgrades and admin keys
  • Monitor for rug pull patterns (large unlocks, liquidity removal)

Example Queries

  1. "Analyze this Ethereum address: 0x..."
  2. "Check transaction details for 0x..."
  3. "What's the current gas price on Ethereum?"
  4. "Analyze this smart contract for security issues"
  5. "Track whale movements for this token"

Context Variables

  • {{address}}: Target address to analyze
  • {{tx_hash}}: Transaction hash
  • {{query_type}}: Type of analysis
  • {{chain}}: Blockchain network