ae-channel-manager
Version:
A javascript library for managing AEternity payment channels for Pay-per-API call protocol
26 lines (17 loc) • 427 B
Markdown
# AE Channel Manager
A javascript library for managing AEternity payment channels for Pay-per-API call protocol (PAC)
## Installation
```js
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();
```