ae-channel-manager

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

Usage no npm install needed!

<script type="module">
  import aeChannelManager from 'https://cdn.skypack.dev/ae-channel-manager';
</script>

README

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