@zapjs/subscriber
v3.0.1
Published
Zap Subscriber
Downloads
6
Keywords
Readme
@zapjs/subscriber
This repository provides wrapper classes for data subscribers subscribers to interface with Zap providers.
Getting Started
Prerequisites
What things you need to install the software and how to install them
- Node 12.20 <=14.15
- Typescript
Installing
npm install @zapjs/subscriber
Usage
Create a Zap Susbcriber and interact with Provider
import {ZapSubscriber} from '@zapjs/subscriber';
let myZapSubscriber = new ZapSubscriber({owner:address})
With Custom configuration
let myZapSubscriber = new myZapSubscriber(owner,{networkId,networkProvider,coordinator});
Methods
await myZapSubscriber.bond({provider, endpoint, zapNum})
await myZapSuscriber.unBond({provider, endpoint, dots})
await myZapSubscriber.subscribe({provider, endpoint, endpointParams, dots})