@pokt-network/icon-pocket-provider

0.0.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @pokt-network/icon-pocket-provider

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

22.8 kB

Total Files

20

Last publish

Collaborators

  • crisog
  • luyzdeleon