# Token Due Diligence: Risk Flags, Price, Liquidity (`lx112/token-due-diligence`) Actor

Facts about any ERC-20 on Base, Ethereum, Arbitrum, Optimism or Polygon: supply, owner and renouncement, upgradeable proxy, owner-only mint/pause/blacklist/fee functions, and USD price, liquidity and FDV from its deepest DEX pool.

- **URL**: https://apify.com/lx112/token-due-diligence.md
- **Developed by:** [leo xing](https://apify.com/lx112) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $15.00 / 1,000 token snapshots

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

## Token Due Diligence: Risk Score, Price & Liquidity

Paste token addresses, get a **0–100 risk score with plain-English reasons** and a factual snapshot
of each token, read live from the blockchain on **Base, Ethereum, Arbitrum, Optimism, Polygon or
Solana**:

- **Risk score:** 0 (nothing found) to 100 (extreme), a level (`low`, `medium`, `high`,
  `critical`), and the reasons with the points each one adds. It measures how exposed a holder is:
  powers someone holds over the token (minting, freezing, blacklisting, fees, pausing, changing
  the code) and how easy it is to exit (liquidity, and holder concentration on Solana). Powers
  count for less on tokens with millions in liquidity, where they're usually a large issuer's
  compliance controls.
- **EVM tokens (ERC-20):** name, symbol, decimals, total supply; contract owner and whether
  ownership is renounced; upgradeable proxy with its implementation and admin (EIP-1967 and the
  older ZeppelinOS layout used by USDC); owner-only levers found in the bytecode (mint, pause,
  blacklist, fee changes, max-transaction limits, trading on/off switches); USD price, quote-side
  liquidity and fully diluted value from the deepest WETH/USDC (or WPOL/USDC) pool on Uniswap v3,
  Aerodrome (Base) or Velodrome (Optimism), priced with Chainlink.
- **Solana tokens (SPL and Token-2022):** mint and freeze authorities, metadata and whether it can
  still change, Token-2022 extensions an issuer can use against holders (permanent delegate,
  transfer fees, transfer hooks, non-transferable, frozen by default, pausable), the largest
  holders grouped by owner (wallets vs. pools and vaults), pump.fun / letsbonk.fun launches, and
  price, liquidity, 24 h volume and the deepest pool from Jupiter and DexScreener.

### Input

| Field | Example |
|---|---|
| Chain | `base` (or `eth`, `arbitrum`, `optimism`, `polygon`, `solana`) |
| Token addresses | `0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed` on Base, `JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN` on Solana |

All tokens in one run are on the chosen chain.

### Output (one dataset item per token)

An EVM token (DEGEN on Base; the `market` object shortened):

```json
{
  "address": "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed",
  "chain": "base",
  "name": "Degen",
  "symbol": "DEGEN",
  "risk": {
    "score": 15,
    "level": "low",
    "reasons": [
      { "code": "can-pause", "points": 10, "text": "The owner can pause all transfers." },
      { "code": "owner-not-renounced", "points": 5, "text": "Ownership is not renounced." }
    ],
    "summary": "Low risk: the owner can pause all transfers; ownership is not renounced."
  },
  "decimals": 18,
  "totalSupply": 35967154646.5,
  "owner": "0x704Ec5C12Ca20a293C2C0B72B22619A4231f3c0d",
  "ownershipRenounced": false,
  "proxy": { "upgradeable": false },
  "privilegedFunctions": { "mint": false, "pause": true, "blacklist": false, "setFees": false, "maxTransaction": false, "tradingSwitch": false },
  "market": { "dex": "uniswap-v3", "pairedWith": "WETH", "priceUsd": 0.000962867, "quoteSideLiquidityUsd": 134100, "fullyDilutedValueUsd": 34630000, "poolsFound": 10 },
  "flags": { "upgradeable": false, "ownerCanAct": true, "canMint": false, "canBlacklist": false, "canChangeFees": false, "noLiquidPool": false, "thinLiquidity": false }
}
```

A Solana token (JUP; holders and some market and flag fields shortened):

```json
{
  "address": "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
  "chain": "solana",
  "name": "Jupiter",
  "symbol": "JUP",
  "risk": {
    "score": 3,
    "level": "low",
    "reasons": [{ "code": "metadata-mutable", "points": 3, "text": "The name, symbol and logo can still be changed." }],
    "summary": "Low risk: the name, symbol and logo can still be changed. Powers are weighted down for $5.5M of liquidity."
  },
  "decimals": 6,
  "supply": 6861485919.61,
  "program": "token",
  "mintAuthority": null,
  "freezeAuthority": null,
  "metadata": { "source": "metaplex", "uri": "https://static.jup.ag/jup/metadata.json", "updateAuthority": "61aq585V8cR2sZBeawJFt2NPqmN7zDi1sws4KLs5xHXV", "mutable": true },
  "extensions": null,
  "launchpad": null,
  "holders": {
    "top": [
      { "owner": "EXJHiMkj6NRFDfhWBMKccHNwdSpCT7tdvQeRf87yHm6T", "kind": "program", "amount": 1700000000, "percent": 24.78 },
      { "owner": "61aq585V8cR2sZBeawJFt2NPqmN7zDi1sws4KLs5xHXV", "kind": "program", "amount": 1682700000, "percent": 24.52 }
    ],
    "top10Percent": 65.5,
    "top10WalletsPercent": 5.997,
    "largestWalletPercent": 2.33
  },
  "market": {
    "priceUsd": 0.313819,
    "liquidityUsd": 5461000,
    "fullyDilutedValueUsd": 2153000000,
    "volume24hUsd": 2564000,
    "deepestPool": { "dex": "meteora", "pool": "C8Gr6AUuq9hEdSYJzoEpNcdjpojPZwqG5MtQbeouNNwg", "pairedWith": "SOL", "liquidityUsd": 2056000 },
    "poolsFound": 30,
    "oldestPoolCreatedAt": "2024-01-29T08:22:38.000Z"
  },
  "flags": { "canMint": false, "canFreeze": false, "metadataMutable": true, "permanentDelegate": false, "transferFee": false, "transferHook": false, "concentratedHolders": false, "noLiquidPool": false, "thinLiquidity": false }
}
```

Invalid addresses and addresses that aren't tokens produce an item with an `error` field instead.

### Pricing

Pay per event: charged once per **token snapshot** that completes. Invalid addresses, non-token
contracts and failed chain reads are not charged.

### Good to know

- The score is rules-based and every point is explained in `reasons`; it's a summary of the facts
  below it, not a prediction and not investment advice.
- Owner-only functions on EVM tokens are detected from bytecode selectors: a strong signal, not
  proof that a function is callable. Read the verified source before relying on it.
- Solana holders are the 20 largest token accounts grouped by owner. "program" owners are pools,
  vaults, bonding curves and lockers, which can't sell on their own; holder concentration counts
  only wallets. If the holder lookup is unavailable, `holders` is `null` and the score leaves it out.

# Actor input Schema

## `chain` (type: `string`):

Blockchain the tokens live on. All tokens in one run must be on this chain.

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

Token addresses on the selected chain, one snapshot each: 0x ERC-20 contract addresses on the EVM chains, base58 mint addresses on Solana (e.g. JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN for JUP).

## Actor input object example

```json
{
  "chain": "base",
  "tokens": [
    "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed",
    "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
  ]
}
```

# Actor output Schema

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

One due-diligence snapshot per token: a 0-100 risk score with reasons, ownership or authorities, owner-only powers, holders (Solana), price, liquidity and flags.

# 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": [
        "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed",
        "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("lx112/token-due-diligence").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": [
        "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed",
        "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("lx112/token-due-diligence").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": [
    "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed",
    "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
  ]
}' |
apify call lx112/token-due-diligence --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lx112/token-due-diligence"
        }
    }
}
```

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/xKGF8Ni9ypcLdUwWK/builds/RswrUcvOwChHcRT7T/openapi.json
