@ensnode/ensnode-sdk 1.3.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -10
- package/dist/index.cjs +807 -334
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +573 -139
- package/dist/index.d.ts +573 -139
- package/dist/index.js +732 -257
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -169,14 +169,10 @@ console.log(config);
|
|
|
169
169
|
|
|
170
170
|
#### Indexing Status API
|
|
171
171
|
|
|
172
|
-
##### `indexingStatus(
|
|
172
|
+
##### `indexingStatus()`
|
|
173
173
|
|
|
174
174
|
Fetches the ENSNode's multichain indexing status.
|
|
175
175
|
|
|
176
|
-
- `options`: (optional) additional options
|
|
177
|
-
- `maxRealtimeDistance`: (optional) The max allowed distance in seconds between the latest indexed block of the slowest indexed chain and the current time. Setting this parameter influences the HTTP response code:
|
|
178
|
-
- Success (200 OK): The latest indexed block of each chain is within the requested distance from realtime
|
|
179
|
-
- Service Unavailable (503): The latest indexed block of each chain is NOT within the requested distance from realtime
|
|
180
176
|
- Returns: `IndexingStatusResponse` - The indexing status data for all indexed chains
|
|
181
177
|
- Throws: Error if the request fails or the ENSNode API returns an error response
|
|
182
178
|
|
|
@@ -185,11 +181,6 @@ Fetches the ENSNode's multichain indexing status.
|
|
|
185
181
|
const status = await client.indexingStatus();
|
|
186
182
|
console.log(status);
|
|
187
183
|
// Returns indexing status for all indexed chains
|
|
188
|
-
|
|
189
|
-
// Check if omnichain indexing is within 60 seconds of realtime
|
|
190
|
-
const status = await client.indexingStatus({ maxRealtimeDistance: 60 });
|
|
191
|
-
console.log(status);
|
|
192
|
-
// Returns indexing status, throws if not within 60 seconds of realtime
|
|
193
184
|
```
|
|
194
185
|
|
|
195
186
|
### Configuration
|