# Coinhawk Metadata Engine (`natalietdg/coinhawk-metadata-engine`) Actor

Multi-chain token metadata and risk intelligence engine. Aggregates explorer data, GitHub activity, websites, and social links to produce a unified profile with automated 0–100 risk scoring.

- **URL**: https://apify.com/natalietdg/coinhawk-metadata-engine.md
- **Developed by:** [Natalie Leong](https://apify.com/natalietdg) (community)
- **Categories:** Developer tools, Automation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.03 / token metadata analysis

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Metadata Engine C2 - Comprehensive Token Intelligence

### Description

The Metadata Engine C2 provides comprehensive metadata collection and risk assessment for cryptocurrency tokens across multiple blockchains. It aggregates data from blockchain explorers, GitHub repositories, and project websites to deliver a complete intelligence profile with automated risk scoring.

### Features

- **Multi-Chain Support**: Ethereum, BSC, Polygon, Solana blockchain data
- **Comprehensive Data Sources**: Explorer APIs, GitHub statistics, website analysis
- **Risk Assessment**: Automated 0-100 risk scoring based on multiple factors
- **Social Media Detection**: Automatic extraction of Twitter, Telegram, Discord links
- **Webhook Integration**: Real-time and batch delivery options
- **Flexible Input**: Optional contract addresses, websites, and GitHub repos

### Input Schema

```typescript
interface MetadataEngineInput {
    tokens: {
        symbol: string;
        chain: string;
        contract?: string;    // Optional contract address
        website?: string;     // Optional project website
        github?: string;      // Optional GitHub repository
    }[];
    webhook_url?: string;
    webhook_mode?: "instant" | "batch";
}
```

### Output Schema

```typescript
interface MetadataEngineOutput {
    total_tokens: number;
    results: MetadataResult[];
}

interface MetadataResult {
    symbol: string;
    chain: string;
    contract?: string;
    
    explorer?: {
        chain: string;
        contract: string;
        total_supply?: number;
        circulating_supply?: number;
        holders?: number;
        verified?: boolean;
    };
    
    github?: {
        repo_url: string;
        stars?: number;
        forks?: number;
        open_issues?: number;
        last_commit?: string;
        activity_score?: number;  // 0-1 normalized
    };
    
    website?: {
        website: string;
        title?: string;
        description?: string;
        twitter?: string;
        telegram?: string;
        discord?: string;
    };
    
    risk_score?: number;  // 0-100 risk assessment
}
```

### Example Run

#### Input

```json
{
    "tokens": [
        {
            "symbol": "USDC",
            "chain": "ethereum",
            "contract": "0xA0b86a33E6441e0e5d7e5c4f27Ead9083C756Cc2",
            "website": "https://centre.io",
            "github": "https://github.com/centrehq/centre-tokens"
        },
        {
            "symbol": "SOL",
            "chain": "solana",
            "website": "https://solana.com",
            "github": "https://github.com/solana-labs/solana"
        }
    ],
    "webhook_mode": "batch"
}
```

#### Output

```json
{
    "total_tokens": 2,
    "results": [
        {
            "symbol": "USDC",
            "chain": "ethereum",
            "contract": "0xA0b86a33E6441e0e5d7e5c4f27Ead9083C756Cc2",
            "explorer": {
                "chain": "ethereum",
                "contract": "0xA0b86a33E6441e0e5d7e5c4f27Ead9083C756Cc2",
                "total_supply": 24000000000,
                "holders": 1250000,
                "verified": true
            },
            "github": {
                "repo_url": "https://github.com/centrehq/centre-tokens",
                "stars": 342,
                "forks": 89,
                "open_issues": 12,
                "last_commit": "2024-12-01T10:30:00Z",
                "activity_score": 0.65
            },
            "website": {
                "website": "https://centre.io",
                "title": "Centre - USDC Stablecoin",
                "description": "The world's leading digital dollar",
                "twitter": "https://twitter.com/centre_io",
                "telegram": null,
                "discord": "https://discord.gg/centre"
            },
            "risk_score": 15
        },
        {
            "symbol": "SOL",
            "chain": "solana",
            "explorer": null,
            "github": {
                "repo_url": "https://github.com/solana-labs/solana",
                "stars": 12500,
                "forks": 3200,
                "open_issues": 456,
                "last_commit": "2024-12-02T15:45:00Z",
                "activity_score": 0.95
            },
            "website": {
                "website": "https://solana.com",
                "title": "Solana - Fast, Secure, Scalable",
                "description": "Build crypto apps that scale",
                "twitter": "https://twitter.com/solana",
                "telegram": "https://t.me/solana",
                "discord": "https://discord.gg/solana"
            },
            "risk_score": 8
        }
    ]
}
```

### Data Sources

1. **Blockchain Explorers**:
   - Etherscan (Ethereum)
   - BSCScan (Binance Smart Chain)
   - PolygonScan (Polygon)
   - SolScan (Solana)

2. **GitHub API**: Repository statistics and development activity

3. **Website Analysis**: Metadata extraction and social media link detection

### Risk Scoring Algorithm

The risk score (0-100, lower is better) considers:

- **Contract Verification**: -20 points if verified
- **Holder Count**: -10 points if >1,000 holders
- **GitHub Activity**: -10 points if >100 stars, -5 if high activity
- **Website Presence**: -5 points if professional website
- **Social Media**: -2 points each for Twitter/Telegram presence

### Configuration

Environment variables:

- `ETHERSCAN_API_KEY`: Etherscan API key
- `BSCSCAN_API_KEY`: BSCScan API key
- `POLYGONSCAN_API_KEY`: PolygonScan API key
- `GITHUB_TOKEN`: GitHub API token (optional, for higher rate limits)
- `HTTP_TIMEOUT_SECS`: HTTP request timeout (default: 15)
- `MAX_PARALLEL_REQUESTS`: Concurrent request limit (default: 5)

### Pricing

- **Free Tier**: Up to 10 tokens per run
- **Standard**: $0.05 per token analyzed
- **Premium**: $0.02 per token (bulk pricing for >1,000 tokens/month)
- **Enterprise**: Custom pricing with SLA guarantees

### Use Cases

- **Due Diligence**: Comprehensive token research and risk assessment
- **Portfolio Management**: Automated metadata collection for holdings
- **Investment Analysis**: Compare projects across multiple dimensions
- **Compliance**: Verify contract details and project legitimacy
- **Market Research**: Track development activity and community engagement

# Actor input Schema

## `tokens` (type: `array`):

List of tokens to fetch metadata for

## `webhook_url` (type: `string`):

Optional HTTPS endpoint for results delivery

## `webhook_mode` (type: `string`):

How to deliver webhook notifications

## Actor input object example

```json
{
  "tokens": [
    {
      "symbol": "USDC",
      "chain": "ethereum",
      "contract": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
      "website": "https://centre.io",
      "github": "https://github.com/centrehq/centre-tokens"
    }
  ],
  "webhook_url": "https://hooks.zapier.com/hooks/catch/123456/abcdef",
  "webhook_mode": "batch"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tokens": [
        {
            "symbol": "USDC",
            "chain": "ethereum",
            "contract": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
            "website": "https://centre.io",
            "github": "https://github.com/centrehq/centre-tokens"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("natalietdg/coinhawk-metadata-engine").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "tokens": [{
            "symbol": "USDC",
            "chain": "ethereum",
            "contract": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
            "website": "https://centre.io",
            "github": "https://github.com/centrehq/centre-tokens",
        }] }

# Run the Actor and wait for it to finish
run = client.actor("natalietdg/coinhawk-metadata-engine").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tokens": [
    {
      "symbol": "USDC",
      "chain": "ethereum",
      "contract": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
      "website": "https://centre.io",
      "github": "https://github.com/centrehq/centre-tokens"
    }
  ]
}' |
apify call natalietdg/coinhawk-metadata-engine --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,natalietdg/coinhawk-metadata-engine"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Z2FGfyGgMaNI0bLUl/builds/hhWeXaCu1KH6BZaRn/openapi.json
