# Crypto Address Validator (Bitcoin, Ethereum, ENS) (`chun_yung_lo/crypto-address-validator-ens`) Actor

Validate Bitcoin and Ethereum addresses offline in bulk. Detects address type and network, fixes EIP-55 checksums and computes ENS namehashes. No API key needed.

- **URL**: https://apify.com/chun_yung_lo/crypto-address-validator-ens.md
- **Developed by:** [Chun-Yung Yong Lo](https://apify.com/chun_yung_lo) (community)
- **Categories:** Developer tools, MCP servers
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 batch of addresses checkeds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/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

## Crypto Address Validator (Bitcoin, Ethereum, ENS)

Validate and classify crypto addresses in bulk, completely offline. No API keys, no blockchain node, no rate limits.

### What it does

For every entry you supply it returns:

- **Ethereum addresses** (`0x...`): validity, EIP-55 checksum verification and the correctly checksummed form (handy for fixing all-lowercase addresses).
- **Bitcoin addresses**: Base58Check (P2PKH, P2SH) and Bech32/Bech32m (P2WPKH, P2WSH, Taproot P2TR) validation, network (mainnet, testnet, regtest), the address type and the embedded hash / witness program.
- **ENS names** (`name.eth`, etc.): normalised name (lowercase, Unicode NFC) and the EIP-137 namehash used on-chain.

**Important:** this Actor does not fetch balances, transactions or blocks. It only checks and decodes the values you give it. Use it to clean address lists before you query a block explorer or send funds.

### Input example

```json
{
  "addresses": [
    "0x5aaeb6053f3e94c9b9a09f33669435e7ef1beaed",
    "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
    "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
    "foo.eth"
  ]
}
```

### Output example

```json
{
  "input": "foo.eth",
  "kind": "ens_name",
  "valid": true,
  "network": "ethereum",
  "address_type": null,
  "normalized": "foo.eth",
  "payload_hex": null,
  "witness_version": null,
  "namehash": "0xde9b09fd7c5f901e23a3f19fecc54828e9c848539801e86591bd9801b019f84f",
  "error": null
}
```

### Pricing

US$0.005 per batch of up to 1000 entries (one run = one billed event).

### Limits

- Up to 1000 entries per run, each up to 255 characters.
- ENS normalisation is basic (trim, lowercase, NFC). It is not the full ENSIP-15 algorithm, so exotic emoji or homoglyph names may differ from on-chain resolvers.
- A valid address says nothing about whether it exists or holds funds.
- Works as an MCP tool for AI agents as well as a normal Actor.

### Credits

Built on [base58](https://github.com/keis/base58) (MIT License) for Base58Check decoding, and [eth-utils](https://github.com/ethereum/eth-utils) and eth-hash (MIT License) with PyCryptodome (BSD-2-Clause) for EIP-55 checksums and Keccak-256. Bech32/Bech32m validation follows the public BIP-173 and BIP-350 specifications.

# Actor input Schema

## `addresses` (type: `array`):

Bitcoin addresses, Ethereum addresses (0x...) or ENS names (name.eth), one per entry. Maximum 1000 entries.

## Actor input object example

```json
{
  "addresses": [
    "0x5aaeb6053f3e94c9b9a09f33669435e7ef1beaed",
    "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
    "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
    "foo.eth"
  ]
}
```

# Actor output Schema

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

One row per processed input

# 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 = {
    "addresses": [
        "0x5aaeb6053f3e94c9b9a09f33669435e7ef1beaed",
        "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
        "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
        "foo.eth"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("chun_yung_lo/crypto-address-validator-ens").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 = { "addresses": [
        "0x5aaeb6053f3e94c9b9a09f33669435e7ef1beaed",
        "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
        "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
        "foo.eth",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("chun_yung_lo/crypto-address-validator-ens").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 '{
  "addresses": [
    "0x5aaeb6053f3e94c9b9a09f33669435e7ef1beaed",
    "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
    "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4",
    "foo.eth"
  ]
}' |
apify call chun_yung_lo/crypto-address-validator-ens --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,chun_yung_lo/crypto-address-validator-ens"
        }
    }
}
```

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/KdnZZNfeqkfbRXbaC/builds/Z420YfK2yOhI4Evad/openapi.json
