1.0.3 • Published 2 years ago
pooldata v1.0.3
Installation
Using npm:
npm install pooldata
Using yarn:
yarn add pooldata
Import 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');