npm

Check out our latest tech talk, "JavaScript Supply Chain Security" presented by VP of Security, Adam Baldwin.Watch it here »

@iota-pico/pow-srvio

1.0.0 • Public • Published

GitHub license Build Status Coveralls

IOTA Pico Framework Proof Of Work Remote for powsrv.io

The library contains the Curl proof of work algorithm using the remote service at https://powsrv.io

Example

const networkClientPowSrv = new NetworkClient(new NetworkEndPoint("https", "api.powsrv.io", 443));
const pow = new ProofOfWorkSrvIo(networkClientPowSrv, /* api key if you have one */);
 
const networkClientApi = new NetworkClient(new NetworkEndPoint("https", "nodes.iota.fm", 443));
const apiClient = new ApiClient(networkClientApi);
const transactionClient = new TransactionClient(apiClient, pow);
 
await transactionClient.sendTransfer(....);

Installation

npm install @iota-pico/pow-srvio --save

Documentation

Documentation for the code can be found in docs folder.

Library

The IOTA Pico Framework is a multi-layered set of object oriented JavaScript libraries for use with the IOTA tangle.

If you don't want to use the layered versions of the libraries consider using the ready bundled versions:

Each layer is fully abstracted allowing you to replace components with your own implementations very easily.

The layered libraries are written in TypeScript so are all strongly typed. The modules are generated as ES6 so you may need to transpile them when including them for use in older JavaScript eco-systems. The code will run without transpilation in all modern browsers and when used by NodeJs.

Tutorials

Some tutorials can be found in the following repo @iota-pico/tutorials

Contributing

Contributions are always welcome to the project. Feel free to raise issues, create pull requests or just make suggestions.

Authors

Come and find us on the IOTA Discord development channels

Donations

IOTA donations are always welcome 😄

pico@tngl-me

License

This project is licensed under the MIT License - see the LICENSE file for details.

install

npm i @iota-pico/pow-srvio

Downloadsweekly downloads

2

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability