Repository navigation
Expand file tree
/
Copy pathopenapi.yaml
More file actions
383 lines (383 loc) · 14.1 KB
/
Copy pathopenapi.yaml
File metadata and controls
383 lines (383 loc) · 14.1 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
openapi: 3.1.0
info:
title: Blockchain Lab Open Data API
version: 1.1.0
description: 'Free, static, CORS-enabled JSON datasets for blockchain builders:
chains, DeFi TVL, stablecoins, yields, bridges, DEX volumes, fees, L2 metrics
(L2BEAT), security incidents, OFAC-sanctioned addresses, public RPC health, hackathons,
events, whitepapers, glossary, grants, EIPs/ERCs/BIPs. Versioned (/v1, semver
schema_version, JSON Schema per dataset). Rebuilt nightly from public sources.
Built by Blockchain Lab — https://blockchainlab.com'
contact:
name: Blockchain Lab
url: https://blockchainlab.com/?utm_source=github&utm_medium=openapi&utm_campaign=blockchainlab-api
license:
name: Code MIT; data belongs to each named source
url: https://github.com/Blockchains/blockchainlab-api/blob/main/LICENSE
servers:
- url: https://blockchains.github.io/blockchainlab-api
paths:
/v1/index.json:
get:
summary: Dataset catalogue
operationId: getIndex
tags:
- meta
responses:
'200':
description: List of datasets with counts, sources and generation time
content:
application/json:
schema:
type: object
/v1/bips.json:
get:
summary: Bitcoin Improvement Proposals index parsed from bitcoin/bips.
operationId: getBips
tags:
- datasets
description: 'Source: github.com/bitcoin/bips (https://github.com/bitcoin/bips).
Rebuilt nightly by GitHub Actions.'
responses:
'200':
description: Dataset envelope
content:
application/json:
schema:
$ref: https://blockchains.github.io/blockchainlab-api/v1/schemas/bips.schema.json
/v1/bridges.json:
get:
summary: Cross-chain and canonical bridges ranked by TVL (DefiLlama bridge categories).
operationId: getBridges
tags:
- datasets
description: 'Source: DefiLlama protocols (bridge categories) (https://api.llama.fi/protocols).
Rebuilt nightly by GitHub Actions.'
responses:
'200':
description: Dataset envelope
content:
application/json:
schema:
$ref: https://blockchains.github.io/blockchainlab-api/v1/schemas/bridges.schema.json
/v1/chains.json:
get:
summary: 'EVM chain registry: chain IDs, native currency, public RPC endpoints
and explorers.'
operationId: getChains
tags:
- datasets
description: 'Source: chainid.network (ethereum-lists/chains) (https://chainid.network/chains.json).
Rebuilt nightly by GitHub Actions.'
responses:
'200':
description: Dataset envelope
content:
application/json:
schema:
$ref: https://blockchains.github.io/blockchainlab-api/v1/schemas/chains.schema.json
/v1/chains-tvl.json:
get:
summary: DeFi TVL by chain (USD). Snapshot from DefiLlama.
operationId: getChainsTvl
tags:
- datasets
description: 'Source: DefiLlama (https://api.llama.fi/v2/chains). Rebuilt nightly
by GitHub Actions.'
responses:
'200':
description: Dataset envelope
content:
application/json:
schema:
$ref: https://blockchains.github.io/blockchainlab-api/v1/schemas/chains-tvl.schema.json
/v1/dex-volumes.json:
get:
summary: DEX trading volume by protocol (top 300 by 24h). Snapshot from DefiLlama.
operationId: getDexVolumes
tags:
- datasets
description: 'Source: DefiLlama overview/dexs (https://api.llama.fi/overview/dexs).
Rebuilt nightly by GitHub Actions.'
responses:
'200':
description: Dataset envelope
content:
application/json:
schema:
$ref: https://blockchains.github.io/blockchainlab-api/v1/schemas/dex-volumes.schema.json
/v1/eips.json:
get:
summary: EIPS index (number, title, status, type, category) parsed from ethereum/EIPs.
operationId: getEips
tags:
- datasets
description: 'Source: github.com/ethereum/EIPs (https://github.com/ethereum/EIPs/tree/master/EIPS).
Rebuilt nightly by GitHub Actions.'
responses:
'200':
description: Dataset envelope
content:
application/json:
schema:
$ref: https://blockchains.github.io/blockchainlab-api/v1/schemas/eips.schema.json
/v1/ercs.json:
get:
summary: ERCS index (number, title, status, type, category) parsed from ethereum/ERCs.
operationId: getErcs
tags:
- datasets
description: 'Source: github.com/ethereum/ERCs (https://github.com/ethereum/ERCs/tree/master/ERCS).
Rebuilt nightly by GitHub Actions.'
responses:
'200':
description: Dataset envelope
content:
application/json:
schema:
$ref: https://blockchains.github.io/blockchainlab-api/v1/schemas/ercs.schema.json
/v1/events.json:
get:
summary: Upcoming blockchain events from the Blockchain Lab feeds.
operationId: getEvents
tags:
- datasets
description: 'Source: Blockchains/blockchainlab-feeds (ethglobal.com/events;
devpost.com (blockchain hackathons)) (https://raw.githubusercontent.com/Blockchains/blockchainlab-feeds/main/feeds/events/latest.json).
Rebuilt nightly by GitHub Actions.'
responses:
'200':
description: Dataset envelope
content:
application/json:
schema:
$ref: https://blockchains.github.io/blockchainlab-api/v1/schemas/events.schema.json
/v1/fees.json:
get:
summary: Protocol fees by protocol (top 300 by 24h). Snapshot from DefiLlama.
operationId: getFees
tags:
- datasets
description: 'Source: DefiLlama overview/fees (https://api.llama.fi/overview/fees).
Rebuilt nightly by GitHub Actions.'
responses:
'200':
description: Dataset envelope
content:
application/json:
schema:
$ref: https://blockchains.github.io/blockchainlab-api/v1/schemas/fees.schema.json
/v1/glossary.json:
get:
summary: Plain-language blockchain glossary from blockchainlab.com (concepts,
protocol profiles, failure classes, stack layers).
operationId: getGlossary
tags:
- datasets
description: 'Source: blockchainlab.com/learn/glossary (https://blockchainlab.com/learn/glossary).
Rebuilt nightly by GitHub Actions.'
responses:
'200':
description: Dataset envelope
content:
application/json:
schema:
$ref: https://blockchains.github.io/blockchainlab-api/v1/schemas/glossary.schema.json
/v1/grants.json:
get:
summary: 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.
operationId: getGrants
tags:
- datasets
description: 'Source: Official programme pages (curated) (https://github.com/Blockchains/blockchainlab-api/blob/main/data/grants.json).
Rebuilt nightly by GitHub Actions.'
responses:
'200':
description: Dataset envelope
content:
application/json:
schema:
$ref: https://blockchains.github.io/blockchainlab-api/v1/schemas/grants.schema.json
/v1/hackathons.json:
get:
summary: Open and upcoming blockchain hackathons (Devpost, ETHGlobal).
operationId: getHackathons
tags:
- datasets
description: 'Source: Blockchains/blockchainlab-feeds (devpost.com/api/hackathons
(theme Blockchain, open+upcoming); ethglobal.com/events (future hackathons);
X posts (leads only)) (https://raw.githubusercontent.com/Blockchains/blockchainlab-feeds/main/feeds/hackathons/latest.json).
Rebuilt nightly by GitHub Actions.'
responses:
'200':
description: Dataset envelope
content:
application/json:
schema:
$ref: https://blockchains.github.io/blockchainlab-api/v1/schemas/hackathons.schema.json
/v1/l2-metrics.json:
get:
summary: 'Ethereum L2/L3 scaling projects: stage, category, stack, risk summary
and Total Value Secured breakdown. From L2BEAT.'
operationId: getL2Metrics
tags:
- datasets
description: 'Source: L2BEAT public API (https://l2beat.com/api/scaling/summary).
Rebuilt nightly by GitHub Actions.'
responses:
'200':
description: Dataset envelope
content:
application/json:
schema:
$ref: https://blockchains.github.io/blockchainlab-api/v1/schemas/l2-metrics.schema.json
/v1/protocols.json:
get:
summary: Top 500 DeFi protocols by TVL (USD), excluding CEXs. Snapshot from
DefiLlama; not investment advice.
operationId: getProtocols
tags:
- datasets
description: 'Source: DefiLlama (https://api.llama.fi/protocols). Rebuilt nightly
by GitHub Actions.'
responses:
'200':
description: Dataset envelope
content:
application/json:
schema:
$ref: https://blockchains.github.io/blockchainlab-api/v1/schemas/protocols.schema.json
/v1/rpc-health.json:
get:
summary: '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.'
operationId: getRpcHealth
tags:
- datasets
description: 'Source: Blockchain Lab probe (GitHub Actions) (https://github.com/Blockchains/blockchainlab-api/blob/main/scripts/build.mjs).
Rebuilt nightly by GitHub Actions.'
responses:
'200':
description: Dataset envelope
content:
application/json:
schema:
$ref: https://blockchains.github.io/blockchainlab-api/v1/schemas/rpc-health.schema.json
/v1/sanctioned-addresses.json:
get:
summary: 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.
operationId: getSanctionedAddresses
tags:
- datasets
description: 'Source: OFAC SDN list via 0xB10C/ofac-sanctioned-digital-currency-addresses
(https://github.com/0xB10C/ofac-sanctioned-digital-currency-addresses/tree/lists).
Rebuilt nightly by GitHub Actions.'
responses:
'200':
description: Dataset envelope
content:
application/json:
schema:
$ref: https://blockchains.github.io/blockchainlab-api/v1/schemas/sanctioned-addresses.schema.json
/v1/security-incidents.json:
get:
summary: 'Public record of crypto hacks and exploits: date, protocol, technique,
classification, amount lost/returned. From DefiLlama''s hacks database.'
operationId: getSecurityIncidents
tags:
- datasets
description: 'Source: DefiLlama hacks (https://api.llama.fi/hacks). Rebuilt
nightly by GitHub Actions.'
responses:
'200':
description: Dataset envelope
content:
application/json:
schema:
$ref: https://blockchains.github.io/blockchainlab-api/v1/schemas/security-incidents.schema.json
/v1/stablecoins.json:
get:
summary: Stablecoins by circulating supply with price, peg mechanism and 1d/7d/30d
supply change. Snapshot from DefiLlama.
operationId: getStablecoins
tags:
- datasets
description: 'Source: DefiLlama stablecoins (https://stablecoins.llama.fi/stablecoins?includePrices=true).
Rebuilt nightly by GitHub Actions.'
responses:
'200':
description: Dataset envelope
content:
application/json:
schema:
$ref: https://blockchains.github.io/blockchainlab-api/v1/schemas/stablecoins.schema.json
/v1/whitepapers.json:
get:
summary: Blockchain Lab research corpus — whitepaper metadata (no paper text).
Original sources linked.
operationId: getWhitepapers
tags:
- datasets
description: 'Source: Blockchain Lab /api/v1/papers (https://blockchainlab.com/api/v1/papers).
Rebuilt nightly by GitHub Actions.'
responses:
'200':
description: Dataset envelope
content:
application/json:
schema:
$ref: https://blockchains.github.io/blockchainlab-api/v1/schemas/whitepapers.schema.json
/v1/yields.json:
get:
summary: 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.
operationId: getYields
tags:
- datasets
description: 'Source: DefiLlama yields (https://yields.llama.fi/pools). Rebuilt
nightly by GitHub Actions.'
responses:
'200':
description: Dataset envelope
content:
application/json:
schema:
$ref: https://blockchains.github.io/blockchainlab-api/v1/schemas/yields.schema.json
components:
schemas:
Envelope:
type: object
required:
- dataset
- generated_at
- source
- source_url
- data
properties:
dataset:
type: string
description:
type: string
generated_at:
type: string
format: date-time
source:
type: string
source_url:
type: string
format: uri
built_by:
type: string
licence_note:
type: string
count:
type: integer
data:
type: array
items:
type: object