You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spectaql.yaml
+47-45Lines changed: 47 additions & 45 deletions
Original file line number
Diff line number
Diff line change
@@ -16,58 +16,60 @@ info:
16
16
17
17
The deployed version is **v3**. For the complete GraphQL schema specification, see the [Midnight Indexer GraphQL Schema](https://github.com/midnightntwrk/midnight-indexer/blob/release/3.0.0/indexer-api/graphql/schema-v3.graphql).
18
18
19
-
## Quick Start
20
-
21
-
```bash
22
-
curl -X POST https://midnight-preview.blockfrost.io/api/v0 \
Where `{network}` is either `mainnet` or `preview`.
35
-
36
-
## Authentication
37
-
38
-
Include your project ID as the `project_id` HTTP header.
19
+
x-introItems:
20
+
- title: Quick Start
21
+
description: |
22
+
Create a Midnight project on [blockfrost.io](https://blockfrost.io) and make your first API call:
39
23
40
-
When using WebSocket in the browser (which doesn't support custom headers), include your project ID as a subprotocol by prefixing it with `project_id_`:
41
-
```javascript
42
-
new WebSocket("wss://midnight-preview.blockfrost.io/api/v0/ws", [
43
-
"graphql-transport-ws",
44
-
"project_id_YOUR_PROJECT_ID"
45
-
]);
46
-
```
24
+
```bash
25
+
curl -X POST https://midnight-preview.blockfrost.io/api/v0 \
Include your project ID as the `project_id` HTTP header.
61
42
62
-
## Query Limits
43
+
When using WebSocket in the browser (which doesn't support custom headers), include your project ID as a subprotocol by prefixing it with `project_id_`:
44
+
```javascript
45
+
new WebSocket("wss://midnight-preview.blockfrost.io/api/v0/ws", [
46
+
"graphql-transport-ws",
47
+
"project_id_YOUR_PROJECT_ID"
48
+
]);
49
+
```
63
50
64
-
The server may apply limitations to queries:
65
-
* `max-depth`: Maximum nesting depth
66
-
* `max-fields`: Maximum number of fields
67
-
* `timeout`: Query execution timeout
68
-
* `complexity`: Query complexity cost
51
+
- title: Request Format
52
+
description: |
53
+
Send a POST request with a JSON body containing:
54
+
* `query` (required): The GraphQL query, mutation, or subscription string
55
+
* `variables` (optional): Variables for the GraphQL operation
Copy file name to clipboardExpand all lines: src/definitions.yaml
+44-81Lines changed: 44 additions & 81 deletions
Original file line number
Diff line number
Diff line change
@@ -235,7 +235,7 @@ info:
235
235
</table>
236
236
237
237
238
-
## Midnight Indexer API
238
+
## Midnight API
239
239
240
240
241
241
The Midnight Indexer API exposes a GraphQL API that enables clients to query and subscribe to blockchain data—blocks, transactions, contracts, and wallet-related events—indexed from the Midnight blockchain.
@@ -248,7 +248,8 @@ info:
248
248
249
249
### Quick Start
250
250
251
-
Make your first API call:
251
+
Create a Midnight project on [blockfrost.io](https://blockfrost.io) and make your first API call:
252
+
252
253
```bash
253
254
curl -X POST https://midnight-{network}.blockfrost.io/api/v0 \
0 commit comments