@iota-pico/pow-srvio
v1.0.0
Published
IOTA Pico Framework Proof Of Work Remote PowSrv.io
Downloads
1
Maintainers
Readme
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
- Martyn Janes - obany - (https://github.com/obany)
Donations
IOTA donations are always welcome :smile:
License
This project is licensed under the MIT License - see the LICENSE file for details.