Skip to content

Repository files navigation

Blockchain Lab Open Data API

Blockchain Lab Open Data API

Free, static, CORS-enabled JSON datasets for blockchain builders, rebuilt nightly from public sources. No API key, no backend, no rate limit beyond GitHub Pages.

Built by Blockchain Lab — blockchainlab.com

Datasets (20; counts as of 2026-10-04)

Endpoint Rows What Source Schema
bips 213 Bitcoin Improvement Proposals index parsed from bitcoin/bips. github.com/bitcoin/bips schema
bridges 260 Cross-chain and canonical bridges ranked by TVL (DefiLlama bridge categories). DefiLlama protocols (bridge categories) schema
chains 2787 EVM chain registry: chain IDs, native currency, public RPC endpoints and explorers. chainid.network (ethereum-lists/chains) schema
chains-tvl 330 DeFi TVL by chain (USD). Snapshot from DefiLlama. DefiLlama schema
dex-volumes 300 DEX trading volume by protocol (top 300 by 24h). Snapshot from DefiLlama. DefiLlama overview/dexs schema
eips 593 EIPS index (number, title, status, type, category) parsed from ethereum/EIPs. github.com/ethereum/EIPs schema
ercs 617 ERCS index (number, title, status, type, category) parsed from ethereum/ERCs. github.com/ethereum/ERCs schema
events 7 Upcoming blockchain events from the Blockchain Lab feeds. Blockchains/blockchainlab-feeds (ethglobal.com/events; devpost.com (blockchain hackathons)) schema
fees 300 Protocol fees by protocol (top 300 by 24h). Snapshot from DefiLlama. DefiLlama overview/fees schema
glossary 80 Plain-language blockchain glossary from blockchainlab.com (concepts, protocol profiles, failure classes, stack layers). blockchainlab.com/learn/glossary schema
grants 22 Directory of blockchain ecosystem grant / funding programmes with official links. Curated by Blockchain Lab; link status re-checked nightly. No amounts are listed — read each programme's own page. Official programme pages (curated) schema
hackathons 4 Open and upcoming blockchain hackathons (Devpost, ETHGlobal). Blockchains/blockchainlab-feeds (devpost.com/api/hackathons (theme Blockchain, open+upcoming); ethglobal.com/events (future hackathons); X posts (leads only)) schema
l2-metrics 100 Ethereum L2/L3 scaling projects: stage, category, stack, risk summary and Total Value Secured breakdown. From L2BEAT. L2BEAT public API schema
protocols 500 Top 500 DeFi protocols by TVL (USD), excluding CEXs. Snapshot from DefiLlama; not investment advice. DefiLlama schema
rpc-health 34 Health of popular free public RPC endpoints (EVM chains, Solana, Bitcoin): reachability, latency, block lag vs best endpoint, chain-ID check. Probed from a GitHub Actions runner (US) at build time. Blockchain Lab probe (GitHub Actions) schema
sanctioned-addresses 1060 Digital currency addresses on the US Treasury OFAC SDN list, per asset. Extracted daily from the official SDN XML by github.com/0xB10C. Compliance screening aid only — verify against the official list. OFAC SDN list via 0xB10C/ofac-sanctioned-digital-currency-addresses schema
security-incidents 1293 Public record of crypto hacks and exploits: date, protocol, technique, classification, amount lost/returned. From DefiLlama's hacks database. DefiLlama hacks schema
stablecoins 426 Stablecoins by circulating supply with price, peg mechanism and 1d/7d/30d supply change. Snapshot from DefiLlama. DefiLlama stablecoins schema
whitepapers 607 Blockchain Lab research corpus — whitepaper metadata (no paper text). Original sources linked. Blockchain Lab /api/v1/papers schema
yields 500 Top 500 DeFi yield pools by TVL (>= $10m) with APY, base/reward split, IL risk. Snapshot from DefiLlama; APYs change constantly and are not advice. DefiLlama yields schema

Versioning: /v1/ path, semver schema_version in every envelope, JSON Schema per dataset, nightly job refuses to publish data that fails validation. See CHANGELOG.md.

Typed SDKs: npm i github:Blockchains/blockchainlab-sdk (TypeScript) · pip install "git+https://github.com/Blockchains/blockchainlab-sdk#subdirectory=python" — see blockchainlab-sdk.

Every file uses the same envelope:

{ "dataset": "chains", "api_version": "v1", "schema_version": "1.1.0", "schema_url": "https://…/v1/schemas/chains.schema.json", "generated_at": "ISO-8601", "source": "...", "source_url": "https://...", "count": 0, "data": [ ... ] }

Quick start

# Base mainnet RPCs + explorer
curl -s https://blockchains.github.io/blockchainlab-api/v1/chains.json | jq '.data[] | select(.chainId==8453)'
# Top 10 DeFi protocols by TVL (DefiLlama snapshot)
curl -s https://blockchains.github.io/blockchainlab-api/v1/protocols.json | jq '.data[:10][] | {name, tvl_usd}'
# Final ERCs
curl -s https://blockchains.github.io/blockchainlab-api/v1/ercs.json | jq '.data[] | select(.status=="Final") | "ERC-\(.number) \(.title)"'
const { data } = await (await fetch("https://blockchains.github.io/blockchainlab-api/v1/whitepapers.json")).json();
console.log(data.filter(p => p.topics?.includes("Proof of stake")).map(p => p.title));

How it works

scripts/build.mjs (Node 20, zero dependencies) runs nightly in GitHub Actions, fetches each public source, normalises it and commits v1/*.json. If a source fails, the previous file is kept and flagged stale in index.json.

Run locally: node scripts/build.mjs && python3 scripts/openapi.py

Part of the Blockchain Lab open toolkit

blockchainlab-tools Client-side dev tools: gas, units, ABI, tx decoder, ENS, merkle, storage slots
blockchainlab-mcp MCP server + JS SDK for AI agents over this API
blockchainlab-lens Explain any Etherscan address / tx with the tools
blockchainlab-labs 30 hands-on Foundry labs with CI
blockchain-dev-roadmap Curated developer roadmap
blockchain-interview-questions Interview question bank
blockchainlab-feeds Hackathon / event / X-intel feeds

Use as a building block

For AI agents and builders: read AGENTS.md (setup, commands, structure, rules), llms.txt (doc map) and the machine-readable blocks.json (schema). How all Blockchains blocks fit together: Build with Blocks · org catalogue: https://blockchains.github.io/blocks.json.

What it exports

Export Type Install / access
GET /v1/{dataset}.json http curl -s https://blockchains.github.io/blockchainlab-api/v1/chains.json
GET /v1/index.json http catalogue: dataset, url, schema, count, generated_at, stale
GET /v1/schemas/{dataset}.schema.json http JSON Schema per dataset
openapi.yaml file https://blockchains.github.io/blockchainlab-api/openapi.yaml

Minimal example (live endpoints, checked 2026-10-04)

# Base mainnet RPCs + explorer
curl -s https://blockchains.github.io/blockchainlab-api/v1/chains.json | jq '.data[] | select(.chainId==8453) | {name, rpc: .rpc[:3]}'
# Healthy public RPCs for Ethereum, fastest first
curl -s https://blockchains.github.io/blockchainlab-api/v1/rpc-health.json | jq '[.data[] | select(.chain=="ethereum" and .healthy)] | sort_by(.latency_ms) | .[:3] | map(.url)'

Inputs → outputs

  • In: dataset (path segment) bips, bridges, chains, chains-tvl, dex-volumes, eips, ercs, events, fees, glossary, grants, hackathons, l2-metrics, protocols, rpc-health, sanctioned-addresses, security-incidents, stablecoins, whitepapers, yields
  • Out: envelope (JSON) {dataset, api_version, schema_version, schema_url, generated_at, source, source_url, count, data[]}

Composes with

Versioning & stability: stable. Path-versioned (/v1/). Every envelope carries a semver schema_version; breaking changes bump the major and get a new path. The nightly job refuses to publish data that fails its JSON Schema; if a source fails, the previous file is kept and flagged stale in index.json. See CHANGELOG.md.

Licence

Code: MIT. Data: belongs to each named source — check its terms. Glossary text © Blockchain Lab; please attribute and link blockchainlab.com.

Configuration

None for consumers: static JSON over GitHub Pages with Access-Control-Allow-Origin: *, no key, no rate-limit token. The nightly build uses only public sources and the default GITHUB_TOKEN.

Contributing

Issues and pull requests are welcome. Please read the contributing guide, code of conduct and security policy first.


Built by Blockchain Lab — blockchainlab.com

About

Free static JSON API for blockchain builders: 20 versioned datasets — chains, DeFi TVL, stablecoins, yields, bridges, DEX volumes, fees, L2BEAT L2 metrics, hacks, OFAC addresses, RPC health, EIPs/BIPs. Typed SDKs.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages