Tx cluster analyzer

From XSpoonAi/spoon-awesome-skill · View interactive version

Tx cluster analyzer is an AI agent skill from the GitHub repository XSpoonAi/spoon-awesome-skill. Analyzes and clusters blockchain transactions using real RPC data. Detects transaction patterns (fan-out, fan-in, chains), builds address relationship graphs, and identifies transaction flows between

How to use this skill

Skill file

Description

Analyzes and clusters blockchain transactions using real RPC data. Detects transaction patterns (fan-out, fan-in, chains), builds address relationship graphs, and identifies transaction flows between addresses.

Features

Inputs

API Mode

{
  "use_api": true,
  "network": "ethereum",
  "tx_hashes": ["0xhash1", "0xhash2", "0xhash3"]
}

Parameter Mode

{
  "use_api": false,
  "network": "ethereum",
  "transactions": [
    {
      "hash": "0x...",
      "from": "0x...",
      "to": "0x...",
      "value": "0x...",
      "nonce": 0
    }
  ]
}

Outputs

{
  "ok": true,
  "data": {
    "status": "success",
    "source": "blockchain_api",
    "network": "ethereum",
    "cluster_size": 5,
    "transactions_analyzed": 5,
    "unique_addresses": 8,
    "total_value_eth": 2.5,
    "avg_tx_value_eth": 0.5,
    "pattern_type": "fan_out",
    "pattern_stats": {
      "source_addresses": 1,
      "sink_addresses": 3,
      "intermediate_addresses": 4
    },
    "address_graph": {
      "nodes": [
        {
          "address": "0x...",
          "type": "wallet",
          "in_degree": 0,
          "out_degree": 3,
          "net_flow_eth": -2.5
        }
      ],
      "edges": [
        {
          "from": "0x...",
          "to": "0x...",
          "count": 1
        }
      ]
    },
    "highest_value_addresses": [...],
    "analysis_timestamp": "2026-02-07T09:30:00.000Z"
  }
}

Parameters

API Mode Parameters

Parameter Mode Parameters

Pattern Types

Usage Examples

Analyze Transaction Cluster on Ethereum (API Mode)

python scripts/main.py --params '{
  "use_api": true,
  "network": "ethereum",
  "tx_hashes": [
    "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
    "0xabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcd"
  ]
}'

Analyze Custom Transactions (Parameter Mode)

python scripts/main.py --params '{
  "use_api": false,
  "network": "ethereum",
  "transactions": [
    {
      "hash": "0x...",
      "from": "0x1111111111111111111111111111111111111111",
      "to": "0x2222222222222222222222222222222222222222",
      "value": "0x0de0b6b3a7640000",
      "nonce": 0
    },
    {
      "hash": "0x...",
      "from": "0x1111111111111111111111111111111111111111",
      "to": "0x3333333333333333333333333333333333333333",
      "value": "0x0de0b6b3a7640000",
      "nonce": 1
    }
  ]
}'

Address Graph Structure

The response includes a graph representation:

Supported Networks

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.