Connect any ICON application to Pocket's decentralized network of data providers to read and write data to all of the ICON blockchains.
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.
Once you've prepared the prerequisites to using Pocket, it is simple to use to access any ICON blockchain.
// create the Pocket provider
const pocketProvider = new PocketLib.PocketProvider(
iconChainID,
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.
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
Please see docs.pokt.network for complete documentation.
Please read CONTRIBUTING.md for details on contributions and the process of submitting pull requests.
This project is licensed under the MIT License; see the LICENSE.md file for details.