All URIs are relative to https://v1-test-api.opdex.com/v1
Method | HTTP request | Description |
---|---|---|
GetIndexerStatus | GET /indexer | Get Indexer Status |
IndexerStatusResponse GetIndexerStatus ()
Get Indexer Status
Retrieves status details for the Opdex transaction indexer.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Opdex.Client.Api;
using Opdex.Client.Client;
using Opdex.Client.Model;
namespace Example
{
public class GetIndexerStatusExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://v1-test-api.opdex.com/v1";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new IndexerApi(httpClient, config, httpClientHandler);
try
{
// Get Indexer Status
IndexerStatusResponse result = apiInstance.GetIndexerStatus();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling IndexerApi.GetIndexerStatus: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/problem+json
Status code | Description | Response headers |
---|---|---|
200 | Indexer status retrieved | - |
429 | Too many requests | * Retry-After - Indicates how many seconds to wait before making a follow-up request |
500 | Unexpected error occurred | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]