Skip to content

Easy integration of the Pocket Network for users of the ICON-SDK-JS

License

Notifications You must be signed in to change notification settings

pokt-network/icon-pocket-provider

Repository files navigation

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, 
    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.

About

Easy integration of the Pocket Network for users of the ICON-SDK-JS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published