# 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# 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("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=natalietdg/coinhawk-metadata-engine",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Coinhawk Metadata Engine",
        "description": "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.",
        "version": "1.0",
        "x-build-id": "hhWeXaCu1KH6BZaRn"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/natalietdg~coinhawk-metadata-engine/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-natalietdg-coinhawk-metadata-engine",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/natalietdg~coinhawk-metadata-engine/runs": {
            "post": {
                "operationId": "runs-sync-natalietdg-coinhawk-metadata-engine",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/natalietdg~coinhawk-metadata-engine/run-sync": {
            "post": {
                "operationId": "run-sync-natalietdg-coinhawk-metadata-engine",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "tokens"
                ],
                "properties": {
                    "tokens": {
                        "title": "Tokens to Analyze",
                        "minItems": 1,
                        "type": "array",
                        "description": "List of tokens to fetch metadata for",
                        "items": {
                            "type": "object",
                            "properties": {
                                "symbol": {
                                    "type": "string",
                                    "title": "Token Symbol",
                                    "description": "Token symbol (e.g., USDC, SOL)",
                                    "editor": "textfield",
                                    "minLength": 1,
                                    "maxLength": 10,
                                    "example": "USDC"
                                },
                                "chain": {
                                    "type": "string",
                                    "title": "Blockchain",
                                    "description": "Blockchain network",
                                    "editor": "select",
                                    "enum": [
                                        "ethereum",
                                        "bsc",
                                        "polygon",
                                        "solana"
                                    ],
                                    "default": "ethereum"
                                },
                                "contract": {
                                    "type": "string",
                                    "title": "Contract Address",
                                    "description": "Token contract address (optional)",
                                    "editor": "textfield",
                                    "example": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
                                },
                                "website": {
                                    "type": "string",
                                    "title": "Website URL",
                                    "description": "Project website (optional)",
                                    "editor": "textfield",
                                    "pattern": "^https?://",
                                    "example": "https://centre.io"
                                },
                                "github": {
                                    "type": "string",
                                    "title": "GitHub Repository",
                                    "description": "GitHub repo URL (optional)",
                                    "editor": "textfield",
                                    "pattern": "^https://github.com/",
                                    "example": "https://github.com/centrehq/centre-tokens"
                                }
                            },
                            "required": [
                                "symbol",
                                "chain"
                            ]
                        }
                    },
                    "webhook_url": {
                        "title": "Webhook URL",
                        "pattern": "^https://",
                        "type": "string",
                        "description": "Optional HTTPS endpoint for results delivery"
                    },
                    "webhook_mode": {
                        "title": "Webhook Delivery Mode",
                        "enum": [
                            "instant",
                            "batch"
                        ],
                        "type": "string",
                        "description": "How to deliver webhook notifications",
                        "default": "batch"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
