pooldata
v1.0.3
Published
Using npm: ``` npm install pooldata ``` Using yarn: ``` yarn add pooldata ```
Downloads
4
Readme
Installation
Using npm:
npm install pooldataUsing yarn:
yarn add pooldataImport module
CommonJS usage
const Pooldata = require('pooldata');or ES6 usage
import Pooldata from "pooldata";Example
Authentication Client
JavaScrypt
const client = new Pooldata({
publicKey: 'your publicKey',
secretKey: 'your secretKey'
});or TypeScrypt
const client: Pooldata = new Pooldata({
publicKey: 'your publicKey',
secretKey: 'your secretKey'
});Get Unions
const unions = await client.getUnions();Get Datasets
const datasets = await client.getDatasets();Get Union by id
unionId - id of the union
const union = await client.getUnionById('unionId');