@pokt-network/icon-pocket-provider
v0.0.1
Published
<div align="center"> <a href="https://www.pokt.network"> <img src="https://user-images.githubusercontent.com/16605170/74199287-94f17680-4c18-11ea-9de2-b094fab91431.png" alt="Pocket Network logo" width="340"/> </a> </div>
Downloads
2
Readme
Pocket Provider for ICON Network
Connect any ICON application to Pocket's decentralized network of data providers to read and write data to all of the ICON blockchains.
Overview
The ICON Pocket Provider is a drop-in replacement for the IconProvider in the ICON SDK for JavaScript. By replacing the default provider with the Pocket Network, your ICON app is able to access a decentralized, scalable array of data providers at a lower cost than commercial alternatives.
If your application connects to the ICON blockchains, you can use Pocket to increase decentralization and lower infrastructure costs!
For more information on Pocket, please visit pokt.network.
Getting Started
Once you've prepared the prerequisites to using Pocket, it is simple to use to access any ICON blockchain.
Example usage
// create the Pocket provider
const pocketProvider = new PocketLib.PocketProvider(
iconChainID,
iconAPIPath,
pocketInstance,
pocketAAT
);
// inject the pocketProvider into IconService
const iconService = new IconService(pocketProvider);
Please see this example integration for a live running example of an ICON application using Pocket.
Installation
Pocket Network libraries are hosted on NPM:
npm install --save @pokt-network/pocket-js
npm install --save icon-sdk-js
npm install --save js-sha256
Documentation
Please see docs.pokt.network for complete documentation.
Contributing
Please read CONTRIBUTING.md for details on contributions and the process of submitting pull requests.
Support & Contact
License
This project is licensed under the MIT License; see the LICENSE.md file for details.