-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblocks.json
More file actions
100 lines (100 loc) · 2.96 KB
/
Copy pathblocks.json
File metadata and controls
100 lines (100 loc) · 2.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"$schema": "https://raw.githubusercontent.com/Blockchains/.github/main/docs/blocks.schema.json",
"schema_version": "1.0",
"name": "blockchainlab-sdk",
"repo": "Blockchains/blockchainlab-sdk",
"summary": "Typed TypeScript and Python clients for the Blockchain Lab Open Data API: 20 nightly-rebuilt blockchain datasets (chains, RPC health, DeFi TVL, stablecoins, yields, L2 metrics, hacks, OFAC addresses, EIPs/ERCs/BIPs, grants, hackathons).",
"kind": [
"library"
],
"stability": "stable",
"version": "1.1.0",
"license": "MIT",
"homepage": "https://blockchains.github.io/blockchainlab-api/",
"entrypoints": [
{
"type": "npm",
"name": "blockchainlab-sdk",
"ref": "ts/src/index.ts",
"install": "npm i github:Blockchains/blockchainlab-sdk",
"exports": [
"BlockchainLab",
"DATASETS",
"SCHEMA_VERSION",
"DEFAULT_BASE",
"DatasetName",
"DatasetMap",
"<Dataset>Row types"
]
},
{
"type": "pypi",
"name": "blockchainlab_sdk",
"ref": "python/blockchainlab_sdk/__init__.py",
"install": "pip install \"git+https://github.com/Blockchains/blockchainlab-sdk#subdirectory=python\"",
"exports": [
"BlockchainLab"
]
}
],
"inputs": [
{
"name": "dataset name",
"type": "DatasetName",
"description": "one of the 20 API datasets"
},
{
"name": "filters",
"type": "args",
"description": "symbol, chainId, chain, since, minUsd, limit, address"
}
],
"outputs": [
{
"name": "typed rows",
"type": "<Dataset>Row[]",
"description": "from the API envelope's data array"
},
{
"name": "envelope",
"type": "Envelope<T>",
"description": "dataset, schema_version, generated_at, source, count, data"
}
],
"deps": [
"node>=18 (or browsers/Deno/Bun)",
"python>=3.9 (stdlib only)"
],
"compatible_with": [
{
"repo": "Blockchains/blockchainlab-api",
"how": "the data source; the SDK types are generated from its JSON Schemas (scripts/gen.py)"
},
{
"repo": "Blockchains/blockchainlab-mcp",
"how": "same data exposed as MCP tools for AI agents; use the SDK in app code, the MCP server in agent clients"
},
{
"repo": "Blockchains/forge-usd-priced-membership-nft",
"how": "pick a healthy RPC (healthyRpcs) and screen wallets (isSanctioned) in a dApp front end around the contracts"
},
{
"repo": "Blockchains/grokhack-forge",
"how": "add SDK calls as Grok tools in a composed chat app (see Build with Blocks recipe 2)"
},
{
"repo": "Blockchains/blockchains.github.io",
"how": "the hub pages read the same API"
}
],
"tests": {
"command": "npm test && (cd python && python -m unittest -v tests/test_live.py)",
"ci": ".github/workflows/ci.yml",
"network": true
},
"docs": {
"readme": "README.md",
"agents": "AGENTS.md",
"llms": "llms.txt"
}
}