Altscan explorers

io.altscanPublished by altscan.ioOfficial publisherv0.1.0Updated Nov 4, 2026

Keyless, read-only BNB Chain and Ethereum data: transactions by hash, tokens with a lookalike check

VerifiedStreamable HTTPWeb executableDatabasesFinance

Overview

AI-generated overview

Keyless, read-only MCP access to BNB Chain and Ethereum transaction and token data, including a lookalike-token check.

What you can do
  • Look up a single BNB Chain or Ethereum transaction by hash, with from, to, value in wei, gas and status, noting whether the record came from the explorer index or was read from the chain.
  • Check whether a transaction is still pending, and see which fields the node did not report.
  • Inspect a token contract: name, symbol, decimals, total supply and indexed holder count.
  • Flag lookalike tokens that imitate a well-known token's name or symbol, returning that token's real contract.
When to use it
Useful when an assistant needs to confirm what an on-chain transaction did or to sanity-check a token contract before it is trusted, for example when reviewing a transfer or spotting a fake USDT-style token. It is a narrow, read-only lookup service rather than a full explorer.
Requirements
Remote streamable HTTP endpoint at altscan.io; no package, account, API key or environment variable is declared. Network access to the endpoint is needed.
Before you install
Read-only lookups only; nothing is written or sent on-chain. A null lookalike result only means no match against a short list of well-known tokens, so it is not proof a token is genuine. Pending transactions may lack a receipt and some fields may be null. Data comes from a third-party explorer and its index, so older records may be fetched from the chain or a provider.

Installation

In SourceWeft

  1. Open Altscan explorers in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.altscan%2Fexplorers/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "altscan-explorers": {
      "type": "http",
      "url": "https://altscan.io/mcp"
    }
  }
}

README

[BNBScan homepage: a live tape of the latest BNB Chain blocks, where each bar's width is the block's transaction count and its fill is gas used]

Altscan

The open-source, multi-chain block explorer platform.
One codebase powers independent explorers for BNB Chain and Ethereum today — and is built to add more chains over time.
Next.js 15, Drizzle ORM, and ethers.js. Maintained by Measurable Data Token (MDT).

altscan.io  |  bnbscan.com  |  ethscan.io  |  Changelog

[CI] [CodeQL] [Latest release] [License: AGPL v3] [Next.js 15] [PRs welcome]


What is this?

Altscan is an open-source, multi-chain block explorer platform. One codebase powers two independent explorers today — BNBScan (bnbscan.com, BNB Chain) and EthScan (ethscan.io, Ethereum) — and is designed to extend to more chains over time. They are fully independent from BscScan, Etherscan, Binance, or the Ethereum Foundation, providing a clean, fast interface for exploring blocks, transactions, addresses, tokens, and on-chain activity.

A single CHAIN environment variable selects which chain a deployment serves — same frontend, same indexer, same schema.

Screenshots

[Phone layouts: the BNBScan homepage, an EthScan transaction in dark mode, and a BNBScan address page]

Captured from production on 12 October 2026, with the sponsored slots switched off.

Features

Exploration

  • Block tape — the latest blocks drawn as a live strip (width = transactions, fill = gas used), on the homepage and through the block, transaction, address and analytics pages
  • Blocks — the latest blocks with validator, gas, and transaction counts; each block page lists its transactions
  • Transactions — a one-line summary of what happened, the fee breakdown, logs, and token and NFT transfers; internal transactions when a trace endpoint is configured (off by default)
  • Addresses — balance and tracked-token holdings, transaction history drawn as a ledger, token transfers, and NFTs
  • Tokens — ERC-20 / BEP-20 pages with market data, holders, and transfers; lookalike (homoglyph) tokens are labelled
  • Search — addresses, transaction hashes, block numbers, and token names or symbols

Analytics

  • DEX Trades — Uniswap-V2-style swaps (PancakeSwap V2 on BNB Chain, Uniswap V2 on Ethereum); V3-style pools are not indexed
  • Whale Tracker — the largest native, wrapped and stablecoin transfers in the last hour, the last day, or the whole retained window
  • Gas Tracker — slow, standard and fast prices from the percentiles of recent blocks
  • Network Charts — transaction count, blocks produced, and (on Ethereum) average base fee; hourly until the index holds three full days
  • Validators (BNB Chain) — the validator set with voting power, commission, and blocks produced in the last 24 hours

Developer Tools

  • REST API — a v1 query API, optional API keys minted by signing a message with your wallet, and webhooks
  • CSV Export — the latest 1,000 locally indexed transactions for an address
  • Contract status — shows whether a contract is verified on Sourcify; verify new source at sourcify.dev

Also

  • Dark mode that follows the system setting, and layouts built for phones
  • Watchlist — save addresses in your browser (no account, nothing leaves the device)
  • Network switcher — links to the sister explorer on the other chain
  • Status page — status.altscan.io tracks uptime, block lag, and response time for the hosted explorers

Architecture

altscan/├── apps/│   ├── explorer/         Unified Next.js 15 frontend + API routes│   │                     CHAIN=bnb → bnbscan.com│   │                     CHAIN=eth → ethscan.io│   ├── indexer/          Unified block indexer (direct polling loop)│   │                     CHAIN=bnb → indexes BNB Chain│   │                     CHAIN=eth → indexes Ethereum│   ├── status/           Hono status page for the hosted explorers│   │                     Polls /api/health on bnbscan.com and ethscan.io│   ├── altscan-site/     altscan.io umbrella site (Astro on Cloudflare Workers)│   └── admin/            Operator console behind Cloudflare Access (Astro on Cloudflare Workers)├── packages/│   ├── chain-config/     getChainConfig() — chain-specific config│   ├── db/               Drizzle ORM schema + Postgres client│   ├── explorer-core/    Shared utils (rate limiting, formatting, Redis cache)│   ├── providers/        Third-party data adapters (Moralis) and their spend budgets│   ├── settings-schema/  Runtime settings shared by the explorer and the admin console│   └── types/            Shared TypeScript types├── render.yaml           Render blueprint for the hosted explorers├── docker-compose.yml    Self-host stack: Postgres, Redis, indexer, explorer├── turbo.json            Turborepo pipeline config└── pnpm-workspace.yaml

Tech Stack

LayerTechnology
FrontendNext.js 15 (App Router), React 19, Tailwind CSS 3
BackendNext.js API routes, Hono (status page)
DatabasePostgreSQL (via Drizzle ORM)
Indexerethers.js, JSON-RPC (direct polling loop, no job queue)
CacheRedis (rate limiting, caching, Moralis CU ledger)
Edge sitesAstro on Cloudflare Workers (altscan.io, admin console)
Monorepopnpm + Turborepo
HostingRender.com (web services + workers + Postgres + Redis)

How It Works

  1. Indexer connects to a chain's JSON-RPC endpoint, polls for new blocks, and writes block/transaction/token data to Postgres via Drizzle ORM.
  2. Explorer serves the Next.js frontend with ISR (Incremental Static Regeneration) — each page revalidates on its own schedule, from 45 seconds to five minutes, for fresh data without server pressure. Pages that depend on the request, such as search, render per request.
  3. Chain Config package centralizes all chain-specific differences (block time, currency, theme colors, RPC URLs, feature flags) so the same code runs both chains.
  4. Status Page independently monitors the two hosted explorers by polling their /api/health endpoints every 30 seconds, tracking uptime, block lag, and response time over 24 hours and 30 days. Its targets are fixed in apps/status/src/server.ts, and it is not part of the Docker stack or the Render blueprint.

Getting Started

Run your own explorer (Docker)

bash
git clone https://github.com/heathermhuang/altscan.gitcd altscancp .env.docker.example .envdocker compose up -d

Open http://localhost:3000. That's Postgres, Redis, the indexer, and the explorer — no configuration required to start, and the indexer creates its own schema on first boot. Set CHAIN=eth in .env and re-run with --build for Ethereum.

Full guide, including Render deployment, retention tuning, and limitations: docs/SELF_HOSTING.md.

Develop locally (without Docker)

Prerequisites
  • Node.js 22 — what CI and the Docker images run
  • pnpm 10 — pinned in package.json; corepack enable picks up the exact version
  • PostgreSQL 16
  • Redis 7 — optional: without REDIS_URL, rate limits and caches fall back to per-process memory
Installation
bash
# Clone the repogit clone https://github.com/heathermhuang/altscan.gitcd altscan
# Install dependenciespnpm install
# Start Postgres from the Docker stack (localhost:5432; user, password and database all "altscan")docker compose up -d postgres
# Set up the explorer environment (defaults match the local Docker Postgres)cp apps/explorer/.env.example apps/explorer/.env.local
# Start the BNB explorerCHAIN=bnb NEXT_PUBLIC_CHAIN=bnb pnpm --filter @altscan/explorer dev

The BNB explorer will be available at http://localhost:3000. The indexer creates the database schema on its first boot, so run it once (below) before expecting data; the explorer alone, against an empty database, has no tables to read. pnpm dev starts every app at once through Turborepo: the explorer, the indexer, the status page, and both Astro sites.

Running a specific chain

bash
# BNB Chain explorer onlyCHAIN=bnb NEXT_PUBLIC_CHAIN=bnb pnpm --filter @altscan/explorer dev
# Ethereum explorer onlyCHAIN=eth NEXT_PUBLIC_CHAIN=eth pnpm --filter @altscan/explorer dev -p 3001
# BNB indexer only — build the packages it imports first (see below)pnpm --filter @altscan/db build && pnpm --filter @altscan/chain-config build && pnpm --filter @altscan/explorer-core build && pnpm --filter @altscan/providers buildCHAIN=bnb pnpm --filter @altscan/indexer dev
# Status page only (monitors the hosted sites)pnpm --filter @altscan/status dev

CHAIN drives the server; NEXT_PUBLIC_CHAIN is inlined into the client bundle, so set both to the same chain. The indexer reads its settings from the environment or from apps/indexer/.env: at least DATABASE_URL (or ETH_DATABASE_URL), the chain's RPC URL, and a START_BLOCK near the chain head — its built-in start is millions of blocks back.

The explorer compiles the workspace packages from source, but the indexer loads their built dist/ output, which is not committed — build them once after cloning and again after changing them.

Environment Variables

These are the variables a deployment needs. apps/explorer/.env.example adds the optional provider caps, and docs/SELF_HOSTING.md covers the indexer's retention and disk settings.

VariableRequiredDescription
CHAINYesbnb or eth — selects which chain to serve/index
NEXT_PUBLIC_CHAINExplorerSame value as CHAIN; read by client components at build time
DATABASE_URLCHAIN=bnbPostgreSQL connection string (BNB Chain)
ETH_DATABASE_URLCHAIN=ethPostgreSQL connection string (Ethereum)
BNB_RPC_URLCHAIN=bnbBSC JSON-RPC endpoint, or a comma-separated list for failover
ETH_RPC_URLCHAIN=ethEthereum JSON-RPC endpoint, or a comma-separated list for failover
REDIS_URLRecommendedRedis connection string; without it, rate limits and caches are per-process
MORALIS_API_KEYNoMoralis API for balance and NFT enrichment
ADMIN_SECRETNoBearer token for the /api/admin/* endpoints; unset, they refuse every request
GA_MEASUREMENT_IDNoGoogle Analytics measurement ID; unset, no analytics script loads
BINANCE_REF_CODENoReferral code for the sponsored Binance placements; unset, they never render

Free RPC Endpoints

You can get started without paid RPC providers:

ChainFree Endpoint
BNB Chainhttps://bsc-dataseed1.binance.org/
Ethereumhttps://ethereum-rpc.publicnode.com

These are the Docker stack's defaults. Both serve eth_getBlockReceipts for historical blocks, which the indexer depends on (checked October 2026). Check any other endpoint the same way — ask it for the receipts of a block a few thousand deep — before you rely on it. Some public RPCs answer at the chain tip but lack that method, and some return an empty list for it; the indexer rejects a block whose receipts don't cover its transactions, so it cannot make progress on either. Some free plans also cap JSON-RPC batch size: eth.drpc.org's free tier rejects batches of more than three, so set RPC_BATCH_MAX_COUNT=1 on the indexer if you use it.

For production, use a paid RPC provider: free endpoints rate-limit under indexer load.

API

Both explorers expose a v1 REST API. /api-docs on either site is the endpoint reference, and /developer shows how to mint an API key by signing a message with your wallet. A key is optional: calls without one are rate-limited by IP.

bash
# Example: query transactions for an addresscurl -X POST https://bnbscan.com/api/v1/query \  -H "X-API-Key: bnbs_..." \  -H "Content-Type: application/json" \  -d '{"entity":"transactions","filter":{"address":"0x..."}}'

Testing

bash
pnpm test

Runs the Vitest suite for every workspace. Suites that need a real Postgres or Redis are skipped unless their environment variable is set — CONTRIBUTING.md lists them and how to run them. CI runs all of them except the two retention-partition suites, plus lint, typechecks of the indexer and the admin console, and a production build of the explorer.

Deployment

The hosted explorers run on Render.com from render.yaml: a web service and an indexer worker per chain, with Postgres and Redis. To run your own, with Docker or on Render, follow docs/SELF_HOSTING.md.

Data Retention

The indexer runs a retention pass every 6 hours. Past RETENTION_DAYS (default 7) it deletes logs, DEX trades and gas history, and drops each transaction's input data, which is refetched from RPC on demand; the transactions themselves stay queryable. Transactions, token transfers and blocks are kept forever unless you also set COMPACT_RETENTION_DAYS, so that is the setting that bounds block history. The addresses table is never pruned and keeps growing with the chain. See docs/SELF_HOSTING.md.

There is also a manual prune endpoint. It deletes whole rows — transactions and blocks included — older than days, then runs VACUUM. Ask for a dry run first:

bash
curl -X POST "https://your-explorer.example/api/admin/db-prune?days=7&dry=true" \  -H "Authorization: Bearer $ADMIN_SECRET"

Known Limitations

  • Not a genesis archive — the indexer advances forward from its start block. Older address and token history is fetched on demand from a provider and cached, rather than indexed locally. A full historical archive is a different architecture.
  • Deep history needs a Moralis key — without one, address history is limited to locally indexed blocks and holder counts fall back to an estimate shown with a caveat. This is the only third-party commercial dependency.
  • Live holder data comes from Moralis — per-block holder tracking is switched off for indexer throughput, so the locally stored holder count is a frozen snapshot and the UI labels it "indexed holders". Live totals and top holders come from Moralis; without a key, the holder list is an estimate from recent transfers, shown with a caveat.
  • One chain per deployment — NEXT_PUBLIC_CHAIN is inlined into the client bundle at build time, so switching chains requires a rebuild, not just a restart.
  • Two chains supported — BNB Chain and Ethereum. Adding a third currently requires code changes rather than configuration.
  • Contract verification is Sourcify-only, and the explorer reads it rather than accepting source.
  • The canonical domain and the network switcher's target are per-chain code in packages/chain-config, so a public fork edits them there. Analytics and referral ads are off unless configured. See docs/SELF_HOSTING.md.

Contributing

Contributions are welcome. Please read CONTRIBUTING.md for development setup, the CHAIN model, and PR conventions, and our Code of Conduct.

  1. Fork the repository
  2. Create a feature branch: git checkout -b feat/my-feature
  3. Make your changes and add tests
  4. Run the checks listed in CONTRIBUTING.md
  5. Submit a pull request against main

First-time contributors: add your name to CONTRIBUTORS.md in your first PR to accept the Contributor License Agreement. You keep ownership of your work — the CLA is a licence grant, not a copyright assignment, and it's what lets us offer the commercial licence described below. A CI check confirms you're listed.

Found a security vulnerability? Please follow our Security Policy — do not open a public issue.

License

Open source under AGPL-3.0 — an OSI-approved licence. Free, forever, for everyone:

  • Run it for any purpose, including commercially and as a paid service
  • Fork it, modify it, and distribute your fork
  • Sell services around it — hosting, support, consulting, managed deployments, RaaS
  • The grant is irrevocable — published releases stay AGPL-3.0, and we cannot take that back

AGPL asks one thing in return: if you modify Altscan and offer it to others over a network, offer those users your modified source too. Run it unmodified, or keep your changes internal, and you owe nothing.

A commercial licence is available for organisations that cannot use AGPL code or need warranty and support terms. See LICENSING.md for what that covers and how the terms compare to source-available alternatives.

© Measurable Data Token (MDT).

Source: README.md at commit 3c865c6

Tools

2

get_transaction

Look up a transaction

One BNB Chain or Ethereum transaction by hash: from, to, value (wei), gas, status. Recent transactions come from the explorer index; older ones are read from the chain (`source` says which). `pending: true` means no receipt yet, and fields the node did not report are null. Logs and decoded calls are not included.

Parametershashrequiredchainrequired

get_token

Look up a token contract

A BNB Chain or Ethereum token contract: name, symbol, decimals, total supply, indexed holder count, and `lookalike`: the well-known token (e.g. USDT) whose name or symbol it imitates, with that token's real contract. `lookalike: null` only means no match against a short list of well-known tokens; it is not a safety verdict.

Parameterschainrequiredaddressrequired

Version history

1
  1. v0.1.0LatestOct 21, 2026

Score

100% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts