open-index/open-npm huggingface dataset:
npm package: @polkawatch/ddp-client
Description: OpenAPI client for @polkawatch/ddp-client
Author: OpenAPI-Generator Contributors
Latest version: 3.0.5

# About this API Client

This API allows accessing [Polkawatch](https://polkawatch.app) Analytics and using them in your project. 

Polkawatch DDP implements its API using the openapi v3 standard. The specification is bundled as ```ddp-api-spec.json```.

This client has been generated using [openapi generator](https://openapi-generator.tech/) with 
the [typescript axios](https://openapi-generator.tech/docs/generators/typescript-axios) generator.

Note that you can also use ```ddp-api-spec.json``` and use the same tool to produce another API client in any of the 
many other available languages including rust, c++, java, go, python, etc.

# About Typescript Axios generated client  

This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:

Environment
* Node.js
* Webpack
* Browserify

Language level
* ES5 - you must have a Promises/A+ library installed
* ES6

Module system
* CommonJS
* ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html))

# Client API Documentation

The documentation is packaged with the specification, as such the generated code is self-documented and readable. 
IDEs like IntelliJ will do a great job with autocompletion as you code with the API. 

Typedoc generated documentation can be [browsed here](http://ddp-client-doc.polkawatch.app).

# Basic Example

The following example shows how to configure the API and make a request to retrieve the decentralizaiton
data of one Validator node. 

```javascript
import {
  Configuration,
  PolkawatchApi,
} from '@polkawatch/ddp-client';

const apiVersion = "v2";
const chain = "polkadot";
const basePath = `https://${chain}-${apiVersion}-api.polkawatch.app`;

const api = new PolkawatchApi(new Configuration({basePath}));

async function main(){

  // Retrieves decentralization about a Validator

  const response = await api.ddpIpfsValidatorDetail({
    lastDays: 60,
    validator: '14hM4oLJCK6wtS7gNfwTDhthRjy5QJ1t3NAcoPjEepo9AH67',
    validationType: 'public',
  });

  console.log(response.data);

}

main();
```

Save this example as `test.mjs` and run with `node test.mjs`

# Example React DAPP

An example React DAPP using this API to display UI components/charts can be found in [this Repository](https://gitlab.com/polkawatch/ddp-client-dapp-example).
npm package: @polkawatch/toporacle-client
Description: OpenAPI client for @polkawatch/toporacle-client
Author: OpenAPI-Generator Contributors
Latest version: 0.1.17

## @polkawatch/toporacle-client@0.1.17

This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:

Environment
* Node.js
* Webpack
* Browserify

Language level
* ES5 - you must have a Promises/A+ library installed
* ES6

Module system
* CommonJS
* ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))

### Building

To build and compile the typescript sources to javascript use:
```
npm install
npm run build
```

### Publishing

First build the package then run `npm publish`

### Consuming

navigate to the folder of your consuming project and run one of the following commands.

_published:_

```
npm install @polkawatch/toporacle-client@0.1.17 --save
```

_unPublished (not recommended):_

```
npm install PATH_TO_GENERATED_PACKAGE --save
```

### Documentation for API Endpoints

All URIs are relative to *http://localhost*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AuthorityApi* | [**getAuthority**](docs/AuthorityApi.md#getauthority) | **GET** /authority/{id} | Authority Discovery Information
*AuthorityApi* | [**getOwner**](docs/AuthorityApi.md#getowner) | **GET** /key_owner/{id} | Authority Information by Key Owner
*MetaApi* | [**getChainInfo**](docs/MetaApi.md#getchaininfo) | **GET** /chain_info | Chain Information
*MetaApi* | [**getVersion**](docs/MetaApi.md#getversion) | **GET** /version | Version of toporacle


### Documentation For Models

 - [AuthorityInfo](docs/AuthorityInfo.md)
 - [AuthorityLocation](docs/AuthorityLocation.md)
 - [AuthorityLocationOneOf](docs/AuthorityLocationOneOf.md)
 - [AuthorityLocationOneOf1](docs/AuthorityLocationOneOf1.md)
 - [AuthorityLocationOneOf2](docs/AuthorityLocationOneOf2.md)
 - [BlockAuthoring](docs/BlockAuthoring.md)
 - [ChainInfo](docs/ChainInfo.md)
 - [CountryLocation](docs/CountryLocation.md)
 - [CountryLocationType](docs/CountryLocationType.md)
 - [GeoIpLocation](docs/GeoIpLocation.md)
 - [NetworkLocation](docs/NetworkLocation.md)
 - [Version](docs/Version.md)


<a id="documentation-for-authorization"></a>
## Documentation For Authorization

Endpoints do not require authorization.