ae-channel-manager

1.0.1 • Public • Published

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();

Package Sidebar

Install

npm i ae-channel-manager

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

27.8 kB

Total Files

11

Last publish

Collaborators

  • imagineauser