1.0.1 • Published 4 years ago

ae-channel-manager v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

AE Channel Manager

A javascript library for managing AEternity payment channels for Pay-per-API call protocol (PAC)

Installation

git clone 
cd
npm i
npm run build

Usage

const { CH, ROLE } = require('./channel')
const keys = require('../keys.json')


const CH_URL =  'ws://localhost:3001/channel'
const channel = new CH(CH_URL, ROLE.INITIATOR, keys.buyer, keys.seller.publicKey);
channel.open();